[osg-users] cast ray into scene

Ben Axelrod baxelrod at coroware.com
Mon Mar 9 12:31:55 PDT 2009


I have been using osgUtil::PickVisitor for a while now to pick objects in my tree under the mouse.  But now I need to cast a ray into the scene under the mouse and manually intersect it with an imaginary plane.  Is there some helper function to do this mouse ray cast for me?  Specifically, something that would take as input 2 ints for the position of the mouse, and maybe the camera or projection and view matrices, then output a vector?

Thanks,
-Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090309/4ddc6485/attachment-0002.htm>


More information about the osg-users mailing list