Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: Fire (effect) on an APA102 matrix.

  1. #1

    Fire (effect) on an APA102 matrix.


    I tryed to code a fire effect for a 16x16 matrix.

    This was the first result:

    The wind appeared too strong, so I adjusted the parameters a bit. Result:

    In case you want to play with it, here is the code. There are many parameters to be discovered. Comments can be found in the code.

    The basic idea is to have a dynamic heatmap which controls which areas are scaled down (=cooled) how much.

    I used FastLEDs noise function for that mask. It also allowed me to add some movement to the sides to get it more alive.

    Finally I controlled the parameters of the noise field by other noise data in order to get a kind of organic and natural look. Sometime its more steady, from time to time it gets more wild.

    What do you think? If you know about some other fire implementation Im happy to learn about it, too.



  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Germany NRW
    (klick on picture for video)

    but.. yours look better

  3. #3
    Hi Frank,

    I like the smooth a appearence of your animation. Your code seems to be a variation of the method described here, just with more neighbor pixels for the filtering.

    I improved my one a little by adding another filter mask and changing the colormapping. Not sure if that makes it more realistic but at least I kind of like the effect.

    It is really challenging to get a decent result on just 16x16 pixels...

  4. #4
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Colmar, France
    For me, it would still be a little bit too much animated. It gives the impression to be restless. Perhaps a bit slower?

  5. #5
    Senior Member mortonkopf's Avatar
    Join Date
    Apr 2013
    London, uk
    only 16 x 16 pixels! looks great

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts