Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Anyone got an example of how to make a convinsing explosion?

Author
Message
GatorHex
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 28th Feb 2007 02:30 Edited at: 28th Feb 2007 02:35
Anyone got an example of how to make a convincing explosion?

How are you doing it? Animated image on a plain or some king of particle thing or maybe Dark Physics to blow debris everywhere, or is it just part of the 3d.x animation file?

I would be interested on your thoughts?

http://www.KumKie.com http://bulldog.servegame.com
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 28th Feb 2007 02:44
what created the explosion?
How many polygons if it is 3d are you going to allow?
Is your game top down 3d or 1st /3rd person 3d?
How many of these do you need at once on screen?
Are you going to use shaders or old fashioned techniques for all computers.?
Does the explosion require smoke trails afterwards?

we cannot read your mind, however people can give you general ideas if thats all your looking for.

GatorHex
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 28th Feb 2007 03:00 Edited at: 28th Feb 2007 03:03
I personaly want to blow up vehicles in 3D perspective and have it support 99% of computers without too much fps loss.

I'd like to leave some smoked out burnt vehicle after the explosion for a limited time. I'm not too bothered about parts flying off, but I'd still like to hear how it's done.

However I'm interested in how people program any kind of explosion and how they think it effects fps and how real it looks. It doesn't have to be specific to the task I'm trying to achieve.

I sort of remmeber particle effects are useful but I never got my head around how they worked.

http://www.KumKie.com http://bulldog.servegame.com
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 28th Feb 2007 03:10
if you type "particles" and type "smoke" into the left search box at the bottom of this page, there will be a plethora of information to get you started straight away.

GatorHex
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 28th Feb 2007 05:33 Edited at: 3rd Mar 2007 00:12
been there, Cucumbers Smoke v2 is pretty nice for a smoke fx,



and Underlords particle explosion is nice



but has anyone got a working link to Xander/Bolt explosion demo?

http://www.KumKie.com http://bulldog.servegame.com
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 28th Feb 2007 07:35
I don't know what a Xander/Bolt explosion is, but I have this thing.

Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 28th Feb 2007 08:25
Bolts was pretty cool. I think I have it somewhere. If I can find it I'll host it and post a link.

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 28th Feb 2007 23:37
Here is Xander's post

http://forum.thegamecreators.com/?m=forum_view&t=24518&b=6

not sure if you can find the stuff still on there (you might have to look hard)

One man, one lawnmower, plenty of angry groundhogs.
GatorHex
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 1st Mar 2007 01:41 Edited at: 1st Mar 2007 01:44
Thanx, but I've already been there and it looks like Xander/Bolt has not kept up his hosting payments and all the links are dead.

If anyone wants space to host some decent DBP stuff I can give them some to work with.

http://www.KumKie.com http://bulldog.servegame.com
Johaness
17
Years of Service
User Offline
Joined: 20th Sep 2006
Location:
Posted: 1st Mar 2007 05:57
The Nov06 Newsletter had a nice ExplosionFX demo using animated textures on plains.
GatorHex
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 1st Mar 2007 15:14 Edited at: 3rd Mar 2007 00:19
Wow, thanx that Newsletter Nov 06 article by Grant Clark looks just like what i need.



I should keep up with reading the news letter. Very nice example of making explosions and some strange electical ones!


http://www.KumKie.com http://bulldog.servegame.com
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 1st Mar 2007 18:22
Xander's can be found here:

http://mapmasterz.com/lit/Explosion.zip

GatorHex
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 2nd Mar 2007 17:51 Edited at: 2nd Mar 2007 17:57
Thanx LiT and Xander - that's another good example that gives me some nice ideas.

I like how the parts fall of the ships after the explosion

The trail of smoke didn't work when I ran it though does it work for everyone else?

[UPDATE] ah just read.. `smoke doesn't work in Pro because dark ghosting doesn't seem to work right...
smokeon=0

Could it be because his smoke.jpg file is on a white background... I'll have to give it a try

http://www.KumKie.com http://bulldog.servegame.com
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 2nd Mar 2007 21:44 Edited at: 2nd Mar 2007 21:56
Xander posted another version that fixed the smoke problem, but I couldn't find the new version.

[edit] Actually he just left off the disable object zwrite on the ghosted objects. This code works just like the DBC version:



Link above now has corrected code as well for future downloaders.

GatorHex
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 2nd Mar 2007 21:52
aw

it wasn't the jpg background anyway, coz I tried it.

http://www.KumKie.com http://bulldog.servegame.com
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 2nd Mar 2007 21:57
See my edit

GatorHex
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 2nd Mar 2007 22:03 Edited at: 3rd Mar 2007 00:20
The Xander/Bolt example looks awsome with smoke and paticles, best explosion+particle+smoke sample so far.



I don't like how he used fixed length arrays though, I'll have to turn that into a structured variable array

Thanx again

http://www.KumKie.com http://bulldog.servegame.com
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 2nd Mar 2007 22:37
Ok I just made this demo using my particle functions, you can easily tweak the explosions and what type of particles come off them from the function in the main source file.

Attachments

Login to view attachments
GatorHex
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 2nd Mar 2007 23:24 Edited at: 3rd Mar 2007 00:19
Nice Dark Coder, that looks uber realistic!



This has almost turned into a "Create the best explosion compo" so I've added screen shots so people people don't have to download every example to decide which is best for their game project.

http://www.KumKie.com http://bulldog.servegame.com

Login to post a reply

Server time is: 2024-05-28 14:20:58
Your offset time is: 2024-05-28 14:20:58