Description

Summary

Nanite skinned meshes render LOD0 geometry using LOD0 skin weights. When a higher animated LOD is selected, bone matrices are built only for that LOD's ActiveBoneIndices (bones with skinned geometry) plus neutral transforms for bones removed by the LOD. A bone that still exists in the LOD (is in its RequiredBones) but has no geometry skinned to it in that LOD gets an identity matrix. LOD0 geometry weighted to that bone then renders in its identity (T-pose) position.

Root cause

  • SkeletalRender.cpp, UpdateRefToLocalMatricesInner: matrices are computed only for LOD.ActiveBoneIndices plus the optional ExtraRequiredBoneIndices. BitsToReset starts true for every reference-skeleton bone, so every other slot is set to identity and the inverse-ref-pose multiplication is skipped.
  • SkeletalRenderNanite.cpp, FDynamicSkelMeshObjectDataNanite::Init: calls UpdateRefToLocalMatrices(..., LODIndex, nullptr, ...) and UpdatePreviousRefToLocalMatrices(..., LODIndex) with no extra bone set. UpdateBonesRemovedByLOD only covers bones removed by the LOD, not retained-but-inactive bones.
  • The Nanite proxy always binds LOD0 resources, and Nanite clusters use the LOD0 bone set (AnimSequenceTransformProviderData.cpp). A bone in the animated LOD's RequiredBones but not in its ActiveBoneIndices is neither computed nor fixed up, so it stays identity while LOD0 geometry is weighted to it.

Selecting a non-zero LOD for Nanite skinned meshes is only enabled in UE6 by CL 56316573 (NumLODs set from RenderData->LODRenderData.Num() in the Nanite FSkinnedSceneProxy). UE5 still default NumLODs = 1 (NaniteSceneProxy.h). The customer backported that CL, which exposed this bug.

Repro

From the attached project open map 'Map', Q/E changes the LOD, LOD1 renders wrong. Requires LOD selection for Nanite skinned meshes (CL 56316573 backported if testing in UE5) and an LOD that retains bones with no skinned geometry. Not reproduced internally; the project is binary content.

Proposed fix

Pass the animated LOD's RequiredBones (or the LOD0 bone set) as ExtraRequiredBoneIndices to both UpdateRefToLocalMatrices and UpdatePreviousRefToLocalMatrices in FDynamicSkelMeshObjectDataNanite::Init. The user’s local fix does this (RequiredBones). Modest extra CPU per retained non-active bone, compatible with UpdateBonesRemovedByLOD and previous-frame matrices. Still to validate: ray-tracing case where RayTracingLODIndex != LODIndex, and whether RequiredBones is always sufficient versus the LOD0 bone set.

Workarounds

  • Author LODs so no bone is left without skinned geometry (remove such bones from the LOD).
  • Avoid animating higher LODs on Nanite skinned meshes.

Have Comments or More Details?

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

0
Login to Vote

Unresolved
ComponentUE - Rendering - Features - Nanite
Affects Versions6.0
Target Fix6.0
CreatedNov 25, 2026
UpdatedDec 4, 2026
View Jira Issue