FIRE in the storm on an APA102 matrix! :-) Hello everybody,

FIRE in the storm on an APA102 matrix! :slight_smile:

Hello everybody, just a quick proof of concept.

I used the Noise functions for the heatmap and for the wind simulation as well.
All the parameters which control the noisefield are influenced by another noise function in order to get the animation more vivid and alive.

What do you think?

edit: Code here https://gist.github.com/StefanPetrick/1ba4584e534ba99ca259c1103754e4c5

https://www.youtube.com/watch?v=SWMu-a9pbyk&feature=youtu.be

It looks fantastic, nice work! The diffusion works really well here :slight_smile:

Really impressive!

It’s amazing, I’d love a copy of the code :wink:

Thank you, guys! Sure @Jeremy_Spencer here you go: https://gist.github.com/StefanPetrick/1ba4584e534ba99ca259c1103754e4c5

Thx for the code. Love your comments re: the delay statement. I occasionally have to do that as well and feel pretty guilty about it.

Same thing with slighly different parameters: https://www.youtube.com/watch?v=utBoqCAO4j8&feature=youtu.be

@Stefan_Petrick - Beautiful! So realistic looking. Thank you for sharing your code.

@Andrew_Tuline You´re welcome. The problem here is that this frame by frame scaling in an 8 bit space allows not enough steps for high framerates. 16 bit math would help. But honestly: For fast moving animations I don´t care about fps (except it´s audio visualisation ;-). No one will see a difference between 70 and 700 fps. And it was just a test that worked surprisingly well for a first try. So you see: I feel guilty too and try to defend myself now.

@Stefan_Petrick Thank you :))

Very nice @Stefan_Petrick :]

Stefan, its nice. But IMHO it is not pretty, when it moves left\right. There something “unnatural”.
I think, moves needs to be improved. And it will become PERFECT ))
Sorry for pore English.

@fa25514ad7a4d6321c2d I agree. The factor controlling x of the noise field sets the intensity of this. It could be less or even zero (x should be static then). All the parameters allow a lot of finetuning.

What makes it look unnatural to me is that the wind affects (blows) the base too. If the base (where the actual fuel/wood/hot coals are sitting) was fixed I think that would nail it.

But it’s a proof of concept and looks really good! That can be version five. :smiley:

Indeed. Everyone is welcome to play with the parameters. Maybe an inisible base would be better anyway? For sure there is much space for improvement.

When I write comment, page was not updated and I see just first variant. Second is perfect! You are “noise maniac” )) Your noise functions are awesome )

@Stefan_Petrick may be my words are foolish, but may be try to make delay not with “delay” function, but with some blend function, like “nblend” or something similar?
In this case - processor would not just wait, but will usefully calcs more pretty looks animation )
Controlling blends parameters it is possible to make animation slower.
Sorry for pore English.

for now I’m testing fire effect on 5 strips.
I’m use 60 led\m and SAN milk plastic as diffuser (Styrene Acrylonitrile, not acrylic). There are about 3 cm between strips and plastic is about 3-4 cm from leds.
It looks very-very smooth!
You can make your matrix more wide (x1.5 or more) and I think it will looks nice as now!
Hope this would help for somebody!

60 leds\m
missing/deleted image from Google+