You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Animation layers are corrupted after assigning animation via code.
----------------------AFTER ASSIGNING ANIMATION----------------------
this.entity.anim.baseLayer.name= : Base
upperBodyLayer.name= : UpperBody
this.entity.anim.findAnimationLayer(`UpperBody`).name = : Base
That follows transitions not working and other weird behaviors.
Anim component additive layer mode does not work correctly if anim component is not on entity with Render component. https://playcanvas.com/project/1215543/overview/breaking-the-rig 1
If Anim component is on different entity than Render component, then animations in same Base layer works correctly, but if you add another layer and set blend type to additive weird scaling behavior happens. It scales down model in weird proporsions.
There were more problems, but them was on editor and harder to reproduce. Like changing root bone, then trying to create new Mask, sometimes the root bone change is not updated until you create mask, delete mask and create again. Sometimes you need to hcange root bone several times. I was not able to find correct sequence to reproduce these, but layers with mask should be reviewed by someone a bit.
Description
Recently I was working with animations and met with various problems. Two of them I was able to isolate and reproduce consistenly.
https://playcanvas.com/project/1216249/overview/anim-layer-bug
After adding new layer, logs shows that baseLayer name becomes added layer name. However if you assign any animation to base layer it becomes a mess.
Animation layers are corrupted after assigning animation via code.
That follows transitions not working and other weird behaviors.
Anim component additive layer mode does not work correctly if anim component is not on entity with Render component.
https://playcanvas.com/project/1215543/overview/breaking-the-rig 1
If Anim component is on different entity than Render component, then animations in same Base layer works correctly, but if you add another layer and set blend type to additive weird scaling behavior happens. It scales down model in weird proporsions.
There were more problems, but them was on editor and harder to reproduce. Like changing root bone, then trying to create new Mask, sometimes the root bone change is not updated until you create mask, delete mask and create again. Sometimes you need to hcange root bone several times. I was not able to find correct sequence to reproduce these, but layers with mask should be reviewed by someone a bit.
I created forum post about it as well:
https://forum.playcanvas.com/t/confusion-about-animation-blending/35772/9
The text was updated successfully, but these errors were encountered: