I did not use Producer based viewer at all. I used an osgUtil::sceneView with single camera. That's why I feel weird about getting identity projection matrix.
The reason for me to use sceneView instead of osgProducer::Viewer is because I need traditional 2D GUI such as menus, dialog, option windows in my program. You could see it form this image http://mason.gmu.edu/~yliu6/gallery/vsp004010/vs_gui.jpg . No idea how to integrate those things into osgProducer::Viewer.
Have you see the osghud example? This provides and example of putting up 2D data as part of your main scene graph.
Others have also integrated GUI toolkits with he OSG, such as GLGoey, so have a search through the community section of the website.
And finally use SceneView->getProjectionMatrix()/getViewMatrix() over the OpenGL gets.
Robert.
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
