- Timestamp:
- 03/17/08 11:29:23 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgsimulation/osgsimulation.cpp
r6962 r7960 65 65 #include <osgGA/TerrainManipulator> 66 66 67 #include <osgParticle/FireEffect> 68 67 69 #include <iostream> 68 70 … … 294 296 while (arguments.read("-p",pathfile)) {} 295 297 298 bool addFireEffect = arguments.read("--fire"); 296 299 297 300 // if user request help write it out to cout. … … 402 405 scaler->addChild(cessna); 403 406 scaler->setMatrix(osg::Matrixd::scale(s,s,s)*osg::Matrixd::rotate(rotation)); 404 scaler->getOrCreateStateSet()->setMode(GL_RESCALE_NORMAL,osg::StateAttribute::ON); 407 scaler->getOrCreateStateSet()->setMode(GL_RESCALE_NORMAL,osg::StateAttribute::ON); 408 409 if (addFireEffect) 410 { 411 osg::Vec3d center = cessna->getBound().center(); 412 413 osgParticle::FireEffect* fire = new osgParticle::FireEffect(center, 10.0f); 414 scaler->addChild(fire); 415 } 416 405 417 406 418 if (false)
