Description

Summary

Nanite assembly parts can disappear completely in a narrow band of view distances. When the builder encodes the hierarchy for an assembly-root group referenced by an instance, it divides the instance ParentLODError by the instance MaxScale, then stores it as fp16 rounded to the nearest value. The next level's cluster LODError is rounded to fp16 separately. After the GPU decodes both and multiplies the parent back by the assembly transform scale, the parent threshold can end up below the child cluster's LODError. Traversal then neither descends into the finer level nor draws the coarser cluster, so the part renders nothing.

Code (//UE5/Main)

  • Engine/Source/Developer/NaniteBuilder/Private/Encode/NaniteEncodeHierarchy.cpp:232: ParentLODError /= MaxScale; (assembly-root instance reference, BuildHierarchyRecursive)
  • NaniteEncodeHierarchy.cpp:607: MaxParentLODError packed with FFloat16(...) (round to nearest). Only MinLODError uses Float32ToFloat16Floor.
  • Engine/Source/Developer/NaniteBuilder/Private/Encode/NaniteEncode.cpp:161: cluster LODError packed with FFloat16(...) (round to nearest).
  • The CPU monotonicity guarantees (ReduceGroup in ClusterDAG.cpp; check(Cluster.LODError <= Group.ParentLODError) in NaniteEncode.cpp) are evaluated in fp32 before quantization.
  • Engine/Shaders/Private/Nanite/NaniteClusterCulling.usf:253-254: child traversal test (ProjectedEdgeScale <= parent threshold × assembly scale); :283 cluster draw test (ProjectedEdgeScale > cluster LODError).

Numeric example (instance MaxScale = 0.8)

  • Mip8 instance group ParentLODError (fp32) = 1.9224 → /0.8 = 2.4030 → fp16 2.40234 → GPU ×0.8 = 1.92188
  • Mip9 cluster LODError (fp32) = 1.9224 → fp16 1.92285
  • For any ProjectedEdgeScale in (1.92188, 1.92285], Mip9 is not small enough to draw and Mip8 is not visited, so nothing renders for that part instance.

Suggested fix

Pack MaxParentLODError conservatively (round up, a ceil counterpart to Float32ToFloat16Floor) and/or round cluster LODError down, or clamp the encoded parent to >= the encoded child errors after quantization. This needs a Nanite DDC version bump.

Notes

  • Power-of-two (or 1.0) instance scales avoid the problem, since the divide/multiply round-trips exactly in fp16 (not verified in a repro).
  • Possibly related, unverified: the CPU uses Transform.GetScaleVector().GetMax() (ClusterDAG.cpp) while the GPU uses {{sqrt(max row length²)}} of the assembly transform (NaniteCullingCommon.ush:65-82). These should agree mathematically but may differ by float rounding.
  • Not fixed by CL 47565987 (assembly-ref hierarchy root fix) or CL 59286151 (RT-only assembly scale). Unfixed in //UE5/Main, //UE6/Main, //UE5/Release-5.7 and //UE5/Release-5.8.
Steps to Reproduce
  1. Create a Nanite assembly (e.g. a foliage tree via PVE or static mesh assembly) whose part instances use a non-power-of-two uniform scale, e.g. 0.8.
  2. Place it in a level and view it at mid distance.
  3. Sweep r.Nanite.ViewMeshLODBias.Offset (or move the camera) in very small steps.

Expected
Each visible part always renders at some LOD.

Actual
at specific thresholds individual assembly parts vanish completely.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-414094 in the post.

0
Login to Vote

Unresolved
ComponentUE - Rendering - Features - Nanite
Affects Versions5.7, 5.8
Target Fix6.0
CreatedNov 12, 2026
UpdatedDec 4, 2026
View Jira Issue