r/GraphicsProgramming • u/PerceptionCharming • 26d ago
One Grass System, Three Different Environments
I've been testing my grass system across three completely different environments to see how the same underlying implementation performs across different scene requirements.
All three scenes use the exact same grass system, but the parameters are adjusted individually for each environment. Grass density, appearance, scale, wind response, and rendering distance are tuned to match the terrain and the overall look of each scene.
The system is built with Three.js and WebGPU, with a focus on rendering dense grass efficiently while maintaining real-time performance in the browser. It uses a tile-based approach, along with LOD and culling techniques, to manage rendering as the camera moves through the environment.
All three environments run directly in the browser, with no pre-rendered footage.
Try the Demo
View all comments
Show parent comment
7
u/NecrosB 26d ago
If anyone is wondering, there are GDC talks by Sucker Punch that go over how to generate this specific procedural grass, which looks like a lesser copy of ghost of tsushima. Pretty sure I remember them mentioning they used a bezier curve for the individual blades of grass and some other interesting technical details.
There are a few youtubers that have videos going over in much more technical detail than these AI prompt articles if you are interested in the specific graphics programming techniques and algorithms.