On 5/8/07, Zach Deedler <[EMAIL PROTECTED]> wrote:

Hello,

I've done this different ways, and still don't have a great way to do it.

What is the best way to extract the position and rotation information from
the camera in osgviewer?


osg::Matrix view = viewer.getCamera()->getViewMatrix();

Then use osg::Matrix methods to get the rotation (osg::Quat) and the
translation.

Or to get OpenGL look at style usage i.e.

viewer.getCamera()->getViewMatrixAsLookAt(eye,center,up);

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to