explosion: howto?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

explosion: howto?

Post by schick »

Hi there, i need a fancy explosion. I already have one that looks quite good using the particle emittor but it takes a lot of cpu power. Is there another way to implement such a cool looking explosion.

Maybe:

Draw some randomly positioned cubes (with a cool texture) and make them disapear slowly (make the transparent)?

Any other ideas, (source code highly wanted :-))
Please send me an e-mail instead of a private message.
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

What emitter are you using? Cube or point (or another, i'm forgetting them right now)?

The way to do an efficient explosion, in my mind, would be to have a point emitter, and it chooses a random vector, and sets that as the emit angle for the direction. An even more efficient way would be to program a sphere emitter. I don't know if spheral capabilities are in irrlicht, but that would be the ideal solution.

Just my $0.02
The Robomaniac
Project Head / Lead Programmer
Centaur Force
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Post by thesmileman »

can you post your code for an explosion even if it is slow it might help some people get it to work for them and maybe there is a way to optimize your code.
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

Post by schick »

I did it the way Robomaniac mentioned. Nothing but an emittor and some hardcoded parameter.
Please send me an e-mail instead of a private message.
Peter Müller
Posts: 292
Joined: Sun Mar 14, 2004 5:28 pm
Location: Germany
Contact:

Post by Peter Müller »

The other way is a billboard explosion. But this doesn't look really good
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
Guest

Post by Guest »

I tried a billboard explosion, and i though it turned out really cool!
maybe i had just had some good sprites. I got 'em from Ca3de.

You could always have a billboard for the fire, and particles for the smoke. Not sure how the combo would look though.
Post Reply