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

Skin hierarchy #1026

Merged
merged 3 commits into from
Feb 3, 2022
Merged

Skin hierarchy #1026

merged 3 commits into from
Feb 3, 2022

Conversation

pandaGaume
Copy link
Contributor

Add search down hierarchy to identify the presence of the skinned mesh and consequently select different Transformation matrix for the skeleton root (World, Local or Identity).
Before this only World and Identity were considered.
For BabylonJS, the Skeleton root cannot share a common ancestor with the mesh it own the skin, otherwize, the transformation is applied twice.
Therefore, Max is highly permissive regarding this point and allow ANY mesh to be a bone or part of the hierachy.
This PR fix this particular case.

Check the skeleton hierarchy to see if any ancestor has the skin as children. The goal is to choose which transformation matrix to apply at the root of the skeleton (World or Local).
@pandaGaume pandaGaume merged commit fb062fa into BabylonJS:master Feb 3, 2022
@pandaGaume pandaGaume deleted the Skin_hierarchy branch February 3, 2022 15:50
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

1 participant