r/GraphicsProgramming • • 5d ago

Simulating 3D Foliage purely in GPU - Uverse Game Engine

This is heavily inspired by "The Legend of Zelda: Breath of the Wild", but with combination of inspiration with Wall-E. Altho, I might change the main character for something else for better fitting to the natural environment lol.

What I've been mainly working on is Foliage (Grass) Simulation of which I added in Uverse (my own Game Engine) directly, and then I used it for this project for game demo, of which I am developing and focusing now!

This is made with own custom game engine (no threejs no godot) which runs natively in WebGPU/WASM but also supports natively in Direct12, Metal and Vulkan too. And this Foliage simulation has been rendered by vertex shader, not a geometry/mesh - The foliage simulation is actually split into small cells, and one instanced draw per detail level builds every blade in the vertex shader. No blade is stored. The grass is highly interactive with the wind itself (just two layers of scrolling noise for the gusts and a small per-blade flutter), highly customizable with the different grass colors, dryness, batches and of course, it also supports collision system to interact the grass with object. This is something I always wanted implement it for the past 15 years (when I was very young game dev), but only now I implemented it for the first time and I feel proud of this work. ^^

Disclaimer: Most code + 3d assets has been generated by Uverse's AI "Orbit"

If you have questions, shoot either here in comment or in DM! :)

Check it out at https://uverse.dev for more information

This method has been implemented from
Procedural Grass in 'Ghost of Tsushima' in GDC 2021

39 Upvotes

12 comments sorted by

7

u/Brave-History-6502 5d ago

Vibe coded game engines— I tried as well, not a good use of tokens unfortunately 

-10

u/UverseDev 5d ago

Actually, the game engine has been developed initially without the AI and by the time goes, it has been used mostly for AI-Assistance while keeping the right architecture and infrastructure in mind, yep! :)

However, this project alone, not the game engine, has been used mostly AI.

2

u/Brave-History-6502 5d ago

your showcase demo does not work. 

1

u/UverseDev 5d ago

Can you tell me which showcase demo you mean? So far everything is functional here. Maybe you can tell me as well which Browser you used?

Thank you so much for letting us know! :)

15

u/HexDumped 5d ago

So... this is an advert?

1

u/WobblyBlackHole 5d ago

What's the generic technique called for doing this?

6

u/UverseDev 5d ago

The technique is called "procedural GPU grass". You can learn more about this from Ghost of Tsushima in GDC 2021: "Procedural Grass in Ghost of Tsushima"

3

u/WobblyBlackHole 5d ago

Cool thank you so much

1

u/AutoModerator 5d ago

Recently updated rules. Please check that your post is in compliance with Rules 1, 4, 5, and 6 on the sidebar. TL;DR:

  • No showcases.

  • Disclose AI usage in post or project.

  • Present a topic to talk about, e.g. how something works.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

0

u/[deleted] 4d ago

[removed] — view removed comment

2

u/CodyDuncan1260 4d ago

OP provides a minimum description for how the grass rendering works with a reference to source talk for more details. That's topical. Approving now.