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.
This commit is contained in:
Robert Osfield
2005-10-12 18:42:36 +00:00
parent 540e676dae
commit 1e508d432b
16 changed files with 611 additions and 73 deletions

View File

@@ -35,12 +35,10 @@ namespace osgParticle
/// Create a new particle from the specified template (or the default one if <CODE>ptemplate</CODE> is null).
virtual Particle* createParticle(const Particle* ptemplate);
/// Destroy the i-th particle.
virtual void destroyParticle(int i);
/// Reuse the i-th particle.
virtual void reuseParticle(int i);
/// Update the particles. Don't call this directly, use a <CODE>ConnectedParticleSystemUpdater</CODE> instead.
virtual void update(double dt);
/// Draw the connected particles as either a line or a quad strip, depending upon viewing distance. .
virtual void drawImplementation(osg::State& state) const;
protected:
@@ -49,8 +47,8 @@ namespace osgParticle
ConnectedParticleSystem& operator=(const ConnectedParticleSystem&) { return *this; }
Particle* _startParticle;
Particle* _lastParticleCreated;
int _startParticle;
int _lastParticleCreated;
};
}