r/GraphicsProgramming • u/PerceptionCharming • Oct 05 '26
I finally got procedural grass looking the way I always wanted in Three.js
Enable HLS to view with audio, or disable this notification
Every blade is rendered individually, with enough geometry and detail that you can get right down into the grass and still see the shape of individual blades.
What I'm really happy about is how well that detail holds up into the distance. The grass doesn't just look good up close and then turn into a blurry carpet. There's still a surprising amount of visual fidelity as you move further away.
And this is running at 1080p on a base M1 Mac.
I've spent a huge amount of time working on the rendering, LOD system, culling, tiling, wind, and overall density to get this balance between individual blade detail and performance.
This is essentially what I've been trying to achieve with Three.js Grassworks: pushing procedural grass in Three.js as far as I can while still keeping it practical enough to actually use in a real-time scene.
It's built around WebGPU and Three.js, and the current system can handle different grass types, terrain interaction, distance-based LOD, and large grass fields while maintaining this level of detail.
Still a lot more I want to push with it, but I'm genuinely really happy with where it's at now.
6
u/Seusoa Oct 05 '26
diversity of grass not found
5
u/DescriptorTablesx86 Oct 05 '26 edited Oct 05 '26
If I can just share that imo the interaction delayed recovery looks really weird. I think the typical displacement in a radius around player position is much better and probably simpler.
30
u/biteater Oct 05 '26
definitely AI :(
6
u/whatairport Oct 05 '26
Use rust wasm bro agents write it the same speed anyways
27
u/DapperCore Oct 06 '26
This is 100% ai, even the post's text is 100% ai generated according to pangram.
2
u/EarlMarshal Oct 05 '26
I get like 10-23 FPS on my (above average) smartphone. Seems like it is eating a lot of resources. I rather have no grass than a resource hog.
2
u/mrpressydepress Oct 05 '26
Looks great been wanting to use this for a project. Cant wait to have a few hours to do that. Looks really nice. Hope it can handle large areas and has smooth transition between patches.
5
u/SubstantialSeesaw374 Oct 06 '26
This is just an ad.
0
u/HolyVRGamingStudio Oct 06 '26
Looks good, doesn't matter AI or not, AI is here to be used, you should improve diversity
1
u/NuclearVII Oct 07 '26
AI slop ad for AI slop.
2
u/[deleted] Oct 05 '26
[removed] — view removed comment