Animating Fire Part 2: Three-Dimensional Flames

In the previous post we covered how to create a two-dimensional flame such as the one below:

Note that the flame is seen from a side-on view, and any game requiring a different viewing angle will not be able to get one using this method alone. In this post we will expand upon our technique to create a three-dimensional flame like the one below:

This effect is used in Brimstone to make the flames appear to come out of the page, and may be used in any birds-eye platformer where the objects are seen from an angle.

Recall that in this post we were able to make a two-dimensional image appear to rotate in three dimensions, see for example the coin below:

Note that this technique was used to make objects rotate over time, but there is no reason that we can't perform several such rotations all at once. This is essentially the idea we will use to create our three-dimensional flame.

With the coin, we had a constant ω set to 2π/T, where T is how long it takes the coin to rotate back to the same state. Here, we will create fires with M animation frames each and will set ω equal to 2π/N. Each step of the animation, we will perform N transformations of the canvas in the same manner that we did the coin. Each transformation we will draw a different fire. For example, during the j-th transformation of the k-th step we will draw the k-th animation frame of the j-th fire. This will ensure that each fire will be animated at a different rotation angle, and we will essentially have rotated our two-dimensional fire into a three-dimensional one.

Games Mentioned in this Post:

31 thoughts on “Animating Fire Part 2: Three-Dimensional Flames”

  1. Hello!

    Bitcoin price is falling down. What to do?

    You have to increase the number of coins until the price of Bitcoin starts rising again!

    The best choice for this is

    DC-BTC increases bitcoins by 10% in 48 hours.
    You will automatically make a profit in to your bitcoin wallet.

    Start participating with small amounts and make a profit tomorrow!

  2. Dear Sir / Madam,

    We want to give you the opportunity to earn FREE MONEY with our special new method, it doesn’t require any effort at all and it actually works! We now have thousands of users who have earned over $350000.00 in just 1 week! We are also giving away $1000 on our Instagram @dailyskins4free.official. JOIN NOW before it is to late!

    Our website is . Our site makes it easy to search for the perfect gambling sites and collect Daily Free money. Our mission is to provide the community a overview of all the legit gambling sites. We also provide all affiliate codes for FREE money in one place, it is now over $100.00! What makes us unique is the “Daily Free” section. Here you can find all the websites that have a Daily Free option. With our easy open service you can get from min. $5.00 all the way up to $45000.00 a day for FREE. The only thing left to do is to collect your FREE money! You can also write reviews for products and get paid $12.60 each hour! It’s not over yet! We also have a monthly giveaway where you can participate for absolutely FREE.

    Thanks for reading and start earning now!

    Yours sincerely,

    Mark from the Dailyskins4free team

  3. I am only writing to let you understand what a magnificent encounter my wife’s princess enjoyed checking yuor web blog. She picked up a lot of pieces, which included how it is like to possess a great coaching heart to let the rest with no trouble learn several problematic matters. You actually did more than people’s expectations. Thank you for presenting such informative, trusted, edifying not to mention cool thoughts on the topic to Emily.

Leave a Reply

Your email address will not be published. Required fields are marked *