Hi Yura,
Hi,

I have created NodeCallback like in example osggeometry to update 
MatrixTransform of all nodes in a group.
I applied it only for group: group.setUpdateCallback(mycallback);
In operator() of mycallback i am calling traverse(node,nv) but it works only 
for group, not for it children.
What i am doing wrong? Do I need to call setUpdateCallback for every child?

That is expected behavior. The callback is called for the element you added it to only. The traverse will simply tell the visitor to go on in its traversal so it can find nodes with an update-callback deeper below your elements. If you need to modify all childs anyways, you can run your own visitor from the entry of the callback.

Thank you!

Cheers,
Yura

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70725#70725





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to