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 / Explosion creation..

Author
Message
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Nov 2004 08:40
Anyone know of any good tips for how to make nice explosions in DBPro?

2D Plain with flaming texture? Scaled spheres? Anyone got any examples? I have done it before but in all honest it was so crap its not even worth a low quality JPEG screeny!! Lol...

Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Nov 2004 11:40
Btw: This is the game this question relates to...

http://forum.thegamecreators.com/?m=forum_view&t=42372&b=8

As you can see from that, frame rate CERTAINLY isn't an issue right now.. Could anyone do a little tutorial on particles for this kinda thing? Or point at a codebase entry? Cheeeeeers.

Lost in Thought
22
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 8th Nov 2004 11:46
Bolt made a snippet here.
http://forum.thegamecreators.com/?m=forum_view&t=24518&b=6
There are also a few more examples in the code snippets forum and the code base. Just search for "exp" I wouldn't search the whole word as some people spell it wrong

Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Nov 2004 11:52
Cheers - problem is dbspot is down rite now I think... I'll look tomorrow.. quite tired!! Lol..

Lost in Thought
22
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 8th Nov 2004 12:20 Edited at: 1st Mar 2007 18:22
Oh I have the file if you want to see it. I think DBSPOT is permanently down ... isn't it?

[edit] Here it is. It hasn't been altered in any way. I'll leave it here unless bolt tells me to take it down.
http://mapmasterz.com/lit/Explosion.zip

JerBil
22
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 8th Nov 2004 13:49 Edited at: 8th Nov 2004 13:52
Nick, here's a scaled explosion with shock wave. It's the one I used in my compo entry, minus sound. Press the spacebar to see it -JerBil

Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Nov 2004 21:30
Ooo that looks cool. I did something like that once for a game I tried to make. It was basically the same thing, but I textured and ghosted it.
I also know it looks good if u have two spheres one about 10% bigger than the other. As the expand, either rotate them or shift the UV coords and it looks quite cool..

Xander
23
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 9th Nov 2004 00:26
Oops, I forgot about DB Spot being down...I will upload the .zip file when I get back into my room, right now all I have access to is this slow wireless...

Xander Moser - Bolt Software - Firewall
Dodo
21
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 9th Nov 2004 01:56
here is a link to Yellow's(Mike S) explosion code(from the code base) using particles

Part of solving the problem is actually noticing that the problem is there in the first place

Xander
23
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 9th Nov 2004 03:10 Edited at: 9th Nov 2004 04:06
Okay, I uploaded my explosion example. Here is the link to the zip file, with all media, and some improved source code. Here are a couple pictures:

http://www.excaver.com/bolt/Explosion.zip
http://www.excaver.com/bolt/ExplosionClassic.dba
http://www.excaver.com/bolt/ExplosionPro.dba





If you have any questions about it, just ask

Xander Moser - Bolt Software - Firewall
Lost in Thought
22
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 9th Nov 2004 03:40
Cool I'll take the old one off my site then

Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Nov 2004 03:51
May I try to tweak that to make the smoke and stuff work using transparency?

Xander
23
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 9th Nov 2004 04:07
You can tweak it all you want, be my guest. You can even base a game off of the explosion engine, I don't care. But if you are a nice person, you will give me a little bit of credit...

Xander Moser - Bolt Software - Firewall
Philip
22
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 9th Nov 2004 04:09
One of the unfortunate side effects of v5.7 and all the problems with ghosting is that the shockwave effect plane no longer blends into the explosion effect plane very well any more.

Oh well. Ho hum.

Philip

What do you mean, bears aren't supposed to wear hats and a tie? P3.2ghz / 1 gig / GeForce FX 5900 128meg / WinXP home
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Nov 2004 04:43
Yeah I think TGC need to sort out this transparency problem. I have had enough problems with it.. I had to remove a feature in my rocket buggies game (I wanted a transparency window) BUT the engine cannot show transparency objects through transparency objects!! Or so it seemed..

Anywho I have attached new smoke textures.. I modified the smoke loading routine so now it does not grab chunks from a bmp.

This is the smoke routine I used - its 99.9% the same, except the loading routine.. Cant remember if I tweaked the transparency stuff..


