Hi,
when i try change texture on object load from obj+mtl then something is broken.
Original texture looks like this
After change looks like this
But in this example i use this some file.
In mtl file is
map_Kd textures/1006_basecolor.jpeg
and js change code
new THREE.TextureLoader().load('textures/1006_basecolor.jpeg', function (texture)
{
element.traverse(function (child)
{
if(child instanceof THREE.Mesh && child.name == '1006_recovered_tool2_recovered_tool2')
{
child.material.map = texture;
child.material.needsUpdate = true;
}
});
});
What i doing wrong ?