Thank you. I just got it to do what it shall do.

This code create a simple explosion like a firework rocket.
'this' is a BrumeLightedObject an Singleton.Instance is the Brume.Brume object
- Code: Select all
BrumeParticlePointEmitter FxEmitter = new BrumeParticlePointEmitter(this, BrumeEParticleEmissionMode.Once, this.Pos, new BrumeVector(0, 1, 0), 0.00005f, 0.000001f);
BrumeParticleSystem FxSystem = new BrumeParticleSystem(Singleton.Instance, Name + " particlefx explode", Singleton.Instance.GetTexture("particle.tga"), 50, 50, 300.0f, 100.0f, System.Drawing.Color.Blue, FxEmitter);
BrumeParticleAcceleratorProcessor FxAccelerator = new BrumeParticleAcceleratorProcessor(-0.00003f, -0.000005f);
BrumeParticleScaleProcessor FxScale = new BrumeParticleScaleProcessor(0.5f, 0.0f);
BrumeParticleFadeProcessor FxFade = new BrumeParticleFadeProcessor(1.0f, 0.0f);
FxSystem.AddProcessor(FxFade);
FxSystem.AddProcessor(FxScale);
FxSystem.AddProcessor(FxAccelerator);
FxEmitter.Center = Pos;
FxEmitter.DirectionNoise = 2.0f;
FxEmitter.EmissionForce = 0.01f;
// complete random colors
FxSystem.Color = System.Drawing.Color.FromArgb(127, 127, 127);
FxSystem.ColorNoise = System.Drawing.Color.FromArgb(127, 127, 127);
FxSystem.Scale = 0.5f;
Nevertheless I would like to point out that the ParticleSystem class needs a manual Start() and Stop() function urgently.