# Load obj with mtl file which has multiple texture

**URL:** <https://discourse.threejs.org/t/load-obj-with-mtl-file-which-has-multiple-texture/27138>\
**Category:** Questions\
**Tags:** texture-loader, obj-loader, mtl-loader, textures\
**Created:** [June 11, 2021, 5:38am UTC](https://discourse.threejs.org/t/load-obj-with-mtl-file-which-has-multiple-texture/27138 "2021-06-11T05:38:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAUMIK\_RANA](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/raumik_rana/32/12395_2.png) [@RAUMIK\_RANA](https://discourse.threejs.org/u/RAUMIK_RANA)\
**Post date:** [June 11, 2021, 5:38am UTC](https://discourse.threejs.org/t/load-obj-with-mtl-file-which-has-multiple-texture/27138/1 "2021-06-11T05:38:51Z")

</div>

I have obj model which has mtl file with multiple texture.

but i cant load file with texture.

```javascript
var OBJFile = 'assests/textured_model/geomodel.obj'
    var MTLFile = 'geomodel.mtl';

    const mtlLoader = new MTLLoader();
    // mtlLoader.setBaseUrl('assests/textured_model/');
    mtlLoader.setPath('assests/textured_model/');
    mtlLoader.load(MTLFile, (mtl) => {
        mtl.preload();
        const objLoader = new OBJLoader();
        console.log(mtl);
        objLoader.setMaterials(mtl);

        scene.add(new THREE.AmbientLight(0x404040))
        objLoader.load(OBJFile, (root) => {
            scene.add(root);
            root.children.forEach((e) => {
                e.geometry.computeVertexNormals()
                console.log("completed");
            })
        });
    });

```

[geomodel.mtl](https://discourse.threejs.org/uploads/short-url/oaecaLy6ja8jGJdX269Tq4AvhOa.mtl) (1.6 KB)

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [June 11, 2021, 11:11am UTC](https://discourse.threejs.org/t/load-obj-with-mtl-file-which-has-multiple-texture/27138/2 "2021-06-11T11:11:43Z")

</div>

Please share the entire asset (OBJ+MTL+textures).
