-
-
Notifications
You must be signed in to change notification settings - Fork 35.1k
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
GLTFLoader.js:2145 TypeError: Cannot read property 'children' of undefined #11460
Comments
Hi @densetsughem — thanks for the details! You have a glTF1.0 model here, and we're not supporting that much longer. Rather than try to debug what might be wrong with GLTFLoader or with the model, could you try making a glTF2.0 version? There is a new glTF Blender exporter that should help: https://github.com/KhronosGroup/glTF-Blender-Exporter To test glTF2.0 files in THREE.GLTF2Loader, you can drag-and-drop them here: https://gltf-viewer.donmccurdy.com/ |
Still having problem. When I update to gltf2 when I tried to export it from blender -> gltf2 i encountered following errors: But when I tried to uncheck skinning I successfully exported the file to .gltf But animation failed to be exported even though I checked it. Models: Thank You. :) |
Most likely there is a bug with skinning, either with the Blender exporter or with THREE.GLTF2Loader. I'll look into that more in the next few days. If you're in a hurry, you may also want to try an alternative workflow here. Depending on which version of COLLADA2GLTF you use, that might give you a glTF1.0 or glTF2.0 model. |
@densetsughem it looks like there are some issues in the Blender exporter (it is a work in progress), so I've opened a new issue here: KhronosGroup/glTF-Blender-Exporter#8 I briefly tried the other workflow suggested, and didn't have much luck with that, so getting the issue fixed in the blender exporter may be the best option for now. |
With the changes in #11485, and fixes already made to the Blender exporter, we're getting close. There will be a couple more small fixes needed for animation, but here's the result in three.js: |
@donmccurdy hi. Can i get a running dog script? So that I can study how it works? when I update my copy of threejs I encountered a KH_material error. thanks. |
Hi @densetsughem — you can find the working Usage is the same as this sample: https://threejs.org/examples/#webgl_loader_gltf2 You'll also be able to test models in a drag-and-drop viewer (https://gltf-viewer.donmccurdy.com/), although I haven't yet updated it with these fixes. |
@donmccurdy Any chance you can help some more on SO? :) |
Will do! |
Description of the problem
Please help. I got below error when I tried to load a .gltf file. I used the sample code: https://threejs.org/examples/#webgl_loader_gltf2
Also, here is the link of the files I used:
http://densetsughem.com/Dog.zip
Thank you in advance.
Three.js version
Browser
OS
Hardware Requirements (graphics card, VR Device, ...)
The text was updated successfully, but these errors were encountered: