- Timestamp:
- 05/01/05 21:48:49 (8 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgimpostor/osgimpostor.cpp
r1844 r4135 1 1 #include <osg/Geometry> 2 #include <osg/Impostor>3 2 #include <osg/Material> 4 3 #include <osg/MatrixTransform> … … 6 5 #include <osg/Geode> 7 6 8 #include <osgUtil/InsertImpostorsVisitor> 7 #include <osgSim/Impostor> 8 #include <osgSim/InsertImpostorsVisitor> 9 9 10 10 #include <osgDB/ReadFile> … … 197 197 if (UseImpostor) 198 198 { 199 osg ::Impostor * impostor = new osg::Impostor();199 osgSim::Impostor * impostor = new osgSim::Impostor(); 200 200 impostor->setImpostorThreshold(static_cast<float> (Threshold)); 201 201 impostor->addChild(groups[i]); … … 259 259 if (model) 260 260 { 261 // the osg Util::InsertImpostorsVisitor used lower down to insert impostors261 // the osgSim::InsertImpostorsVisitor used lower down to insert impostors 262 262 // only operators on subclass of Group's, if the model top node is not 263 263 // a group then it won't be able to insert an impostor. We therefore … … 269 269 { 270 270 271 osg ::Impostor* impostor = new osg::Impostor;271 osgSim::Impostor* impostor = new osgSim::Impostor; 272 272 273 273 // standard LOD settings … … 296 296 297 297 // now insert impostors in the model using the InsertImpostorsVisitor. 298 osg Util::InsertImpostorsVisitor ov;298 osgSim::InsertImpostorsVisitor ov; 299 299 300 300 // traverse the model and collect all osg::Group's and osg::LOD's.
