I have to apply multiple Texture in loop which is in .jpg format, I have to apply it on FBX or OBJ modal, I created modal it is visible but texture is not applied into it

let img_normal = new THREE.TextureLoader().load(
‘/Albert/Albert_Marble_N.jpg’
);
let img_diffuse = new THREE.TextureLoader().load(
‘/Albert/Albert_Marble_AO.jpg’
);
let img_bump = new THREE.TextureLoader().load(
‘/Albert/Albert_Marble_Alb.jpg’
);

const loader = new FBXLoader();
loader.load('/Albert/Albert.fbx', (fbx) => {
  console.log('fbx', fbx);
  fbx.traverse((child) => {
    if (child instanceof THREE.Mesh) {
      console.log('child', child);
      child.material['map'] = img_diffuse;
      child.material['bumpMap'] = img_bump;
      child.material['normalMap'] = img_normal;
    }
  });
  fbx.position.y = 100;
  fbx.scale.x = 10;
  fbx.scale.y = 10;
  fbx.scale.z = 10;
  scene.add(fbx);
  console.log('fbx', fbx);
  control.attach(fbx);
});
scene.add(control);

Hi!

Try this:

      child.material['map'] = img_diffuse;
      child.material['bumpMap'] = img_bump;
      child.material['normalMap'] = img_normal;
      child.material.needsUpdate = true;

Hello @prisoner849, yes I tried with .needUpdate = true, it will not work and second thing is I am not getting specific diffuse,bump,normal types of texture, it should be any and I have to apply using loop one after another, I am sharing screen shot there In left side there is an images,I think you can help me.how can I apply those.