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
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()?
2 matches
Mail list logo