From 098bc6df5e06b35349f5bc476031a07b1e487e59 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 13 Sep 2011 10:15:07 +0000 Subject: [PATCH] From Farshid Lashkari, " The osgUtil::CullVisitor class will display an OSG_INFO notification when attempting to clamp the projection matrix with invalid near/var values. This usually appears when the scene graph is empty or all objects are culled. I don't think this scenario warrants having this message appear every frame. It makes it very difficult to debug other issues when this notification floods the output window. I'd prefer to have the notification removed, but there might be legitimate cases where you want this displayed. Instead, I just disabled the output if the near/far values are equal to FLT_MAX (their initial values). This should at least prevent the notification for the common case where everything was culled." --- src/osgUtil/CullVisitor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osgUtil/CullVisitor.cpp b/src/osgUtil/CullVisitor.cpp index dba97e76b..0ee9f79f3 100644 --- a/src/osgUtil/CullVisitor.cpp +++ b/src/osgUtil/CullVisitor.cpp @@ -252,7 +252,10 @@ bool _clampProjectionMatrix(matrix_type& projection, double& znear, double& zfar double epsilon = 1e-6; if (zfar