This is a simulation of the Gray-Scott reaction-diffusion model running on the GPU. In such systems, an auto-catalytic reaction involving two chemical species is happenning concurrently with diffusion. Despite the apparent simplicity of the model, simulating it with cherry-picked sets of parameters produces a wide range of emerging behaviors.
- Run it in your browser : https://www.shadertoy.com/view/lXXcz7
- Detailed article : https://pierre-couy.dev/simulations/2024/09/gray-scott-shader.html
4 Comments
CodexArcanum@lemmy.world · 3 pts · 1y
Reminds me of a classic Nile Red video where he recreates the Belousov-Zhabotinsky reaction, which looks somewhat similar though I don't know enough chemistry to say if they're actually related reactions.
pcouy@lemmy.pierre-couy.fr · 3 pts · 1y
I'll make sure to look into it and tell you what the differences are. The patterns definetly look similar to the "wave" or "spirals" preset from my video
pcouy@lemmy.pierre-couy.fr · 2 pts · 1y
Hey ! I (superficially) looked up the Belousov-Zhabotinsky reaction and can confirm it is related to the Gray-Scott model.
The Belousov-Zhabotinsky reaction involves an autocatalytic reaction and chemical species diffusing at different rates, just like in the Gray-Scott model. The main differences are related to constraints of doing actual chemistry instead of simulating it :
CodexArcanum@lemmy.world · 2 pts · 1y
How very cool! Thanks for doing the research and reporting back! I love seeing such a clear and beautiful example of two models, one virtual, sharing emergent properties and behaviors.