Jump to content

meaning of layer 0 in animation.


photo

Recommended Posts

image.png.f424f98b54832ec737621479d3f83727.pngimage.thumb.png.424d8de7041f55d56ac0fffa4692bddc.png

 

When the setFrame() function was used only for layer 1 in the model in which layer 0 and layer 1 were registered, the model completely stopped.

 

Does this mean that only layer 0 is an animation that can be played "current" and the rest of the layers (layer 1 ~) are  tools for combining or interpolation with layer 0?

Or, when I don't set anything, is only layer 0 activated internally and set to weight 1 ( setLayer(0,1,1) and  others setLayer(x,0,0) )?

 

 

Also, is layer 0 executed when using the Play() function?

 

Edited by dongju.jeong
Link to comment

Hello,

The layer only affects the resulting animation if it is enabled and has a weight. For the mesh_combined you need to invoke setLayer(1, 1, 1.0f) before setting the frame to see the result. No, layers are not only used for combining and interpolation with zero layer. For example, you can add a set of walking animations in different directions to different layers, and then only update their weights. Yes, when creating an object, only one active layer is created, which is used during playback.

Link to comment
×
×
  • Create New...