Hi Renan,
I'd like to know if there was a way to change the default projection in OSG. By default the view uses conical projection, but in some situations I'd need a parallel projection. How can I do that?
By conical, do you mean perspective? And by parallel, do you mean orthographic? (just a matter of terminology)
If so, then get familiar with the osg::Camera::setProjectionMatrixasPerspective() and osg::Camera::setProjectionMatrixAsOrtho() methods.
Bear in mind that most (all?) camera manipulators are made for perspective projections, and won't work quite right for ortho projections. For instance, zooming by moving the camera forward or back doesn't make sense in an ortho projection, so zooming in and out with a Trackball Manipulator will not work if your camera is set to an ortho projection. Also, the Trackball Manipulator will let you rotate the view even in an ortho projection, when you probably don't want that - in general, an ortho view should only pan and zoom by changing the view frustum.
If that's not what you meant, then you must be referring to something I don't know (or don't know under those names). Can you elaborate on what you want exactly?
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

