GLTFLoader - Cannot read property 'isBone' of undefined

Hi folks. I am new to the forums.

I do not believe this is a bug, but just something weird that I am trying to do. I have a human avatar model, that we normally use in Secondlife and OpenSim. I export it as GLTF, and the loader throws the error pasted below. I am suspecting that it is because it is “Bento” and has extra bones such as individual finger digits, wings, tail, etc. I am wondering if I am missing a dependency, or if I will need to define those bones in the loader somewhere? Or has anyone else run across this?

Thanks, and if anyone can point me in the right direction where to look, I’d appreciate it. :slight_smile:

> TypeError: Cannot read property 'isBone' of undefined
>     at GLTFLoader.js:2925
>     at GLTFParser.THREE.GLTFLoader.GLTFParser.loadNode (GLTFLoader.js:2995)
>     at GLTFParser.THREE.GLTFLoader.GLTFParser.getDependency (GLTFLoader.js:1734)
>     at GLTFParser.THREE.GLTFLoader.GLTFParser.loadAnimation (GLTFLoader.js:2778)
>     at GLTFParser.THREE.GLTFLoader.GLTFParser.getDependency (GLTFLoader.js:1766)
>     at GLTFLoader.js:1806
>     at Array.map (<anonymous>)
>     at GLTFParser.THREE.GLTFLoader.GLTFParser.getDependencies (GLTFLoader.js:1804)
>     at GLTFParser.THREE.GLTFLoader.GLTFParser.parse (GLTFLoader.js:1628)
>     at GLTFLoader.parse (GLTFLoader.js:221)

Could you share code, the model, or a demo to reproduce the error? Are you able to load the model in http://gltf-viewer.donmccurdy.com/?

Sure! I included a screen shot, uploading to your site, same error. Thanks :slight_smile:
I am thinking it’s because the model has unused bones. It’s an avatar for a virtual world and it has attachment points for tail, wings, etc.

and here is a link to the .glb file
http://hgility.com/viewer/stuff/52-OSRuth2_CurrentRelease_Source_RC3-hirez.glb

Do you have an original model of the file from Blender still? This file was created with an old version of the Blender exporter, and if you open it on http://github.khronos.org/glTF-Validator/ you’ll see there are a number of problems with the file. The new Blender glTF exporter is included with Blender 2.8, and should do better.

AHA!! This has pointed me in the right direction I think. It looks like most of those are the unused bones. (they actually need to be there, so will have to figure something out) Thank you so much! This community is awesome

I’ll share back when I get this working. :slight_smile:

1 Like