- Timestamp:
- 08/25/05 16:12:08 (8 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgparticleeffects/osgparticleeffects.cpp
r4301 r4459 63 63 { 64 64 const osg::BoundingSphere& bs = glider->getBound(); 65 float size = radius/bs.radius()*0. 3f;65 float size = radius/bs.radius()*0.15f; 66 66 67 67 osg::MatrixTransform* positioned = new osg::MatrixTransform; … … 85 85 { 86 86 const osg::BoundingSphere& bs = cessna->getBound(); 87 float size = radius/bs.radius()*0. 3f;87 float size = radius/bs.radius()*0.15f; 88 88 89 89 osg::MatrixTransform* positioned = new osg::MatrixTransform; … … 221 221 // create the moving models. 222 222 { 223 root->addChild(createMovingModel(osg::Vec3(500.0f,500.0f,500.0f), 100.0f));223 root->addChild(createMovingModel(osg::Vec3(500.0f,500.0f,500.0f),300.0f)); 224 224 } 225 225 } … … 272 272 273 273 osg::Vec3 position = handleMovingModels ? hit.getLocalIntersectPoint() : hit.getWorldIntersectPoint(); 274 float scale = 20.0f * ((float)rand() / (float)RAND_MAX);275 float intensity = handleMovingModels ? 5.0f :1.0f;274 float scale = 10.0f * ((float)rand() / (float)RAND_MAX); 275 float intensity = 1.0f; 276 276 277 277 osgParticle::ExplosionEffect* explosion = new osgParticle::ExplosionEffect(position, scale, intensity); 278 278 osgParticle::ExplosionDebrisEffect* explosionDebri = new osgParticle::ExplosionDebrisEffect(position, scale, intensity); 279 osgParticle:: SmokeEffect* smoke = new osgParticle::SmokeEffect(position, scale, intensity);279 osgParticle::ParticleEffect* smoke = new osgParticle::SmokeEffect(position, scale, intensity); 280 280 osgParticle::FireEffect* fire = new osgParticle::FireEffect(position, scale, intensity); 281 281
