r/GraphicsProgramming • u/UverseDev • 1d 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
11
u/HexDumped 1d ago
So... this is an advert?
3
u/Brave-History-6502 1d ago
Vibe coded game engines— I tried as well, not a good use of tokens unfortunately
1
u/WobblyBlackHole 1d ago
What's the generic technique called for doing this?
1
u/Brave-History-6502 1d ago
your showcase demo does not work.
1
u/AutoModerator 1d ago
Recently updated rules. Please check that your post is in compliance with Rules 1, 4, 5, and 6 on the sidebar. TL;DR:
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] 1d ago
[removed] — view removed comment