I am following the webgl_obj_mtl example from the three.js docs (https://threejs.org/examples/?q=obj#webgl_loader_obj_mtl ).But the part of material on the model’s face not working.Is something wrong with my models?
new MTLLoader()
.load('https://127.0.0.1:8080/1/001/001.mtl', (materials) => {
materials.preload()
console.log(materials)
new OBJLoader()
.setMaterials(materials)
.load('https://127.0.0.1:8080/1/001/001.obj', (object) => {
this.scene.add(object)
console.log(object)
})
})
1.zip (457.1 KB)