Skip to content

I have two GLB files and I would like to apply the animation defined in file A to file B. #730

Answered by donmccurdy
atul161 asked this question in Q&A
Discussion options

You must be logged in to vote

This is possible, but I don't have an "out of the box" code snippet to recommend. Being able to combine the files at all depends on some assumptions about the content of the files, such as:

  1. Do the animations use skinning/armatures, or simple objects with keyframe position/rotation/scale?
  2. If skinning, do both files contain the full character? just skeletons? if skeletons, are the skeletons identical (same joints, joint names, joint default pose, bind matrices, ...)?

Based on the assumption that you have two characters with the same exact skeleton, the steps will be as discussed in #665 (reply in thread). Copying here:

  1. merge the glTF files containing the skinned mesh and the animation(s)…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@atul161
Comment options

@atul161
Comment options

@donmccurdy
Comment options

Answer selected by atul161
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants