Skip to content

Conversation

@zach-capalbo
Copy link
Contributor

@zach-capalbo zach-capalbo commented Dec 1, 2020

Related issue: Fixed #20803

Description

Applies SkinnedMesh bindMatrix to bone inverses when exporting to ensure they retain the correct relation to the mesh.

@zach-capalbo
Copy link
Contributor Author

Note, the example I've included in #20803 includes a work-around that simulates this fix by multiplying the bone inverses by the skeleton bind matrix before export:

https://glitch.com/edit/#!/transparent-brassy-mercury?path=index.html%3A94%3A37

@zach-capalbo zach-capalbo changed the base branch from master to dev December 5, 2020 01:19
@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 5, 2020

Can you please also run node utils/modularize.js once to generate the ES6 module?

@zach-capalbo
Copy link
Contributor Author

Can you please also run node utils/modularize.js once to generate the ES6 module?

Yup. Done now.

@Mugen87 Mugen87 changed the title Account for object bind matrix in GLTFExporter GLTFExporter: Account for bind matrix. Dec 5, 2020
Copy link
Collaborator

@takahirox takahirox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch and this change looks correct to me.

@mrdoob mrdoob merged commit 0c805ba into mrdoob:dev Dec 8, 2020
@mrdoob
Copy link
Owner

mrdoob commented Dec 8, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GLTFExporter not accounting for SkinnedMesh bindMatrix

4 participants