Hi Anye,
On 5/21/07, Anye Li <[EMAIL PROTECTED]> wrote:
Hi, How, in the latest development and near future versions, does one control the projection matrix behavior in the main (or any) view, using the osgViewer classes?
You control the projection matrix via the master Camera of the viewer i.e. viewer.getCamera()->setProjectionMatrixAs...(); See osg::Camera for all the options. The core OSG follows OpenGL conventions for setting up the view and projections matrices.
Also, what should I do if I do _not_ want the aspect ratio to be adjusted on window resize? It was not obvious to me from looking through the source code what controls this behavior.
Fro this we'll need a flag in osg::Camera to tell the window not to resize the Camera. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
