assimp / assimp

The official Open-Asset-Importer-Library Repository. Loads 40+ 3D-file-formats into one unified and clean data structure.
https://www.assimp.org
Other
10.48k stars 2.85k forks source link

Bug: FBX - Skinned Mesh Imports With Wrong Transforms #5642

Open lxw404 opened 4 days ago

lxw404 commented 4 days ago

Describe the bug

Currently FBX models with skinned meshes will be imported with invalid transforms due to this change: https://github.com/assimp/assimp/pull/5349 which did not revert this change: https://github.com/assimp/assimp/commit/8a1dc87b4ca.

This results in the pose calculating against invalid absolute transforms.

To Reproduce

Steps to reproduce the behavior: Import a skinned FBX mesh away from the origin of the scene such as this test one: zan.fbx.zip

Expected behavior

The skinned mesh should import without pose distortion.

Screenshots

Blender With Armature Left Front
blender_InwUAfCIYr blender_2R9L6Ra3pD
Current behavior Left Front
Resonite_z5ogi1cqZN Resonite_0x4TgoYrX2
Fixed behavior: Left Front
Resonite_Ch2lVFIbqZ Resonite_2MUYL1UySv

Platform (please complete the following information):

Additional context

lxw404 commented 4 days ago

I believe https://github.com/assimp/assimp/issues/5449 is related to this and should be fixed by: https://github.com/assimp/assimp/pull/5643.