[osg-users] Custom data within nodes or drawables

Antoine Rennuit antoinerennuit at hotmail.com
Thu Aug 24 02:52:30 PDT 2017


Dear OSG forum,

I am currently implementing picking and selection inside my app. I have setup everything up to the point where I can know the osgUtil::Intersection and with it the Drawable that was picked.

Now, what I am really interested in is not the Drawable or Node itself but the object it represents in my DataBase. Hence I would like to associate my OSG rendered objects with my DataBase objects. To that intent, is there something like a custom data in the Drawables in which I could store a pointer to my DataBase objects? Or should I handle this association and lookup myself?

Thank you!

Antoine

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







More information about the osg-users mailing list