Hi Keith,
I want to set up an initial view matrix that looks down the Z-axis, approaching a 2D mode. I can currently do the effect I want but I have to use the mouse to reposition the view. This is not that big a deal but would be some help in manipulating the current view frustum. What is the best method to call to set this up?
By default, camera manipulators will override any changes you make directly to the view matrix in your camera, so you should set the home position on your camera manipulator to get the effect you want programmatically. If you're using osgviewer and calling viewer.run() to initiate your frame loop, then the viewer is setting a default osgGA::TrackballManipulator as your camera manipulator.
You can use viewer->getCameraManipulator()->setHomePosition(eye, center, up) to do what you want (eye is the camera position, center is the point you're looking at, and up is the up-vector). Call home(0) afterwards for the new settings to take.
Hope this helps, J-S -- ______________________________________________________ Jean-Sebastien Guay [email protected] http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

