Hi there, 

I am using a custom CameraManipulator class (inheriting 
osgGA::MatrixManipulator) which is added to my scene after the OpenSceneGraph 
is initialised

The CameraManipulator has two member variables I've added, a Vec3d target and 
position. These are used to create a projection matrix by calling 
Matrix::makeLookAt. As the events are handled by the manipulator, I am updating 
the position/target and recomputing the matrix, then on Frame I am returning 
the constructed matrix. 

This provides a great perspective view, however I cannot work out how to 
construct an orthogonal projection using a target/position. 

In addition, I'd like to be able to change the Field Of View when I create the 
matrix.

I realise there is a Matrix::makeOrtho and Matrix::makePerspective, however I'm 
not sure how to use these with my CameraLocation/Target variables. 

Could anyone offer me some advice?

Thank you!
Andrew

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15659#15659





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to