Hi Thomas, The osgpick and osgkeyboardmouse examples illustrate how to do ray based picking of scenes. The later examples has a code path that passes a line segment in window coordinates and lets the intersection code transform this via the Camera's viewport, projection and view matrices.
Robert. On 9/3/07, Thomas Giricz <[EMAIL PROTECTED]> wrote: > Hello, > > I'm improving a system which so far used OpenSG to run with > OpenSceneGraph. In OpenSG there was a function > Camera::calcViewRay(...) which takes mouse coordinates and a viewport > and then calculates a ray that starts at the camera position and goes > through the pixel x, y in the viewport, where x and y are relative to > the viewport. > > Is there a way to compute such a view ray in openscenegraph? > > > Thanks in advance, > > Thomas > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

