Anohros / GrannyConverterLibrary

This library converts scenes of granny2 files from *.gr2 to *.fbx.
24 stars 13 forks source link

The Animations seems not correctly, when importRotationCurve have negative scale? #3

Closed stonexing closed 1 year ago

stonexing commented 2 years ago

The normal animation is: character After the conversion, animation is: character with animation

It seems animation is not correct. How to resolve this issue?

Then I use blender rotate Bone arround Y axis 180 degree. I got correct animation blew:

character_fixed_blender

So I think the Transform is error when there has negative scale. Please fix this issues. Thanks. my gr2 file is:

character.gr2.zip

Anohros commented 2 years ago

Hey I added some changes to the branch 3-bone-transformation.

You have to set the just added export option "convertAxis" to "XyZ"

Example:

exporterOptions.convertAxis = "XyZ";

It seems to be fine in 3D Viewer of Microsoft Windows 10 and FBX Review of Autodesk. However the animation curve seems to be shifted rotation-like in Blender - maybe it is an import issue of Blender or something which can be resolved by adjusting the import options a little bit.

Can you review if it helps with your issue, please?

stonexing commented 2 years ago

Great 👍. Cannot wait to use you new code. Let me try later.