Jump to content
  • Advertisement

Archived

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

penetrator

explosion code

This topic is 6383 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I need some code (or some tips) which perform an explosion, doesn''t have to be necessarily through particles engines ! Thanks

Share this post


Link to post
Share on other sites
Advertisement
With sprites just make explosion graphics and cycle through the frames...

With particles just draw say a pixel for each particle in the system and have them move away from the center in random directions.

There are alot of tutorials on the web about particle systems if you want a more in-depth look.


P.S. You can make explosion graphics in photoshop by using a black background setting the airbrush to dissolve and the color white, then spraying the area you want to be a fireball. Next gaussain blur the spots it makes, then Image->Adjust->Variations and up the red and yellow values until it looks right. Masking it is a whole different story, I suggest you just alpha blend it to get rid of the black outline..


Edited by - Caffeine on January 27, 2001 6:56:24 AM

Share this post


Link to post
Share on other sites
If you use triangles to draw your object just multiply an incrseing value to the x,y and z coord. Then draw some explosion sprites in the middle of the objects

Share this post


Link to post
Share on other sites
Then you can add shockwaves (Use tris, then make a ring (or 2..3) with Alpha blending, and then just decrease alpha until it is 0)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!