What is the purpose of the Animation Set resource?
In the editor view, I can add multiple animations but I don’t understand where do those animations come from in the first place (I don’t even know what kind of files it can import) and I don’t see the usefulness of this resource.
Can someone explain to me?
It’s for model (.dae) animations.
So it’s for 3D objects only then?
Could you elaborate on the file format?
Does the Animation Set’s animations are .dae files?
Are there valid and invalid files?
When the Animation Set is completed, what can I do with it? Associate it with some other component?
Is there documentation on all that stuff?
3D animation: Animation in Defold manual
Models: 3D models in Defold
britzl: ok thanks. I searched for “animation set” in the documentation but I was wrong. I should have searched for “.animationset”.
So here is some more info I managed to get:
From this link: https://www.defold.com/manuals/model/
The Animations property of a Model needs an Animation Set resource as a list of multiple animations.
From this link: https://www.defold.com/manuals/animation/
" To use multiple animations per model, export them into separate .dae
files and gather the files into a .animationset
file in Defold."
So, first we have to create an Animation Set resource that references all animations .dae
files we want to use on a certain model. Then we have to create a Model component and set its Animation property to the Animation Set resource we created.
Finally, it seems that the Animation Set resource can reference other files (like its own animation set file). Which files are valid?
.animation_set
is a set of animations for 3D models.
A 3D model (.model
component) can specify a dae
file directly (if you only want to have one animation), or it can specify a animation_set
file (if you want to play more than one animation).
A animation_set
can point to multiple dae files, but it can also specify other animation_set
files. This is handy if you want to group animations and reuse them for different models etc.
Awesome! Thanks for those explanations!
One last clarification: What are the information in a .dae
file? Can it simply contain a non moving 3D model? A 3D model alongside its animation? Or other things like a rigged bone structure? Are they embedded in a single file or can a model be made with multiple .dae
files for each of those properties?
[edit] Ijn fact I don’t understand if a .dae
file always contains a model or if it can be used for any information about 3D things…
The .dae file format supports multiple models/meshes/materials/animations in a single file.
We’ve chosen to start simple, only importing one model or one animation from a single .dae file at a time, but that might very well change in the future.
I just found some more info inside the documentation. Thought it would be useful to share it:
https://www.defold.com/manuals/glossary/
In order to define multiple animations in dae, you have to use animation_clip. But Blender’s exporter doesn’t support animation_clip same as Defold. So, anyway, you can only export a model with 0 or 1 animation in Blender.