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?
For example, suppose I wanted to create a viewer with a single view with an orthographic projection whose aspect ratio matched that of the viewport. In OSG-1.2 with osgProducer, I would create an osgProducer::Viewer with a Producer::CameraConfig, to which I would add a Producer::Camera, on which I would invoke setLensOrtho and setLensAutoAspect. Now, so far as I can tell, there is no CameraConfig or Lens in the new osg; the only things I see in osgViewer::Viewer are set/getCameraWithFocus. I noticed that osgViewer::Viewer::realize() unconditionally sets the projection matrix as perspective, so I tried calling setCameraWithFocus after a call to realize() and before run(), but it seems to me that no matter what I do, the projection matrix is perspective and changes aspect on window resize. 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. Thanks, Anye Li
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/