MikeS
Retired Moderator
23
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 9th Nov 2004 04:53
[href]here is a link to Yellow's(Mike S) explosion code(from the code base) using particles [/href]

Hehe, that might need to be updated a little bit. Through a few planes in their, 3 or 4 scaling spheres with a spinning texture and we might have something. I'll see if I can update that eventually.

Never underestimate the particles.

A book? I hate book. Book is stupid.
(Formerly known as Yellow)
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Nov 2004 05:05
Is there a way using the built in particles to stop them doing silly speed when the framerate is high? I dont want to limit the framerate, so does that mean I cant use particles cos they look stupid at 1000fps?

Xander
23
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 9th Nov 2004 05:11
I think you can use the timer based speed control to control the speed (velocity, whatever) of the particles, can't you?

Xander Moser - Bolt Software - Firewall
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Nov 2004 05:13
Dont think so.. The problem I find is I think the speed is preset at say "10" per cycle.. Its not timer based. Most of my games run at over 300fps in DB, often more... This means I either have to force the game back down to about 60 (what they're designed to run at) or not use them. I prefer games to run at whatever speed they can for 2 reasons..

(1) Collisions are more accurate if you check a moving object more often
(2) If it runs perfectly at 60fps AND at 1500fps, then it will run fine at everything in between meaning it will work on ANYONES PC..

IBOL
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 9th Nov 2004 05:16
@bolt
holy crap! that's pretty awesome. i doubt i will use any of your
actual code (i write differently than you) but your ideas...
i have done similar to the expanding plains here, but i did it with
spheres and mine looked pretty bad. and i will try those triangles.
that's brilliant in itself.
so thanks up front, and nudge me in the future {when} i release something that has kick@ss explosions.
(ok, IF...)
bob

ps on dbpro and smoke not working...
maybe i should have just gone with darkbasic classic. someone said that it seems that all the best looking games come from classic users... and when i first made my decision, i thought classic was
incapable of 3D objects. i was wrong...
JerBil
22
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 9th Nov 2004 07:50
@ Nick
Here's a re-do of my scaled explosion. Feel free to use the texture
or anything else for whatever.

-JerBil
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Nov 2004 07:54
Thats a nice explsion!! little overkill for what I want, but a good one for a BFG or something...
Btw: Like the frameTime Code.. Wonder what genius wrote that?!

JerBil
22
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 9th Nov 2004 08:41
Thanks.
I'm thinking the frameTime code should become a part of DBPro.
Wouldn't do the genius any harm, either!

-JerBil
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Nov 2004 08:47
Hehe.. It is usefull that bit of code.. Glad I made it now

Xander
23
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 9th Nov 2004 08:57
IBOL: Thanks. Yeah, I disabled the smoke in the Pro version, I couldn't get dark ghosting working...but Nicholas Thompson said he could fix it...

Have you seen Firewall? The explosions in there are the same as the example...

Xander Moser - Bolt Software - Firewall
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Nov 2004 09:42
I tried to fix it - partially got it working.. Think I posted about it above (at 20:43).

I'll have a look at firewill in a bit..

Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Nov 2004 09:58 Edited at: 9th Nov 2004 09:58
Sorry to double post, but this is a different topic to the last post (thats my excuse and i'm sticking to it!)

Anywho.. For those of you who are interested, this explosion topic is linked with my WIP game:

http://forum.thegamecreators.com/?m=forum_view&t=42372&b=8&p=0

Currently it looks like:


IBOL
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 9th Nov 2004 12:42 Edited at: 9th Nov 2004 12:43
@bolt
yeah, i think your game was one of the first db games i downloaded,
and was a great influence in my choosing db as a language, over the others i had found. haven't seen the latest version.
have to admit, it runs a little slow on my pc, (graphics card...)
but i think it's really well done and quite original.
and yes, i did go and revise my explosions, and they are much better
now. this whole explosion post series has helped me a lot.

sorry nicholas. i did post on topic on your game thread.
bob

Login to post a reply

Server time is: 2026-06-05 13:52:55
Your offset time is: 2026-06-05 13:52:55