The texture does not show the whole object

The texture does not show the whole object, some places only the color of the object changes,what could be the problem please tell me.

Full code url: Kitchen ThreeJs · GitHub

Code

    // Load Kitchen
    var textureLoader = new THREE.TextureLoader();
    var texture = textureLoader.load('assets/textures/wood2.jpg');
    texture.flipY = false;
    texture.wrapS = THREE.RepeatWrapping;
    texture.wrapT = THREE.RepeatWrapping;

    loader = new GLTFLoader();
    loader.load(
      'assets/3d_models/kitch.glb',
      (gltf) => {
        kitchen = gltf.scene;

        kitchen.traverse((node) => {
          if (node.isMesh) {
            node.material.map = texture;
            console.log(node.material.map);
          }
        });
        // console.log(gltf);
        scene.add(kitchen);
      },
      undefined,
      (err) => {
        console.log(err);
      }
    );

Maybe there texture without repeat option.
texture.wrapS=texture.wrapT=THREE.RepeatWrapping;

I tried taking it off it doesn’t help

Then maybe problem in UV of geometry. Can you upload for teste kitch.glb ?

1 Like

Yes of course, here is the link

Model have UV with very big values. Its mean texture setted. But too small to see. Ussualy UV range is 0 to 1.
add this
texture.repeat.set(0.005,0.005);


1 Like

Thank you very much!!! its work