Edit:
I checked in Vanilla 5.8.3 and was not able to reproduce this behavior on either the SKM_Quinn_Simple or our own meshes.
Which begs the question:
Is there a fix in 5.8 you can point us to that we can integrate?
----
We are in the process of switching our characters over to utilize Nanite Skeletal Meshes. During this process, some of the characters are still using non-Nanite skeletal meshes, and we have an existing r.SkeletalMeshLODBias setting on lower quality modes to reduce polygonal density for performance reasons.
We intend to have more than one LOD on our Nanite Skeletal Meshes so that we can define a lower density LOD level as the Ray Tracing Min LOD.
We have noticed that when r.SkeletalMeshLODBias is > 0, Nanite skinned mesh instances with sufficiently reduced LOD density show vertices stretched towards the object origin.
From the 5.7.4 source, the cause appears to be that:
- USkinnedMeshComponent::UpdateLODStatus applies the bias to Nanite skinned components.
- FDynamicSkelMeshObjectDataNanite::Init passes that biased LOD to UpdateRefToLocalMatrices.
- UpdateRefToLocalMatrices only fills ReferenceToLocal for that LOD’s ActiveBoneIndices (all other bones end up as Identity times the inverse bind matrix).
Since Nanite skinning always uses LOD0 weights (per the comment in UpdateBonesRemovedByLOD), any bone dropped from the biased LOD during reduction skins LOD0 vertices with an unset matrix and collapses towards the object origin. UpdateBonesRemovedByLOD covers bones in the explicitly defined “BonesToRemove” list but not bones removed implicitly by reduction. In the repro case above, reducing LOD2 to 2000 triangles is what appears to drop the finger bones.
Two questions:
- Is this a known issue, and is there a fix in 5.8 we can integrate?
- What is the intended behavior? Should the ReferenceToLocal matrices used for Nanite cluster skinning always be built from LOD0’s ActiveBoneIndices (keeping the biased LOD only for RayTracingLODIndex), or should r.SkeletalMeshLODBias not apply to Nanite skinned components at all? We would like to implement a local fix in the meantime and have it match your recommendation.
[Image Removed]
[Attachment Removed]