0
\$\begingroup\$

I have about 10 FBX files. Each file has a single mesh, skeleton and animation. The mesh and skeleton are the same for all files but each has a different animation.

My software can only handle gltf files so I am trying to convert from FBX to gltf.

What I want to do is grab the T pose model and fill in the geometry (i.e. vertex, normal, uv...) buffers with the T pose, fill the weight buffers with a single skeleton and then define multiple sets of animation matrices, initialized to the values in the FBX files.

I have tried doing this in blender but honestly I have very little experience with the tool as I am not an artist, just a programmer.

For example when I import the 2 models into blender I see this:

enter image description here

Those are 2 models each with their own animation. Since they have the same mesh and skeleton it should be trivial to just copy the animation of the second one and append it to the set of animaitons in the first one. But IDK how to achieve this.

Alternatively if there is a terminal tool or any other mechanism to do this I am fine with it. All I need is to merge the FBX files through any means as I am not going to be editing them.

Based on the most upvoted I manage to get to a state where I can cycle through all the animations in blender:

enter image description here

However when i export to gltf only one animation is available:

enter image description here

I am using this website to check my files:

https://gltf-viewer.donmccurdy.com/

\$\endgroup\$

1 Answer 1

2
\$\begingroup\$

In blender it's fairly easy. If you have two identical armatures, and a certain animation is only associated with one of them, like so: enter image description here

You can just go to Dope Sheet -> Action Editor

enter image description here enter image description here

and, with the second rig selected, choose the animation from the drop-down menu. enter image description here

\$\endgroup\$
1
  • \$\begingroup\$ I made an edit to my post, your advice helped me a lot but for some reason when I export to gltf I only get one animation instead of all of them. \$\endgroup\$
    – Makogan
    Jun 28, 2022 at 4:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .