2
\$\begingroup\$

I want to simulate a fire in a flat and non flat* surface (fire spread modelling).

I've seen that cellular automata is one of the algorithms that can be used. Are there other algorithms that would be interesting to test?

*adding some barriers like walls

\$\endgroup\$
  • 3
    \$\begingroup\$ This isn't the place for discussions. See the FAQ about what kinds of questions to ask here. \$\endgroup\$ – MichaelHouse Sep 24 '12 at 22:26
  • 1
    \$\begingroup\$ I would recommend rephrasing to something along the lines of "What methods for simulating fire in 2d exist other than cellular automata?" to make Byte happy. \$\endgroup\$ – ClassicThunder Sep 24 '12 at 22:34
  • 1
    \$\begingroup\$ I'm not sure that rephrasing would work. Since then the correct answer would need to include all the methods for simulating fire in 2D. It's still a discussion/polling for ideas. Just like asking what 2D engines exist for C++. @A.R. You should totally ask in chat though, discussions are welcome there. \$\endgroup\$ – MichaelHouse Sep 24 '12 at 23:01
2
\$\begingroup\$

Easy. Particle system. Flammable objects have a constant boolean for flammability set to True, then another boolean which dictates if the object is on fire. If true spawn a particle system on them to give it an effect which makes it look like its on fire. If a flaming object collides with another, then set that object on fire. You may want to spread the flame only after the objects have made contact for a certain duration, or all connected flammable objects would light instantly.

I've done something similar with the Love2D Engine

| improve this answer | |
\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.