How to split gltf file into different animation track files and a mesh?

I got a large GLTF format model(40Mb) which contains many animations. Is there a tool to split the model into different animation track files and a static model? If it works, I could load and unload different animations separately which will improve the rendering performance on Threejs.

I have also tried gltf-transform.donmccurdy.com/functions.html to split my GLTF file.

gltf-transform partition model_prune_resample.glb ./output1/output.gltf --animations

However, the result GLTF file still includes the animations property and it consumes a lot of memory (200Mb) when [xxx.bin] file has not been loaded. If I manually delete loader.json, memory cost will go back to normal level (60Mb).

Any ideas to load GLTF animation asynchronously?

2 Likes

EDIT, deleted: I misread, you want separate files on disk.