Page 1 of 1

[added in 1.6] Particles System Contribs

PostPosted: Fri Jun 29, 2007 11:40 am
by MoDDiB
I worked on a particle system for Brume.
I'm not totally satisfied by all for the moment but I don't have time to work more on it for now.
Only fade doesn't work.
I think I'll add comment during the next month.
here's the source code : http://jean.esteves.free.fr/Brume/BrumeParticles.zip

Have fun :)

Image

PostPosted: Fri Jun 29, 2007 10:39 pm
by Silmaryls
Thanks MoDDiB,

Really nice contribution.

Re: Particles System Contribs

PostPosted: Thu Jul 19, 2007 11:55 am
by Silmaryls
Hi MoDDiB,

I finished the integration.
I then tried to replace my snow sample with your particle system. I managed to create snow flakes randomly but I still have problems with particle speed.
In fact the snowflakes are appearing and staying a while before they move down.

Can you help me with that one ? Here is the source code :

Code: Select all
ParticlePointEmitter snowPointEmitter = new ParticlePointEmitter(null, eParticleEmissionMode.Continious, BrumeVector.Empty, new BrumeVector(0.0f, -1f, 0.0f), 0.0007f, 0.1f);
snowPointEmitter.DirectionNoise = 0.2f;
snowPointEmitter.PositionNoise = 60.0f;

ParticleSystem snowParticleSystem = new ParticleSystem(this, GetTexture("starsnow.jpg"), 1, 200, 1500, 1000, Color.FromArgb(100, 150, 200), snowPointEmitter);

ParticleAcceleratorProcessor snowAcceleratorProcessor = new ParticleAcceleratorProcessor(0.00002f, 0.000005f);
snowParticleSystem.AddProcessor(snowAcceleratorProcessor);



One other thing : I also noticed that accelerator and maybe other processors are FPS dependent.
You can easily test it with your fire sample : just slow down the app to 20 FPS (the fire will be more concentrated).

If you can help me with those two things it would be great for the release ! :wink:

Re: Particles System Contribs

PostPosted: Thu Jul 19, 2007 3:52 pm
by MoDDiB
Silmaryls wrote:One other thing : I also noticed that accelerator and maybe other processors are FPS dependent.

Oh I surely thought I done it but it wasn't done :)

I'll watch were the bug can come from ASAP : before the 25th I hope :)