HI Tugkan,
On 2/20/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
It should work, so if it isn't there must be some code missing or
wrong in osgViewer. The CullSettings should be inherited from the
Viewers master Camera down to any slave Camera, and the SceneView's
created internally should inhert their Cull Settings down from the
Slave or master Camera they are associated with.
A quick scan of the code in src/osgViewer/Viewer.cpp and
src/osgUtil/SceneView.cpp doesn't reveal any code for forcing the
inhertance of the CullSetting like there is in
osgProducer/OsgCameraGroup.cpp. The right place to add it in
osgViewer will probably the ViewerDoubleBufferedRenderingOperation
class just before the cull traversal.
I have now added in the missing inheritCullSettings calls into
osgViewer::CompositeViewer and Viewer and checked them in.
I modified osgviewer so that is using the line :
viewer.getCamera()->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);
Testing before and after the fixes problem is now fixed.
Let me know how you get on.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/