Hi Matthew,

You answer you own question already...

  osg::Matrixd viewmatrix = viewer.getCamera()->getViewMatrix();

There are also getViewMatrixAsLookAt(..) method that computes the eye,
up and center for you, this can be useful for know which way to
pitch/yaw.

Robert.

On Thu, May 22, 2008 at 8:16 PM,  <[EMAIL PROTECTED]> wrote:
> Hi, I need to pan my camera up, down, left, right e.g. let the camera
> position stay the same and change the yaw and pitch as the user presses the
> arrow keys.  I think I just need the Camera's "World" Matrix and just to
> apply a rotation to it.  Can I get the needed matrix with
> camera->getViewMatrix()?  Not really sure how to do that.
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to