O'Reilly logo

Instant Silverlight 5 Animation by Nick Polyak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Fire simulation

Here we want to simulate a bonfire rising up from the ground. This differs from simulating clouds in the following respects:

  • Fire has a shape with the highest flame concentrated near the center while the sides of the fire are usually lower.
  • Fire has colors changing from bright yellowish to orange, to red from the bottom to the top.
  • The fire pattern is different from the clouds in terms of its texture. Perlin called noise producing fire texture – turbulence flow. The Multi-scale Perlin noise algorithm for calculating turbulence flow is different in the sense that it sums up the absolute values of basic Perlin noise at different octaves (see http://www.noisemachine.com/talk1/22.html).

The fire simulation code is located under project ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required