Re: [osg-users] Get the Matrix for the MasterCamera

2008-05-23 Thread Robert Osfield
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

[osg-users] Get the Matrix for the MasterCamera

2008-05-22 Thread Matthew . Little
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()?