Skip to content

Conversation

robertdorn83
Copy link
Collaborator

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
@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