Open lifaon74 opened 7 years ago
In fact it seems the Object3D are not properly working :
To fix this, I'm doing the following:
let child;
for(let i = 0; i < object.children.length; i++) {
child = object.children[i];
scene.add(new THREE.Mesh(child.geometry, new THREE.MeshPhongMaterial({ color: child.material.color.getHex() })));
}
I also had this issue and @lifaon74 your workaround resolved it temporarily for me. I think the issue might be the mtl loader I am using. When inspecting the loaded object, each child-mesh has a material of type THREE.MeshPhongMaterial
. When I was not using the module based versions, the type was just
MeshPhongMaterial
.
Hello,
I'm trying to load material on an obj but it seems not working : assets.zip
It result in a pure white seat without materials:
But should be :
Any idea why ?