From 165cc1bf4296db3844aed6283a47b1e6c1635be3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 28 May 2002 11:39:51 +0000 Subject: [PATCH] Changed the method of expanding of the near and far planes in CullVisitor::popProjectionMatrix so that it better handled models of zero thickness orthogonal to the viewing direction. --- src/osgUtil/CullVisitor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osgUtil/CullVisitor.cpp b/src/osgUtil/CullVisitor.cpp index 9b4f25588..97a104737 100644 --- a/src/osgUtil/CullVisitor.cpp +++ b/src/osgUtil/CullVisitor.cpp @@ -224,8 +224,8 @@ void CullVisitor::popProjectionMatrix() // so it doesn't cull them out. osg::Matrix& projection = *_projectionStack.back(); - double desired_znear = _computed_znear; - double desired_zfar = _computed_zfar; + double desired_znear = _computed_znear*0.98f; + double desired_zfar = _computed_zfar*1.02f; double min_near_plane = _computed_zfar*0.0005f; if (desired_znear