Animation errors with new Import Hierarchy workflow

Hi,

I’m getting wierd errors for my animations with the new import workflow.
It look’s like some bones are rotated 90°

Here is a little test project:
https://playcanvas.com/project/849912/overview/animation_test

Same model and animation. One is imported with the new workflow and the other with the old workflow.

1 Like

any thoughts @Elliott

Interesting, doesn’t seem to be animation related as using the Anim component with the Model Component works fine:

https://playcanvas.com/editor/scene/1270486

Investigated a bit. Looks like the old Model method, there is an extra node called ‘RootNode’ created:
image

When I mimic this with the render component hierarchy by creating a new Entity and having the template as a child, that runs correctly as well:
image

I’ve updated the project:
https://playcanvas.com/editor/scene/1270486

1 Like

May also be worth mentioning that the animation paths are like the following:

RootNode/Ausschalecke/Ausschalecke_Root/Ausschalecke_Ecke_4_Root/Ausschalecke_Ecke_4/Ausschalecke_Ecke_4_4/

1 Like

@yaustar
Just tested your workaround and it seems to work. So is this an import error with the new hierarchy workflow?

Maybe? This is something to be looked at with Elliott and Martin as it should work in it’s previous state to my knowledge

Created a ticket to track this issue: https://github.com/playcanvas/editor/issues/602

1 Like

I just want to chime in that this is a problem for us as well. Animated objects that worked using the old method doesn’t work with Import Hierarchy enabled. We can work around it by manually adding a dummy object in our modeling package (to act as our RootNode), then parenting the bones and mesh to it before exporting.