Hi Matteo, The event and update traversals can be adjusted to traversal all children or just active ones via the NodeVisitor::setTraversalMode method.
The fact that event and update are set differently by default is something that probably needs to be mulled over by myself. Robert. On 4/16/07, Matteo Campana <[EMAIL PROTECTED]> wrote:
Hi, I'm using a sequence node that selects each time different objects. Each object has its own callback. I'd like to implement an application where the objects callbacks are only called when they are selected by the sequence node. I initially used the setUpdateCallback method to add the callbacks to object. But...what i see is that on each osg traverse, all the callbacks are called. So i tryed to use setEventCallback...and it seems to work properly. From the doxygen documentation i don't see any differences between the two methods. So ...my question is...Are the eventCallbacks called before or after the viewer.Update()?How many times they are called for each traverse?.. Thank you so much! Matteo _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
