ebeaufay / threedtiles

3DTiles viewer for three.js
MIT License
270 stars 32 forks source link

Cannot read properties of undefined (reading 'getMaterialType') #12

Closed Yaozefen closed 1 year ago

Yaozefen commented 1 year ago

I'm running the simplest example https://drive.google.com/file/d/1kJ-yfYmy8ShOMMPPXgqW2gMgGkLOIidf/view

My b3dm model was sliced out by cesium lab Some models can be displayed, while others cannot Here are the errors: TypeError: Cannot read properties of undefined (reading 'getMaterialType') at GLTFParser.loadMaterial (GLTFLoader.js:3192:32) at GLTFLoader.js:2577:38 at GLTFParser._invokeOne (GLTFLoader.js:2494:19) at GLTFParser.getDependency (GLTFLoader.js:2575:24) at GLTFParser.loadMesh (GLTFLoader.js:3438:12) at GLTFLoader.js:2553:34 at GLTFParser._invokeOne (GLTFLoader.js:2494:19) at GLTFParser.getDependency (GLTFLoader.js:2551:24) at GLTFParser.createNodeMesh (GLTFLoader.js:3845:17) at GLTFLoader.js:3894:38 image