StefanPetrick
Well-known member
The first tests are pretty promising. On an ESP32 it runs (without any optimisation yet) already with >30 fps on a 48x32 WS2812 matrix. So on a Teensy 4 + high res LED matrix this will fly. I guess we'll end up with a float-FPU version for Teensy and ESP32S3 and with a seperate fixed point version for MCUs without FPU.
It is a 2D Navier Stokes solver and I'm really impressed that this works at all on an MCU. It is a cell based solver which simulates advection and diffusion of a newtonian fluid. This can create mesmerazing procedural animations. Depending on the parameters settings stuff like dye in water, oil, smoke flow can be visualized.
Here a plain and simple real world LED example:
Here some simulation screen grabs:
(Please note, that the smoke flows around the letters - they work as obstacles for the flow.)
The current code can be found here.
Here the Reddit post.
Here some discussion around it.
To be continued. Consider this to be an early preview. Later it will become part of the FastLED library.
While talking about it: FlowField is already part of FastLED.
Reddit post + Video.
https://www.youtube.com/shorts/3AAFi8B1Ygs
It is a 2D Navier Stokes solver and I'm really impressed that this works at all on an MCU. It is a cell based solver which simulates advection and diffusion of a newtonian fluid. This can create mesmerazing procedural animations. Depending on the parameters settings stuff like dye in water, oil, smoke flow can be visualized.
Here a plain and simple real world LED example:
Here some simulation screen grabs:
(Please note, that the smoke flows around the letters - they work as obstacles for the flow.)
The current code can be found here.
Here the Reddit post.
Here some discussion around it.
To be continued. Consider this to be an early preview. Later it will become part of the FastLED library.
While talking about it: FlowField is already part of FastLED.
Reddit post + Video.
https://www.youtube.com/shorts/3AAFi8B1Ygs
Last edited: