Maud icon indicating copy to clipboard operation
Maud copied to clipboard

applying Jaime's rotation

Open stephengold opened this issue 4 years ago • 3 comments

At commit: 4cd137d5 To reproduce: 4, 1, Apply Expected: no change in model appearance Got: light brown zebra stripes on Jaime Hypothesis: incorrect rotation of tangents and/or normals

stephengold avatar Sep 07 '21 16:09 stephengold

Omitting the MyMesh.rotateTangentBuffer() invocations in SelectedSpatial.applyTransform() seems to solve this issue.

stephengold avatar Sep 07 '21 16:09 stephengold

However, it reveals that the bone transforms in the animations need to be transformed as well. Leave this open for now.

stephengold avatar Sep 07 '21 16:09 stephengold

Jaime is a particularly tricky case, because the rotation occurs between the SkeletonControl and the Mesh. Perhaps Maud should test for this condition and refuse to apply the transform.

stephengold avatar Sep 07 '21 17:09 stephengold