[osg-users] calculate a view ray

Thomas Giricz thomas.giricz at gmail.com
Mon Sep 3 02:40:32 PDT 2007


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,


More information about the osg-users mailing list