Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Hierarchy doesn't add RootNode to hierarchy #602

Closed
yaustar opened this issue Nov 11, 2021 · 6 comments · Fixed by playcanvas/engine#4548
Closed

Import Hierarchy doesn't add RootNode to hierarchy #602

yaustar opened this issue Nov 11, 2021 · 6 comments · Fixed by playcanvas/engine#4548
Assignees
Labels

Comments

@yaustar
Copy link
Contributor

yaustar commented Nov 11, 2021

Thread: https://forum.playcanvas.com/t/animation-errors-with-new-import-hierarchy-workflow/22820
Project: https://playcanvas.com/project/849912/overview/animation_test

When importing this model as a model asset, the hierarchy has an Entity named 'RootNode' added:
image

However, as Import Hierarchy with render assets, this node is missing/not added
image

The animation file has paths that uses the RootNode which leads to incorrect animation being played.

Example animation path

RootNode/Ausschalecke/Ausschalecke_Root/Ausschalecke_Ecke_4_Root/Ausschalecke_Ecke_4/Ausschalecke_Ecke_4_4/
@DarkKelt
Copy link

Good day, when I try import runtime glb like as binary, my glb not have "RootNode" in skeleton, when I export, and I cant use old animations with binary-glb, it's affect new characters for miniroyale.

@yaustar
Copy link
Contributor Author

yaustar commented Nov 14, 2021

@DarkKelt for the short term, can you use https://developer.playcanvas.com/api/pc.ContainerResource.html#instantiateModelEntity instead? Or does that have the same problem?

Alternatively, create an empty Entity, reparent the Entity created by the contain to it and rename it to be RootNode as a temp workaround

@yaustar
Copy link
Contributor Author

yaustar commented Nov 15, 2021

@DarkKelt Just to also check, are the GLB binaries that you load at runtime, are they models only or animations as well? If you can share a project or the files, that would really help too

@DarkKelt
Copy link

instead? Or does that have the same problem?

instantiateRenderEntity work good runtime. I check containers, after some actions i get correctly created model. When your importer FBX create glb model from source how i understood you change bone hierarchy and connections with vertexes. I check imported fbx and other glb from other source with hierarchy.

@DarkKelt
Copy link

@DarkKelt Just to also check, are the GLB binaries that you load at runtime, are they models only or animations as well? If you can share a project or the files, that would really help too

When I import raw binary glb, it's not have "RootNode" and animation not worked corectly. That's why I asked Max about convertation pipeline.

@yaustar
Copy link
Contributor Author

yaustar commented Aug 3, 2022

Another related forum post on this: https://forum.playcanvas.com/t/problems-with-anim-binder/26883

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants