Greeting all,
I was wondering if anyone knew how to use Polytope to check if a bounding box
is within a cameras' view frustum.
I've tried:
Code:
osg::BoundingBox bb = drawable->getBound();
...
osg::Polytope frustum;
frustum.setToUnitFrustum(true , true );
frustum.transform( camera->getProjectionMatrix() );
if( frustum.contains( bb ) )
{
.... / Do stuff
}
Thank you!
Cheers,
Sean
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=24281#24281
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org