[osg-users] Updating Scene and Update Traversals

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Fri Jun 5 07:28:41 PDT 2020

Hello everyone!

I'm learning as I go, and thanks to this wonderful forum, I recently 
learned that it is poor form and dangerous to add or remove nodes from the 
scene outside of node update callbacks. I am currently reorganizing my 
application to comply with this advice.

How I'm doing it is I set an update callback on the top group node of the 
entire scene, and I only add or remove nodes from within that update 
callback. Is this advisable (using the top group node's update callback)?

Also, what about other operations like setting a node's node mask? Is it 
dangerous to do that outside of an update callback? Any other operations? 
Is it just adding and removing nodes that should be limited to the update 
callback, or does it go further than that?

Thank you so much for your help! You guys have been an invaluable source of 
advice for me.


You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/4e77289b-bf2c-4cf7-9c16-0d3637a73554o%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200605/80dba86b/attachment.html>

More information about the osg-users mailing list