[osg-users] Managing scene graph for picked/unpicked objects

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Mon Mar 28 11:02:54 PDT 2016


Hi Lee,

> How do you manage the scene graph for picked objects?  That is, how do 
> you structure the graph to track selected vs. not selected objects?  
> Do you (for example) insert an osgFX::Scribe node between each 
> selected node and its parent?  Do you create a single osgFX::Scribe 
> node and move nodes into it?  What is the best way to keep track of 
> where they should return to once they are unselected?  Is there a 
> better way I am not thinking of?
You can use the UserData of the picked node. It allows you to add 
arbitrary data to a node.

Cheers
Sebastian
>
> Lee
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160328/adf08c04/attachment-0003.htm>


More information about the osg-users mailing list