Actually the answer you wrote on the mailing list fixed the issue.
I just added this line before the setViewport call:

Code:

_viewer->getCamera()->setProjectionMatrixAsPerspective(45.0,  aspectRatio, 0.5, 
10);




When aspect ratio is the view's frame's width/height.

Thanks!

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=55690#55690





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to