Hey, the animation shows up when I use https://gltf-viewer.donmccurdy.com/ and the viewer automatically starts playing it, but when I try it in my own viewer nothing happens.
I console.log()'d it and tried to find where the animation is but it is nowhere to be found.
I know it is somewhere in that glb file, but I just cannot find it in the structure.
It is called “SitDown” and Don’s viewer successfully showed me that animation name, too.
Tried to look up how he does it and turns out it is obfuscated . I also looked at the source code of the examples and what other people said when they had it, too. But they were not accurate enough with my issue. Thus I am asking here.
I am uploading my glb file, as well. Would appreciate it a lot if someone can find the animation in the file and show it to me.
The loader returns an array of animations with names, you’ll need to pick one and play it. There’s a bit more in the GLTFLoader documentation on the three.js site.
Your screenshot does not show the same glTF file as was linked above — one was created by Blender, the other by UniGLTF. See the asset.generator string. Perhaps something has gotten swapped?
Edit: I remember exporting it from VRoid Studio first and then importing it in Blender to change posture and add animation and export it from Blender again. That might be why it says that in asset.generator.
Perhaps your browser’s cache is enabled and loading the old asset? There’s a checkbox for “Disable cache” in the dev tools network tab, in Chrome and Firefox. This just isn’t the same asset in the screenshot, it would not say “UniGLTF” there if it were exported from Blender.