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.

The 20 Line Challenge / fast 2D fire effect

Author
Message
Avan Madisen
20
Years of Service
User Offline
Joined: 12th Sep 2002
Location: The Castle Anthrax
Posted: 19th Nov 2002 02:17
This code is a modified one from DarkForge, but I think it's worth at least mentioning even if I didn't code the entire thing myself. This is just an alternative to their effect. Tthe original is the RealFire effect coded by S.Lintula and R.Davey. I've modified it to look better and run faster. It's from DBV1.13, I don't know if it'll run on DBPro.



It runs about 40fps on my PIII 500mhz, I dread to think how fast it'll run on a 2ghz! Next time I'll submit something that's 100% my own code.

I do appologise if I am breaking the rules here.

Avan
It's all a dream, trust me...
Anonymous
20
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Australia
Posted: 19th Nov 2002 06:57
Cool, but how come its using that resolution? or is it just my computer?
My computers resolution is 1024 x 768.

Mirthin
20
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Land of the Rising Haggis
Posted: 19th Nov 2002 13:46
Nice. Fastest one I've seen yet.

This has "Fiasco" written all over it.
TGWDNGHN
20
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 19th Nov 2002 23:18
ew...he effect is fast as hell but it looks so pixley...its like converting a 32bit pic into a 16 bit...nice try though

If life gives you a lemon, shove it up a water gun and squirt it into someone's eyes!
Mirthin
20
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Land of the Rising Haggis
Posted: 19th Nov 2002 23:39
it isn't that bad. I've only just recently figured out a use for these things - jet engines! Make the black transparent, convert it to an animation, texture a simple cone et voila!

This has "Fiasco" written all over it.
The Darthster
20
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 20th Nov 2002 00:29
I only managed 59fps on my 2Ghz machine, but then I only have a 32mb pci GeForce2 MX 400.
Avan Madisen
20
Years of Service
User Offline
Joined: 12th Sep 2002
Location: The Castle Anthrax
Posted: 20th Nov 2002 00:46
It's pixelated because of the low resolution it runs at, blended as an animation it should look pretty good.

I've considered trying to blend it into something that could be used in 3D, but it'd need quite a lot of cpu power to do it under my current thinking, but ideas are always there to be found!

My next challenge is Max Payne style particle effects with bullet time in 20 lines or less. Before anyone askes, yes I am completely insane! (insert evil, maniacal, laughter here)

Avan

It's all a dream, trust me...
Mirthin
20
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Land of the Rising Haggis
Posted: 20th Nov 2002 01:00
Hmm, interesting.

This has "Fiasco" written all over it.
Skyone
19
Years of Service
User Offline
Joined: 30th Dec 2002
Location: United States
Posted: 4th Jan 2003 01:37


try that

Code of the Week: Moving an object back.
If Downkey()=1 then Move object x,-10
x=Object Number
n3t3r453r
20
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Russia
Posted: 11th Jan 2003 09:12
My screen is black...
Revolution
19
Years of Service
User Offline
Joined: 27th Dec 2002
Location:
Posted: 11th Jan 2003 19:56
Same
Tomasino
19
Years of Service
User Offline
Joined: 10th Jan 2003
Location:
Posted: 17th Jan 2003 05:17
My screen is black. Running it in DBpro Demo.

T.

http://www.playthepool.com
Richard Davey
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 17th Jan 2003 17:46
It probably runs very slow on DBPro (not his fault, just the way bitmap swapping works now), I'll write an updated version of it - otherwise it's quite cool, it is always interesting to see how your code mutates when other people get their hands on it

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Rob K
Retired Moderator
20
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 19th Jan 2003 04:04
@Rich

I noticed that quite a few 2D commands (mainly GET IMAGE & the BITMAP ones) are slower in DBP, can you ask Lee to look into this urgently?

NOBODY has a forum name as stupid as Darth Shader. I do.

Login to post a reply

Server time is: 2022-12-06 10:19:49
Your offset time is: 2022-12-06 10:19:49