-
Notifications
You must be signed in to change notification settings - Fork 475
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 Animation .glb files to existing GLTF model? #450
Comments
hey, lol. saw you over at the TriLib forums. Guessing you gave up on it? :) Have you been able to get this GLTF loader working on android by any chance? Im having zero luck. |
Hey, there doesn't seem to be a sample to work from but I'm still experimenting. :) |
Hi @marcspraragen, This isn't something that is built in, but I think you should be able to accomplish it with UnityGLTF. If you load scene in a glb which contains a mesh that has an animation attached to it, then it will load as a Unity animation. Then should be able to copy that animation onto another mesh. |
Thanks Adam! The other possibility I was looking for applying an animation was merging a model .gltf with a model-less animation .gltf at runtime. Does (or could, with some tweaking) RootMergeComponent script cover this case? |
This is not possible right now. Side note, are these valid gltfs? That aside, if you wanted to accomplish this, then you'd need to:
If you do the work to enable something like this, please send a pull request to get it into master branch so others can benefit from it. |
Thanks for your reply! I will definitely share any successful updates. |
Any updates on this capability? We have worked around it by leaving all animations in one file per the spec |
Oh finally, someone has tried on what I am stuck for a week now. So the case is the same as me. I want to apply an animation from one GLTF file to another. I don't want to bloat my main mesh while loading the main scene. Any update on this issue? @marcspraragen I can do this same in the Sandbox provided by BabylonJS, if they can do it I am sure there would be something that I have missed. Link - https://drive.google.com/file/d/1VV9CeVitHk31aZ71ejI9-FZdRwDgGDu1/view?usp=sharing |
We tried quite a bit to transplant / construct animated clips between imported scenes and their nodes, but it ended up being unreliable. Also, it's hard to test because even though UnityGLTF is open source, GLTF spec is too much of a black box (I'm guessing that factor has stumped many other efforts here). |
I'm wondering if there is support and/or sample scenes for importing separate animation .glb files at runtime and applying them to an existing GLTF model component in the scene?
Thanks!
The text was updated successfully, but these errors were encountered: