I was being silly. I simply didnt pick the right values for the near and far 
planes.
This was my solution:

       
Code:
 
viewer.getCamera()->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);
 
        double left,right,bottom,top,fovy,aspectratio,near,far;
        
viewer.getCamera()->getProjectionMatrixAsPerspective(fovy,aspectratio,near,far);
        
viewer.getCamera()->setProjectionMatrixAsPerspective(fovy,aspectratio,20,25);



... 

Thank you!

Cheers,
aaron

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to