GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 2007-10-13 10:55:02

xot
Administrator
Registered: 2007-08-18
Posts: 1,240

Feedback: Fire

I've been experimenting with video feedback concepts in Game Maker lately. One of the cooler -er- hotter effects I've come up with is fire. I guess I'm breaking my own rule in my very first post in this forum since this doesn't actually use any scripts from GMLscripts.com, but it could conceivably use draw_me(). Well, that's my story anyway and I'm sticking to it. I think it looks nice and it is a super fast effect.

N9z9ufM.jpg

The way it works is, each step I draw a sprite at the bottom of the screen (a surface really). Then the surface is drawn on top of itself three times, shifted to the upper-left, upper-right, and directly above. This has two effects: making the image scroll upward, and continuously blurring the surface as it scrolls. By the time a row of pixels reaches the top it is extremely blurry. I also draw a gradient over everything to darken the rows as they near the top.

I found that the most important factor to get it to look good is selecting a good range of colors. I used black body radiation spectrum as my guide. This is the spectrum of color that something goes through as it is heated, from black to red hot to yellow to white hot. I don't mean to sound too technical, I really just eyeballed it. This is the only graphic used and I'm amazed out how effective it is:

jJ8iHeU.gif

Here's the editable:
Download video-feedback-underwater.gmk from Host-A


Abusing forum power since 1986.

Offline

#2 2007-10-13 18:06:44

Schreib
Member
Registered: 2007-10-12
Posts: 11

Re: Feedback: Fire

This is a very interesting effect. While the top of the flames are very beautiful and believable (esp. at faster speeds) the lower parts where the fire is created is a bit split and non-commune. It would look better if the "fire pieces" in the bottom were closer to eachother. You could also possibly add a randomwavy (not sine-wave) effect.

Great work!

Offline

#3 2007-10-14 08:28:38

xot
Administrator
Registered: 2007-08-18
Posts: 1,240

Re: Feedback: Fire

I probably won't be making any more changes, but please feel free to experiment and report what you find here. From my tinkering, the one thing that is clear is, this is a fragile effect. Tiny changes can have large effects, and controlling it is about as easy as controlling real fire. I never had much luck with any wavy effects or slanted motion as errors would slip in at the edges and make for some ugly artifacts. Maybe if I had used a wider surface that wouldn't be an issue. Scanline rendering effects are another possibility but that would slow things down tremendously. I'm rather pleased with how ridiculously fast this effect is right now.


Abusing forum power since 1986.

Offline

#4 2007-10-20 15:12:31

IamCalle
Member
Registered: 2007-10-20
Posts: 23

Re: Feedback: Fire

Woah! Finally a non-FPS consuming, fancy effect. =)
Interresting indeed, I will def. experiment with this.

Offline

#5 2007-10-20 16:05:20

xot
Administrator
Registered: 2007-08-18
Posts: 1,240

Re: Feedback: Fire

If anybody makes anything with this effect, some credit would be nice. Thanks.


Abusing forum power since 1986.

Offline

#6 2007-10-20 16:43:06

IamCalle
Member
Registered: 2007-10-20
Posts: 23

Re: Feedback: Fire

Ofcourse! Credits is always given from me.

Last edited by IamCalle (2007-10-20 16:44:00)

Offline

#7 2007-10-21 06:24:53

Grand-High Gamer
Member
Registered: 2007-10-09
Posts: 18

Re: Feedback: Fire

The only concievable problem I can see with the effect is the "interlacing" lines.


sigimage1.png

Offline

#8 2007-10-21 08:14:10

IamCalle
Member
Registered: 2007-10-20
Posts: 23

Re: Feedback: Fire

Yes, I noticed that too.
Hmm, maybe blurring the whole surface in some way?

Offline

#9 2007-10-21 09:30:10

Grand-High Gamer
Member
Registered: 2007-10-09
Posts: 18

Re: Feedback: Fire

I'd have a look at the editable but I can't seem to find my reg-key papers.


sigimage1.png

Offline

#10 2007-10-21 10:39:51

Bryan
Member
Registered: 2007-10-11
Posts: 3

Re: Feedback: Fire

Is it just me, or are there horizontal and vertical thingies in there?
bugswb9.th.png

Last edited by Bryan (2007-10-21 10:42:55)

Offline

#11 2007-10-21 12:49:25

xot
Administrator
Registered: 2007-08-18
Posts: 1,240

Re: Feedback: Fire

There are definitely horizontal lines, because I'm skipping scanlines as I scroll. I see the vertical lines in your image, but I'm at a loss as to how they got there, I've never seen that on my screen. It might be caused by drawing a surface to itself. I had a feeling this effect might look different on different screens. Also, are you using 32-bit color depth? I've noticed some feedback effects go to hell on 16-bit displays (although this one doesn't seem to have a problem for me in 16-bits). What graphics card are you using?


Abusing forum power since 1986.

Offline

#12 2007-10-21 14:23:37

Bryan
Member
Registered: 2007-10-11
Posts: 3

Re: Feedback: Fire

Its most likely my graphics card wink Its a built in one made by intel.. 82945G... *Wants a better one*

Offline

#13 2009-11-11 04:58:52

Vicces
Member
Registered: 2009-08-06
Posts: 1

Re: Feedback: Fire

AWSOME!
Useful in my new game:
gamma.png

Offline

#14 2009-11-11 12:08:14

xot
Administrator
Registered: 2007-08-18
Posts: 1,240

Re: Feedback: Fire

Thanks very much for sharing that, it's gratifying to know something I've worked on has found a use.

Is this game available to play? Do you have it posted on YoYo?


Abusing forum power since 1986.

Offline

#15 2009-11-12 23:41:11

icuurd12b42
Member
Registered: 2008-12-11
Posts: 303

Re: Feedback: Fire

You should check out my Visual Music program, and check out my Visualisation scripts in it (which you can edit with notepad). I do fire like this.

Offline

Board footer

Powered by FluxBB