Archived

This topic is now archived and is closed to further replies.

harleyrana

Cool Explosions in Particle Systems?

Recommended Posts

harleyrana    122
Hi i''ve been trying to make a good looking explosion particle system for a java 2D space game. I have the basics working nicely, i also built a simple editor to make complex velocities ect. Right now it looks pretty good with particles coming in a bit, then flying out, going from yellow to red, and from opaque to transparent. I just want to make it better! When you see real explosions they are normally kind of clouds that dissipate. How do you create something that looks more real? Thanks for any advice!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
I take it you are drawing each particle as a small element (eg a single polygon, or in 2d a small image). So your particles are drawn centred on a position - you update this position each step, according to velocity, and then redraw the image centred on the new position, x. ie you draw

+-+
|x|
+-+

Instead of that you could draw a stretched polygon/image going from the centre of the explosion, c, to the particles position, x. Like this

+------+
c x
+------+

If you do this for each particle you'll fill out the space (do some nice alpha blending!)

Most 2d games would use animated bitmaps for this though.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Sorry that second diagram isn''t good - it should have a c at one end and an x on the other.

Share this post


Link to post
Share on other sites
Moe    1256
I think the trick lies in good texturing. Use as many textures as you can get away with, and don''t fade things totally out when you are done - leave some sort of textured smoke behind for a little bit. At least thats what I think would make a better particle explosion.

Moe''s site

Share this post


Link to post
Share on other sites
harleyrana    122
thanks for the replys.
Streching is an good idea, seen some really nice looking effects.

As far as textures, thats probally the way i need to go to get the kind of effect im looking for. Just not very good at making them.

Share this post


Link to post
Share on other sites