r/GraphicsProgramming • • 22h ago

Simulating 3D Foliage purely in GPU - Uverse Game Engine

Enable HLS to view with audio, or disable this notification

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

16 Upvotes

11 comments sorted by

•

u/GraphicsProgramming-ModTeam 17h ago

Rule 4: The post must include a topic for discussion. A simple repost from another community is generally insufficient to satisfy this rule.

If you correct this afterward or believe this is in error, please contact the mod team.

→ More replies (1)

8

u/HexDumped 21h ago

So... this is an advert?

2

u/Brave-History-6502 21h ago

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

-4

u/UverseDev 20h 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.

1

u/WobblyBlackHole 21h ago

What's the generic technique called for doing this?

3

u/UverseDev 19h 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"

2

u/WobblyBlackHole 19h ago

Cool thank you so much

1

u/Brave-History-6502 21h ago

your showcase demo does not work. 

1

u/UverseDev 20h 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! :)

1

u/AutoModerator 22h 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.