[osg-users] calculate a view ray

Robert Osfield robert.osfield at gmail.com
Mon Sep 3 03:04:28 PDT 2007

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


On 9/3/07, Thomas Giricz <thomas.giricz at gmail.com> 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list