AsoboStudio / glTF-Blender-IO-MSFS

Apache License 2.0
144 stars 28 forks source link

2 Animations issues with blender 3.1.2 #184

Closed tonypez closed 1 year ago

tonypez commented 1 year ago

hello there,

I found another 2 animation issues, again frustrating because of blender versions. the following issues are existing when exporting from blender 3.1.2 while they do not exist when exporting the same file from blender 3.2

Issue 1) - Blender bones constraints given a rigged mesh (skinned mesh) like a human body, which is using blender bone constraints, for example IK constraint or Child of bone constraints (which are essential for animation making), the exporter is ignoring the baked NLA and showing me the T-pose (completely ignoring the constraints and the pose from blender)

image

Exporting the same identical file with blender 3.2 instead, the human is in the right pose and the animation is working

image

This is currently blocking my workflow, after I got the animation mixing issue solved (reported to you in the other thread you already resolved, the solution was to use blender 3.1.2). Using blender 3.1.2 version I do not have the mixing NLA issue anymore but have now this new blender constraints issue which is even worse making animations not usable

This is where the constraints are located in Blender: image

A few additional info:

Issue 2) - Animation with scale Given a skinned mesh like a simple sphere rigged to a bone: image

If that central bone has a scale animation from 0.1 to 1 size, (imagine an inflating balloon going from little to big and the big position is the default pose), the exporting results looks wrong in game using blender 3.1.2 The animation in game starts from scale 1 to 10x (from the big position to an even bigger one which is not existing in blender)

Exporting the same file with blender 3.2, the animation will look correct, inflating from 0.1 scale upto 1.0 size (from the tiny balloon to the default size one).

We are forced to work with Blender 3.1.2 because it comes with more benefits when using the Asobo exporter but... some stuff like these animation issues are unfortunately a big limitation. Hopefully we can get a quick fix to all these animations issue, I really need them to work.

Thank you

tonypez commented 1 year ago

is there any debug activity going on? any chance to get the issue above fixed soon? I hope in a quick fix, this is important to keep moving with projects. Thank you.

y-khodja commented 1 year ago

Hello !

Can you send me your Blend files to get the repro ?

Thank you

tonypez commented 1 year ago

Hello !

Can you send me your Blend files to get the repro ?

Thank you Animations_Issues_report.zip

Hello Y-khodja,

I have just created the 2 blend files that recreate the error and relative package file to test in game.

The 2 issues are explained in the post above. Just as a reminder, if you export with blender 3.1.2 the animations won't work correctly in game while if you export with blender 3.2, these will work correctly.

We are forced to use Blender 3.1.2 because it is the current supported version and it comes with additional advantages, unfortunately with this version we have animations issues that can't be solved, hopefully you can drop us a fix soon.

Thank you

y-khodja commented 1 year ago

We have released a new version of the exporter supported by Blender 3.3 you should use this one from now on as it's intended for an LTS version of Blender.

Hello ! Can you send me your Blend files to get the repro ? Thank you Animations_Issues_report.zip

Hello Y-khodja,

I have just created the 2 blend files that recreate the error and relative package file to test in game.

The 2 issues are explained in the post above. Just as a reminder, if you export with blender 3.1.2 the animations won't work correctly in game while if you export with blender 3.2, these will work correctly.

We are forced to use Blender 3.1.2 because it is the current supported version and it comes with additional advantages, unfortunately with this version we have animations issues that can't be solved, hopefully you can drop us a fix soon.

Thank you

tonypez commented 1 year ago

We have released a new version of the exporter supported by Blender 3.3 you should use this one from now on as it's intended for an LTS version of Blender.

Hello ! Can you send me your Blend files to get the repro ? Thank you Animations_Issues_report.zip

Hello Y-khodja, I have just created the 2 blend files that recreate the error and relative package file to test in game. The 2 issues are explained in the post above. Just as a reminder, if you export with blender 3.1.2 the animations won't work correctly in game while if you export with blender 3.2, these will work correctly. We are forced to use Blender 3.1.2 because it is the current supported version and it comes with additional advantages, unfortunately with this version we have animations issues that can't be solved, hopefully you can drop us a fix soon. Thank you

Hello Y-Khodja,

thank you for mentioning the new exporter. I am now running tests with 3.3 and relative msfs exporter version. good and bad news: the good news is that the 2 issues listed above are solved with 3.3 version. the bad news is that other things that were working with 3.1.2 are now causing "export fail" with 3.3... that means the main project is not exportable anymore with 3.3.

I am going to try to isolate the issue and report them as a separate 3.3 threads. The first one i found is that the export failes when a specific animation "action" exists in the blend file even if not exported (this is exporting with 3.1.2)