[osg-users] cullcallback and visitor ?

Robert Osfield robert.osfield at gmail.com
Thu Sep 25 08:31:07 PDT 2008

On Thu, Sep 25, 2008 at 4:23 PM, Vincent Bourdier
<vincent.bourdier at gmail.com> wrote:
> Hi Robert,
> How is it possible to test directly against the view frustum ? manually ? or
> is there a method still implemented ?
> thanks.

You create an osg::Polytope from the Camera's view and projection
matrix which will be your frustum,  then transform by any transforms
in the parent path to place the frustum in local coordinate, then test
the objects bounding sphere/bound box against this frustum.  The
osgUtil::PolytopeVisitor does most of this so could learn a lot form


More information about the osg-users mailing list