FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Particles and emitters

4 posters

Go down

Particles and emitters Empty Particles and emitters

Post  william Wed Sep 30, 2009 6:32 am

Hi,

i'd like to make an explosion effect using particles and emitters, I've looked into tutorial 12 and my question is: it is possible to make the animation of the emitter non looping? I'd like to stop the emitter when all the particles of the emitter has died.

Thank you

william

Posts : 15
Join date : 2009-09-09

Back to top Go down

Particles and emitters Empty Re: Particles and emitters

Post  cgen2 Wed Sep 30, 2009 2:33 pm

William,
I suggest setting a particle counter in your particle creation callback. Count down every time you create a particle. Reset your emitter(s) when the counter is zero. Of course there are other ways ...

Chris

cgen2

Posts : 38
Join date : 2008-12-14

Back to top Go down

Particles and emitters Empty Re: Particles and emitters

Post  sio2interactive Fri Oct 02, 2009 6:32 am

Similar as the technique above... I personally use the opposite method... I check when a particle system reach a specific amount of particle then stop generating when everything is done rendering I flush the emitter from the SIO2resource.
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Particles and emitters Empty Re: Particles and emitters

Post  william Tue Oct 06, 2009 3:41 am

Yeah i've done something like that!

william

Posts : 15
Join date : 2009-09-09

Back to top Go down

Particles and emitters Empty Re: Particles and emitters

Post  IanLinart Tue Oct 06, 2009 8:34 am

Hi, the questions is not exactly related to that but whatever

I was playing around with tutorial 12 and tried to put back the emitter..



Particles and emitters Flamme


left one is at 10.0 in the y, and the right one is at 0.0 y.. it's exactly the same emitter.. Am i missing something cause the far one isn't smaller.

what value I need to change to make it smaller?

I tried scaling down the fire.tga but doesn,t to anything, the code scale it back to it's original size, so it's juste pixelized instead of smaller.., I certainly missed something
IanLinart
IanLinart

Posts : 26
Join date : 2009-08-12
Age : 36
Location : Montréal

http://iapps.linart.qc.ca

Back to top Go down

Particles and emitters Empty Re: Particles and emitters

Post  sio2interactive Tue Oct 06, 2009 10:18 am

It all depends of the emission point of the particle... check in example the snow emitter...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Particles and emitters Empty Re: Particles and emitters

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum