[osg-users] SceneView, RenderStage, existing Renderer and migrating 1.2 to 2.0

Zulizman Berdu izmanzul at gmail.com
Thu Aug 2 17:05:12 PDT 2007


Hi,

Mine also might have the same problem. I'm using terrapage for terrain in my
application and it works fine in OSG 1.2. When I switch to OSG 2.0 and OSG
2.1.3 the terrain start flickering. The code to avoid the auto calculate for
near/far plane clipping seems not function anymore. The following are my
code snippet,

The code for OSG 1.2 :
m_Viewer.getCullSettings().setComputeNearFarMode(osgUtil::CullVisitor::DO_NOT_COMPUTE_NEAR_FAR);


The code for OSG 2.0 :
m_Camera = m_Viewer.getCamera();
m_Camera->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);

Is there anything that i miss here ? Hope this can be resolved before ver
2.2 coming out :)

Thanks,
-Zulizman-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070803/0993fbd9/attachment.htm 


More information about the osg-users mailing list