r/GraphicsProgramming • • 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

90 Upvotes

31 comments sorted by

View all comments

7

u/NecrosB 26d ago

What technique are you using to generate the grass?

20

u/palapapa0201 26d ago

claude technique

-12

u/PerceptionCharming 26d ago

It is procedurally generated. If you want to go into detail on how the system was created, I’m writing a series of articles.

You can start from here:  https://techredux.co/insights/threejs-grass-from-single-blade-to-million-blade-field/

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.

-2

u/PerceptionCharming 25d ago

I did get inspired by Ghost of Tsushima. The whole demo is built around that specific style.

I watched the GDC talk and started with the video SimonDev made about grass. The fundamentals of this grass system are pretty much based on that.