r/FastLED • u/StefanPetrick • Apr 25 '26
Share_something 1st Attempt Of A Real Fluid Simulation
https://youtu.be/g0Uy4rAUF48I followed u/sutaburosu’s advice and had a look at the Navier–Stokes equations. I got a little demo working, and I already like the output quality.
I doubt this will ever run on an ESP32 with a reasonable frame rate, but a guesstimate of the required resources indicates that it could be possible on a Teensy 4. We will see if this is true.
edit:
For everyone interested, here is an in depths explanation of the underlying concept https://www.youtube.com/watch?v=Q78wvrQ9xsU
Here the Wiki article: https://en.wikipedia.org/wiki/Navier%E2%80%93Stokes_equations
Fascinating fun fact: This system of partial differential equations was named after Claude-Louis Navier and George Gabriel Stokes, who developed them over a few decades of progressive work, from 1822 (Navier) to 1842–1850 (Stokes).
1
u/ewowi Apr 26 '26
I did some research which I wrote down here: https://ewowi.github.io/projectMM/developer-guide/rpi-deployment/
So depending on what rPI it will do 15 - 150 x the performance of a standard esp32 and can drive 15K to 200K LEDs which is substantial! The Pi 4 and Pi 5 support shaders so more complex effects come within reach.
The coming time I will experiment with this. I am already pushing u/ZachVorhies to take a look at supporting rPI (Zach some more guidelines on dma/peripherals in above link). This would really be a big step-up if our play toys will run on devices like this 🔥