Hi Stefan,

So I found this in osgManipulator but I belive I could use this code independantly of it.

Yes, definitely. This will work even outside osgManipulator (I was going to reply pointing you to this very code, glad you found it by yourself)

The reason why this works is that the drawable on which this callback is attached will always be culled and so never be displayed (the "return true" does that) but it will still be traversed during intersection tests and so you'll be able to pick it.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to