From 6303b87e9ac8df2cd217b0ce42ec123709dfdb1e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 25 May 2004 07:40:18 +0000 Subject: [PATCH] Added better handling of clamping of projection matrix --- src/osgUtil/CullVisitor.cpp | 53 ++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 18 deletions(-) diff --git a/src/osgUtil/CullVisitor.cpp b/src/osgUtil/CullVisitor.cpp index 5568f2eba..609a1977d 100644 --- a/src/osgUtil/CullVisitor.cpp +++ b/src/osgUtil/CullVisitor.cpp @@ -200,38 +200,47 @@ void CullVisitor::popProjectionMatrix() // osg::notify(osg::NOTICE)<<"Took "<delta_m(start_t,end_t)<<"ms to test "<0.0f) + if (_computeNearFar && _computed_zfar>=_computed_znear) { - // osg::notify(osg::WARN)<<" using "<<_computed_znear<<"\t"<<_computed_zfar< matrix = createOrReuseMatrix(node.getMatrix()); pushProjectionMatrix(matrix.get()); + osg::notify(osg::INFO)<<"Push projection "<<*matrix<