Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Mismatched armature and mesh scales cause problems #22

Open
angelwire opened this issue Oct 23, 2021 · 1 comment
Open

Mismatched armature and mesh scales cause problems #22

angelwire opened this issue Oct 23, 2021 · 1 comment

Comments

@angelwire
Copy link

When the armature and mesh have different scale values, animations cause the mesh to "explode". You can see that the skeleton lines up perfectly with the mesh in Blender, but after exporting it to SMF and viewing it with the model viewer, the skeleton and mesh aren't aligned.

Here's a link to the blender file:
Dropbox link

@bartteunis
Copy link
Member

This looks like it is fixed in a1e1a49 in master, though I still need to look into the details of how Blender combines all the transforms (world, armature local, bone, ...) for all kinds of object types. In this case it looks like the scale factor of the armature got applied twice.

When the data of a Blender 'MESH' object that is deformed by an armature object (i.e. the mesh is parented to it and has an armature modifier) is exported, the exporter uses the scene depsgraph to apply all modifiers, so also the armature's 'REST' pose to the mesh's data. The mesh's own transform is not applied because transforms are not a part of what gets applied by getting an evaluated mesh using the depsgraph.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants