I have a question as to what is allowed and/or what's a good/bad practice with respect to modifying the scenegraph at runtime from within an update callback. We're using one of the newer versions of OSG. 2.9.4 I believe. Our osgViewer is setup for single-threaded operation.
Take a look at the attached image. From within F's update callback, we know that we must not add children to or remove children from any of the red nodes, because all of those nodes have active traversals (i.e. invocations of osg::Group::traverse, where the local iterator variable is in danger of being invalidated). But can we modify the blue nodes, since they do not have active traversals? By modify I mean add/remove child nodes of the blue nodes or change properties of the nodes themselves.
<<attachment: example.png>>
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

