r/webgpu • • 3d ago

Uverse Game Engine - Simulating 3D Grass

Uverse, a Game Engine, is now able to simulate a real-time 3D grass! 😎 It is highly interactive with the wind simulations plus collider features is also implemented too! 🌿

It runs entirely in WebGPU / WASM, but it allows you to export into native exports too, such as DirectX 12, Vulkan, Metal :)

Check it out at https://uverse.dev - Join the waitlist, since we're about to rolling devs into private alpha access!

75 Upvotes

8 comments sorted by

1

u/js-fanatic 3d ago

Nice job

1

u/UverseDev 3d ago

Thank you so much! :)

1

u/JohannesT 3d ago

For web looks amazing! Is this built on threejs or something else?

1

u/UverseDev 3d ago

Thank you so much! Nope, we're not using ThreeJS, we're using custom game engine for this. :) Which allows us to export it into native too such as DirectX 12, Vulkan and Metal too, not only WebGPU/WASM!

1

u/xzinkx 2d ago

the wind looks really natural. are the blades instanced geometry or generated in a compute shader every frame? curious how many blades it takes before mobile starts to struggle

1

u/UverseDev 2d ago

Actually, the blades are not mesh, and there is also no compute shader. The ground 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 wind is actually just two layers of scrolling noise for the gusts plus a small per-blade flutter. High performance solutions with heavily optimizations while maintaining the quality is our priority #1 to ensure it runs in most devices possible smoothly! :)

Blade runs very smoothly on my M1 Max, even on 120Hz. I wouldn't be surprised if that thing runs smoothly on smartphone too with lower blade amounts / less draw distance. But it hasn't been tested yet. Mobile Support for Uverse is still in work ^^

1

u/xzinkx 2d ago

building every blade in the vertex shader is clever, nothing to store or stream. per-cell LOD should make mobile pretty doable too

1

u/UverseDev 2d ago

Hehe, thank you so much! :) To be honest, it has been already implemented for the LOD part too!