Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

FIX: Provide Root Explicitly for Single-Joint Rig Export #1346

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

effs
Copy link
Contributor

@effs effs commented Aug 18, 2023

Fixed:

  • Single-joint models (like many hats) are exported with correct rigging

SharpGLTF's ancestor finder assumes a single node is the root node, so it calculates the inverse bind matrix incorrectly.

https://github.com/vpenades/SharpGLTF/blob/b23b5ce225637f38a00be67f4641c991ed36435d/src/SharpGLTF.Core/Schema2/gltf.Skin.cs#L238

@effs effs requested a review from seberoth August 18, 2023 23:52
@effs
Copy link
Contributor Author

effs commented Aug 18, 2023

Should probably test this some :thinkies: and I'm not really sure it's a great solution.. but there's a lot of cruft on this path so it may be better left cleaned up in the grand unified exporter theory.

Copy link
Member

@rfuzzo rfuzzo left a comment

Choose a reason for hiding this comment

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

looks fine, but I'm not qualified to review mesh stuff :D

@rfuzzo rfuzzo merged commit af88410 into main Aug 22, 2023
2 checks passed
@rfuzzo rfuzzo deleted the fix/single-bone-inverse-matrix branch August 22, 2023 07:11
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.

None yet

2 participants