Show
Ignore:
Timestamp:
10/12/05 20:42:36 (9 years ago)
Author:
robert
Message:

Added SmokeTrailEffect? which renders created particles as single quad or line
strip, in the case of the quad strip the strip is aligned to the be orthogonal with
the eye point.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgparticleeffects/osgparticleeffects.cpp

    r4459 r4584  
    1717#include <osgParticle/ExplosionDebrisEffect> 
    1818#include <osgParticle/SmokeEffect> 
     19#include <osgParticle/SmokeTrailEffect> 
    1920#include <osgParticle/FireEffect> 
    2021 
     
    277278            osgParticle::ExplosionEffect* explosion = new osgParticle::ExplosionEffect(position, scale, intensity); 
    278279            osgParticle::ExplosionDebrisEffect* explosionDebri = new osgParticle::ExplosionDebrisEffect(position, scale, intensity); 
    279             osgParticle::ParticleEffect* smoke = new osgParticle::SmokeEffect(position, scale, intensity); 
    280280            osgParticle::FireEffect* fire = new osgParticle::FireEffect(position, scale, intensity); 
     281            osgParticle::ParticleEffect* smoke = 0; 
     282            if (handleMovingModels) 
     283                smoke =  new osgParticle::SmokeTrailEffect(position, scale, intensity); 
     284            else 
     285                smoke =  new osgParticle::SmokeEffect(position, scale, intensity); 
    281286             
    282287            explosion->setWind(wind);