Skip to content

UE5 Nanite Explained: How Virtualized Geometry Works and Where It Stops

Nanite splits meshes into clusters, streams only what you can see and draws it in its own pass. Here is how it works, what it supports and what it cannot do.

0
Frame of the Unreal Engine 5 reveal demo, the first public showing of Nanite

Epic Games, Unreal Engine 5 reveal

Nanite is Unreal Engine 5's system for rendering very detailed meshes without hand-made levels of detail (LODs). You import a high-poly mesh, switch Nanite on, and the engine handles the rest. It is not magic, though. Here is how it works and where it stops, based on Epic's documentation and a technical write-up.

The core idea: clusters

According to the Epic documentation, Nanite breaks each mesh into hierarchical clusters of triangle groups. Clusters are the unit that gets swapped, streamed and culled. As the camera moves, Nanite picks the right level of detail per cluster, and neighboring clusters join without cracks. A third-party article puts the cluster size at 128 triangles and describes a multi-level cluster tree built at import. Epic's docs do not give these numbers, so treat them as the author's account.

Streaming: only what you see

Mesh data streams in on demand, so only the visible detail needs to stay in memory. The docs say Nanite "intelligently does work on only the detail that is visible on-screen and no more", and recommend an SSD for runtime storage. The same third-party article says geometry is stored in pages, streamed much like virtual textures, and that root clusters for all instances stay resident, so instance counts still affect memory.

Rendering: its own pass

Nanite draws in its own pass and bypasses traditional draw calls. The write-up says tiny triangles (edges under about 32 pixels) go through a compute-based software rasterizer, because hardware rasterizers handle micro-triangles poorly. It also says Nanite stores triangle and material IDs in a visibility buffer, so material shading runs only on visible pixels. Again, these are the article's claims, not Epic's docs.

What supports Nanite

Per the docs, Nanite works with static meshes, skeletal meshes, instanced and hierarchical instanced static meshes, spline meshes, geometry collections, foliage and landscape grass. Good candidates are meshes with many triangles, many instances, major occluders, or meshes that cast Virtual Shadow Maps. It targets current consoles and desktop on DirectX 12 with Shader Model 6.

The limits you will hit

  • Materials: only Opaque and Masked blend modes. Translucent materials fall back to a default material with a log warning.
  • No morph targets. World Position Offset works but is limited, and displaced meshes cost more to cull.
  • Unsupported: forward rendering, VR stereo rendering, MSAA and Lighting Channels.
  • Instances: the scene is hard-capped at 16 million instances (streamed-in only).
  • Tangents: not stored. They are derived in the pixel shader, which can cause edge discontinuities.
  • Ray tracing: Nanite meshes use a fallback mesh by default. Lowering Fallback Relative Error uses more source triangles.

Newer pieces

The current docs also list Nanite Foliage, spline support, Static Displacement (an offline tessellator that bakes displacement into the mesh) and Nanite Tessellation (runtime displacement from a map or procedural material).

Practical advice

  • Enable Nanite on dense meshes and many-instance props first, not on every tiny asset.
  • Disable Generate Lightmap UVs if you do not use Lightmass.
  • Share a Derived Data Cache on big teams, since conversion takes time per mesh.
  • Profile on your target hardware. Epic itself says instance count, triangles per mesh, material complexity and resolution all have practical limits.

Sources: Epic Games documentation (Nanite), GroundZer0 on Medium. Limits reflect the docs as of UE 5.8 and may change.

Keep reading

Comments

0

No comments yet — be the first.

More from Game Development

See all