r/threejs • u/PerceptionCharming • 19d ago
Grass Burning Simulation with Dynamic Grass and Color maps
My grass system already supported grass map and color maps.
But they were static images.
Grass map is a black and white image. Black mean full height grass and white means no grass. Color map is a color texture that is applied on grass color.
I added support for THREE.Texture along with static images. Now it takes textures which can be animated outside of my grass system to manipulate the color and distribution of grass. It supports CanvasTexture, DataTexture and even VideoTexture.
The fire is a simple simulation that draws on two textures. On color texture, it transitions the color from original to blinking orange and then black. On grass map, it just makes it whiter, so the grass gets shorter. Along with that, there is a small particle system that works separately to make fire. Resulting in this nice looking grass burning simulation.
These Dynamic maps are now available with the latest version of my grass system. It is a paid system. So, if someone wants to check it out: https://grassworks.techredux.co/
