Sign in to follow this  
BlazeCell

Little Inferno - Fire Algorithm

Recommended Posts

BlazeCell    452

So I just got done playing Little Inferno by Tomorrow Corporation, and I absolutely loved it. The algorithm they used for the fire combined with the physics of the smoldering debris matched the visual feel of fire so well, I couldn't distinguish what I was seeing from real fire. The pyromaniac within me is doing cartwheels.

 

So I was wondering, what algorithm were they using for the fire? There are definitely particles being used, but I'm not sure the fire is entirely comprised of just particles. It's very fluid and whole looking.

 

So, any thoughts on what they might be doing under the hood?

Share this post


Link to post
Share on other sites
Bacterius    13165

They may be doing some fluid dynamics calculations behind the hood, there are some visible advection/convection patterns. Also they seem to do some "heat wave" effect which creates visual distortions around fire, which, though exaggerated, adds to the immersion. I'm basing this reply off the second trailer video, I haven't actually played it.

Share this post


Link to post
Share on other sites
SuperVGA    1132

I think they feedback previous frames over the current one, while warping them (warp can change gradually) and using some blurring and color calibration.

The result of the frame is perhaps particle effects like you said, but it can be combined with a classic flame effect or the likes.

2D image processing is fast nowadays, so it's basically just about combining stuff right. Above is my 2 cents.

 

Fluid dynamics iscan be a whole lot more complicated than the abovelinked (Although I guess it is a simplification hereof, in the plane). I'm convinced it can be done with little effort.

It's just that particle effects has been so "in" during the past 15 years, and it hasn't become mainstream yet to using pixel shaders for 2D fire effects like this one.

 

The method is a few decades old, though, to my awareness. Naturally the requirement to resolution has changed, and 20 years ago, we'd probably be using pixel doubling and as direct video memory writes from the CPU as we could.

Edited by SuperVGA

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this