Cool Explosions in Particle Systems?
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!
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
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.
+-+
|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.
Sorry that second diagram isn''t good - it should have a c at one end and an x on the other.
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
Moe''s site
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement