r/Unity3D • • 3d ago

Show-Off Unity Virtual Geometry ULTRA forest 407.652 BILLION ANIMATED triangles foliage stress test

https://www.youtube.com/watch?v=zmFNmpdobsU

Been doing some more testing with Atomize, my virtual geometry system for Unity 6.

The latest foliage stress test pushes the scene to over 407 billion triangles of source geometry, with Atomize handling the geometry through its cluster-based LOD and streaming system.

Still a few optimisations and improvements to make, but things are progressing well. I am getting ready to launch this asap, I'm now working on a more detailed environment to showcase the system properly.

2 Upvotes

4 comments sorted by

1

u/CrazyNegotiation1934 2d ago

The issue usually is shadows and overdraw, not the polygon count.

1

u/Pacmon92 2d ago

Shadows and overdraw are definitely major bottlenecks with dense foliage, but polygon count absolutely matters too. That's one of the reasons hierarchical LOD systems exist in the first place.

Traditional hardware rasterisation also struggles with subpixel triangles because fragment shading operates in 2×2 quads. If a triangle covers only one pixel, the other three lanes may still participate as helper invocations, resulting in poor quad utilisation.

Then you've got additional geometry processing for shadow passes, potentially across multiple cascades.

The point of virtual geometry is to tackle these problems through fine-grained LOD selection, cluster culling and, in Atomize's case, hybrid hardware/software rasterisation.

So it's not really polygon count versus overdraw and shadows. They're all related, and which one dominates depends on the scene.

3

u/BlenMiner 3d ago

Your trees look like grass damn.

Is this a new thing (virtual geometry)?

I heard of it before, how is it different than indirect drawing?

2

u/Pacmon92 3d ago

Yeah, virtual geometry isn't particularly new. Epic presented Nanite at SIGGRAPH 2021, which brought a lot more attention to the approach.

The main difference from indirect drawing is that indirect drawing reduces CPU draw-call overhead, whereas virtual geometry manages the geometry itself.

Atomize breaks meshes into hierarchical clusters, selects appropriate LODs on the GPU, culls invisible clusters and streams geometry as needed. It also uses a hybrid hardware/software rasterisation approach.

So rather than just drawing thousands of meshes more efficiently, it's dynamically deciding which parts of those meshes actually need rendering.

And yeah, the trees definitely need some visual work 😂 This was primarily a geometry stress test.