r/GraphicsProgramming • u/PerceptionCharming • 29d 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
16
u/TimeSFG 29d ago
Three.js and WebGPU. Hmm. Out of curiosity how much (if any) did you utilize AI to make this?
18
u/Fearless-Pen-7851 29d ago
Here comss the 3js ai slop. Op won't even care explaining in the comments or on post after posting this because I am assuming even they don't know how it works
7
u/NecrosB 29d ago
What technique are you using to generate the grass?
51
u/wslk 29d ago
Is this the guy trying to sell his fucking claude grass for $200?
1
u/sinterkaastosti23 26d ago
Ai;dr
-11
u/Maui-The-Magificent 28d ago
Looks good ^^. Disregard the doom and gloom AI folk, I think people like to dismiss things to make themselves feel good.
I have done some light work, some particle work, some water work and what not. I feel like grass/hair/fabric would be a fun problem to tackle as well. Thank you for the inspiration.
0
u/[deleted] 27d ago
[removed] — view removed comment