Hi All. I have to debug an application based upon OSG (actually I'm still a novice of OSG).
I found this strange behavior, in this fragment of code: Let's define: ---------------------------------------------------------------------------- ----------- osgProducer::OsgSceneHandler * sh = new osgProducer::OsgSceneHandler; osg::ref_ptr<osgUtil::SceneView> sceneView = sh->getSceneView(); Producer::ref_ptr<Producer::Camera> camera; camera->setSceneHandler(sh); ---------------------------------------------------------------------------- ------------ .. Then: ---------------------------------------------------------------------------- ----------- double fovy, aspectRatio, zNear, zFar; sceneView->getProjectionMatrixAsPerspective(fovy,aspectRatio,zNear,zFar); camera->frame(true); sceneView->getProjectionMatrixAsPerspective(fovy,aspectRatio,zNear,zFar); ---------------------------------------------------------------------------- ------------------------------ Well, I get different zNear, zFar before and after the call to camera->frame. How is it possible? Is there a setting in SceneView that allows to update the projection matrix during draw traversal, using the bounding sphere of the whole model? Thank you. Gianluca Natale
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

