Hi, I have a scene graph with a number of animated nodes which make use of osg::AnimationPathCallback.
Now I wanted to register a NodeCallback at the root node of the scene graph (which is of type Group) in order to do certain operations that have to be done once per frame, and which are not related to a particular subgraph or node of the scene graph. However, when I register a NodeCallback at the root node, all animated objects become invisible. I have the suspicion that the update callbacks of the animated objects are not called any more. The NodeCallback itself does nothing yet. Am I missing something? For example, do I have to do something specific in the NodeCallback at the root to make sure that the update callbacks of children are being called? What about data variance? Do I have to set the data variance of the root to DYNAMIC when I use update callbacks? As a workaround, I added a new child node of type Group of the root node, and I registered the NodeCallback at this child node instead. If I do this, the animated objects are shown again, and everything works fine. However, I would like to not have to use this workaround. Any ideas what I could be doing wrong? ... Thank you! Cheers, Karl Wurzel ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17939#17939 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

