Pherakki / BlenderToolsForGFS

A Blender plugin for importing and exporting GFS files.
GNU General Public License v3.0
21 stars 2 forks source link

Some Meshes incorrectly transformed in Blender 3.4, but not in 2.83 #15

Closed Pherakki closed 1 year ago

Pherakki commented 1 year ago

In C0001_101_00.GMD, the pyramids attached to the elbows are correctly transformed to their respective bones in Blender 2.83 - but they remain at the origin in Blender 3.4.

Related to #19.

Pherakki commented 1 year ago

Another instance: mesh_12 (skirt mesh) is incorrectly deformed in the bind pose in Blender 3.4 for C0004_001_00.GMD, but it is ok in Blender 2.83. Appears to be another victim of an incorrectly-transformed mesh.

Pherakki commented 1 year ago

Further notes: This may have something to do with a difference in the way Blender 3.4 constructs the armatures.

In Blender 2.83:

In Blender 3.4:

Presumably some of the transform commands are not being interpreted in the same way between Blender 2.83 and Blender 3.4. Needless to say, the plugin needs to be fixed so that the 2.83 behaviour is reproduced in 3.4.

Pherakki commented 1 year ago

Partial fix in 945b78cfebf1cfd12f35503d32ec8122e843e74e: Bones and Meshes no longer transform back to their "origin-relative" positions. However, some bones calculate the incorrect roll still.

Pherakki commented 1 year ago

Appears to now be fixed in 40a96c6: Blender 3.4 seems to disagree with Blender 2.83 on what the value of the bone roll should be in the pinned matrices. Manually setting the value of the bone's matrix seems to fix, but this is slightly disturbing and should be understood to make sure there's no weird bugs introduced by this.