From f3ce66aa8bfb26ead1edca9307645e2e5bfd5eee Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 23 Dec 2011 17:15:06 +0000 Subject: [PATCH] From Glenn Waldron, "Attached is a change to ClusterCullingCallback to make it work properly under an RTT camera with an INHERIT_VIEWPOINT reference frame." --- src/osg/ClusterCullingCallback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/ClusterCullingCallback.cpp b/src/osg/ClusterCullingCallback.cpp index ec6773730..cff257e6a 100644 --- a/src/osg/ClusterCullingCallback.cpp +++ b/src/osg/ClusterCullingCallback.cpp @@ -172,7 +172,7 @@ bool ClusterCullingCallback::cull(osg::NodeVisitor* nv, osg::Drawable* , osg::St return false; } - osg::Vec3 eye_cp = nv->getEyePoint() - _controlPoint; + osg::Vec3 eye_cp = nv->getViewPoint() - _controlPoint; float radius = eye_cp.length(); if (radius<_radius)