Hello Three JS Lover Community! I have a question about the export of animations in Blender.
I am trying to put a model of a dron that contains an animation, but these animations are separated (look at the image), in specific I am using this model , how could you join them so that when starting it, just have to do it with one?, I am new in blender and three js, Maybe there is a way to start all the animations in simultaneous, but i dont know. It would be a great help your recommendations.
I am new in this community and in the world of Three JS, I greatly appreciate your answers :3
The model (1) starts with just one animation in the Sketchfab glTF export, and (2) imports and then exports from Blender with just one animation, at least for me with default Blender settings. Are you using the glTF format from Sketchfab, and are you making any other changes in Blender? What format are you exporting from Blender? We recommend using glTF with three.js.
Yes, I know the tool to export directly in GLTF format with SketchFab but the model is too big and I need to remove some textures and materials to improve performance, after doing that I export it in GLTF format. I have bad experiences with export in GLTF format that Skechtfab offers, sometimes exports bad animations…
I think you’ll need to share more detail about what you are doing then, since a screenshot of Blender isn’t enough to reproduce the issue and debug it. Notably, exporting from Blender to one format or another can be very different depending on the format.
If you are exporting to glTF, the way to ensure that animation of multiple objects is all treated as one AnimationClip in three.js is to push each Blender Action into an NLA Track, and make sure those NLA Tracks all have the same name. An export option, “Group by NLA Track”, is enabled by default. See: glTF 2.0 — Blender Manual.
the way to ensure that animation of multiple objects is all treated as one AnimationClip in three.js is to push each Blender Action into an NLA Track, and make sure those NLA Tracks all have the same name.
This was very useful! Now the animations to each object are exported in a single animation, with the name I gave it to the NLA’s Track’s, but… When I upload the model to Three JS this does not play the animation correctly, I will continue investigating why…
Thanks a lot for this information.