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 for inconsistent FBX bone hierarchy #630

Merged
merged 3 commits into from Oct 4, 2018

Conversation

flashk
Copy link
Contributor

@flashk flashk commented Oct 3, 2018

Loading an fbx model multiple times or across separate runs can result in different skeleton bone hierarchies. The problem is with how the "resolveBindMatrices" function resolves new bones. The iteration order is dependent on osgAnimation::RigGeometry pointer values, which can differ across runs. I've refactored the BindMatrixMap so that it maps bones to a map of bind matrices and set of geometry. This ensures a consistent and minimum number of bones are created for each unique bind matrix.

@openscenegraph openscenegraph merged commit 3899654 into openscenegraph:master Oct 4, 2018
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