Added support for cullable state, that uses a polytope to define the extents

of objects that will be influenced by it.
This commit is contained in:
Robert Osfield
2005-09-07 16:18:43 +00:00
parent 58112d9591
commit 765db1998c
5 changed files with 106 additions and 20 deletions

View File

@@ -323,14 +323,14 @@ int main(int argc, char **argv)
// tell the overlay node to continously update its overlay texture
// as we know we'll be tracking a moving target.
overlayNode->setContinousUpdate(true);
// overlayNode->setContinousUpdate(true);
}
osg::Node* cessna = osgDB::readNodeFile("cessna.osg");
if (cessna)
{
double s = 30000.0 / cessna->getBound().radius();
double s = 600000.0 / cessna->getBound().radius();
osg::MatrixTransform* scaler = new osg::MatrixTransform;
scaler->addChild(cessna);