HeapsIO / heaps

Heaps : Haxe Game Framework
http://heaps.io
MIT License
3.16k stars 337 forks source link

Animations and direction bug #402

Open Yanrishatum opened 5 years ago

Yanrishatum commented 5 years ago

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

ncannasse commented 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 .

Yanrishatum commented 5 years ago

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:

All nodes, whole matrix recalculation: