Hi Eric, If you are seeing a crash when running single threaded then DataVariance won't be an issue, you'll need to look elsewhere. Unfortunately there is too information about the exact problem you are seeing on your system to be able to guess at what the problem might be.
A general note about DataVariance, in the OSG there are internal Nodes of the scene graph - such as Group, Transform, Geode etc, setting DataVariance on these is only a hint to code that might optimize the scene graph about what is safe to replace and change and what isn't, unless you are calling the osgUtil::Optimizer is pretty likely that setting DataVariance on Node in the scene graph will have no effect on the end result - as the update, cull and draw traversals all ignore the Node's DataVariance settings. The only time that DataVariance is used is when the viewer is run multi-threaded with the DrawThreadPerContext or CullThreadPerCameraDrawThreadPerContext threading models, and where it's only the draw traversal that uses the DataVariance, and the since the draw traversal has only references to Drawable and StateSet leaves on the scene graph it's only the DataVariance on these that is checked. This means the nodes and any sate attributes attached to StateSet are ignored. Robert. On 23 February 2012 09:06, Eric Pouliquen <epouliq...@on-x.com> wrote: > Thanks for these clarifications Paul. > > Currently my application still crashes even I've put Dynamic datavariance on > every modified node... and this crash appears also in SingleThreaded mode. It > always crashes on the frame() viewer's function which I use in a custom > thread in Qt. My main problem is that when it crashes, it seems impossible to > know which node is the problem because I can't see any thing clearly in my > Visual Studio debugger. The stack is only talking about UpdateTraversal. > > So when you say UpdateTraversal is only for convenience, it means you can > update a position or a stateset from anywhere in your code without any crash > even in multi threaded modes ? > > Regards > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=45707#45707 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org