Open Yanrishatum opened 5 years ago
Yes we have some issues with Maya Axis, as exporting Z-up does actually apply a rotation to all Root models instead of a properly switching the axes. We have a "TODO axisFlip" in hxd/fmt/fbx/BaseLibrary (updateModelScale) to handle this correctly.
On Wed, Aug 1, 2018 at 7:17 PM, Pavel Alexandrov notifications@github.com wrote:
This model seem to load animation incorrectly, when exported via Maya, resulting in broken animations. Other software that can read FBX have no issues with it, source maya file included. For some reason, converting it to binary (via Autodesk FBX converter), importing to blender, without modifications exporting back to binary and converitng to ascii produces correct animations? It also loads it with incorrect axes, because it appears to look up, instead of forward. Export was configured with Z axis up and other software loads it correctly as well. https://drive.google.com/open?id=1AS05xBkYDbxjxeP2hOK2xjuDzMW5YMux
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HeapsIO/heaps/issues/402, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-bwP8CJZkndGOtZ_h5sYSQw-6IdhHHks5uMeK7gaJpZM4Vq5vH .
I started working on axis flip correction and so far found those places that have to be recalculated in order to convert model for correct axis: Root only:
Objects.Model.Lcl Translation
- axis swap (Also: GeometricTranslation
)Objects.Model.Lcl Scaling
- axis swapObjects.Model.Lcl Rotation
- angle recalculation (Also: PreRotation
)Objects.AnimationCurve.KeyValueFloat
- depending on type, rename to correct axis and recalculation.Objects.AnimationCurveNode
- T
and S
type: axis swap for d|X
, d|Y
, d|Z
Objects.AnimationCurveNode
- R
type: angle recalcAll nodes, whole matrix recalculation:
Objects.Pose.PoseNode.Matrix
Objects.Deformer.Transform
Objects.Deformer.TransformLink
This model seem to load animation incorrectly, when exported via Maya, resulting in broken animations. Other software that can read FBX have no issues with it, source maya file included. For some reason, converting it to binary (via Autodesk FBX converter), importing to blender, without modifications exporting back to binary and converitng to ascii produces correct animations? It also loads it with incorrect axes, because it appears to look up, instead of forward. Export was configured with Z axis up and other software loads it correctly as well. https://drive.google.com/open?id=1AS05xBkYDbxjxeP2hOK2xjuDzMW5YMux