I am facing an issue while trying to load a model with multiple materials. I want to access the array of materials but my current approach is not working as expected.
loader.load('./dae/tenis.DAE', function ( collada){
dae = collada.scene;
dae.scale.x = dae.scale.y = dae.scale.z = 0.5;
dae.traverse(function(child){
if(child instanceof THREE.Mesh)
{
var text = textLoader.load('./dae/part1/part1_DIF00000.png');
child.MultiMaterial.materials[0] = text;
}
});
dae.updateMatrix();
init();
animate();
});
Despite trying to load textures separately and accessing them in the above way, I am still unable to achieve the desired outcome. Can anyone provide some helpful tips or suggestions?