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

Fixed shared SkinnedMesh on export #729

Merged

Conversation

pfcDorn
Copy link
Contributor

@pfcDorn pfcDorn commented Apr 5, 2024

When a SkinnedMesh was used by multiple Nodes, the SkinnedMesh was exported for each Node. Only some attribute accessors was shared between them. Which brokes the instancing capaility.

Now, it will only export the SkinnedMesh once. To keep the support for different blendshape weights settings per node, the weigths gets also written into the node weights property (only when they differs from the first/default weights).

The sample file contains two versions:

  • "Different Weights": Each skinnedMesh Node uses different blendshape weights
  • "OnlyDefaultWeights": Each skinnedMesh Node shares the same blendshape weights

Sample Files:
AnimatedMorphCubes.zip

@hybridherbst hybridherbst merged commit d0cfc9d into KhronosGroup:dev Apr 14, 2024
1 check passed
@hybridherbst hybridherbst deleted the fix/equal-skinnedmesh-export branch April 14, 2024 00:24
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.

2 participants