Particles and emitters

View previous topic View next topic Go down

Particles and emitters

Post  william on 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

View user profile

Back to top Go down

Re: Particles and emitters

Post  cgen2 on 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

View user profile

Back to top Go down

Re: Particles and emitters

Post  sio2interactive on 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.

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Particles and emitters

Post  william on Tue Oct 06, 2009 3:41 am

Yeah i've done something like that!

william

Posts : 15
Join date : 2009-09-09

View user profile

Back to top Go down

Re: Particles and emitters

Post  IanLinart on 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..






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
avatar
IanLinart

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

View user profile http://iapps.linart.qc.ca

Back to top Go down

Re: Particles and emitters

Post  sio2interactive on Tue Oct 06, 2009 10:18 am

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

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Particles and emitters

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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