Hi,

do you call viewer.realize yourself?

jp

On 06/01/11 14:58, Anders olofsson wrote:
Hi,

Im trying to turn off the automatic near/far clipping computation but cant get 
it to work.

Doing something like this:

Code:

camera=viewer.getCamera();
camera->setInheritanceMask( camera->getInheritanceMask()&  
~osg::Camera::COMPUTE_NEAR_FAR_MODE );
camera->setCullingMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);
camera->setProjectionMatrixAsPerspective(65, 1.6, 3, 200000);
viewer.frame();
camera->getProjectionMatrixAsPerspective(fovy, aspectratio, znear, zfar);




After the viewer.frame() call I check the near/far plane and they are not what 
I setted them to.. What am I doing wrong?

Thanks!

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





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

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

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

Reply via email to