# \#mtl-loader

**URL:** https://discourse.threejs.org/tag/mtl-loader/107.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Trouble Loading OBJ + MTL on GitHub Pages .“THREE is not defined” / 404 errors Body:](https://discourse.threejs.org/t/trouble-loading-obj-mtl-on-github-pages-three-is-not-defined-404-errors-body/89923)

<div class="topic-metadata">

**Author:** [@Jewel\_Johnson](https://discourse.threejs.org/u/Jewel_Johnson)\
**Replies:** 0\
**Last updated:** [February 19, 2026, 4:12am UTC](https://discourse.threejs.org/t/trouble-loading-obj-mtl-on-github-pages-three-is-not-defined-404-errors-body/89923 "2026-02-19T04:12:53Z")

</div>

first time on here. wanna make my own 3d portfolio. sorta new to code.. having issues with loading up my obj and mtl file in the 3D asset page. my JS and Asset repo is probably all screwed up. here’s my github: GitHub - …

---

## [Why I can't show the MTL](https://discourse.threejs.org/t/why-i-cant-show-the-mtl/18061)

<div class="topic-metadata">

**Author:** [@buffalo](https://discourse.threejs.org/u/buffalo)\
**Replies:** 5\
**Last updated:** [October 6, 2025, 4:07pm UTC](https://discourse.threejs.org/t/why-i-cant-show-the-mtl/18061 "2025-10-06T16:07:24Z")

</div>

hi. friends. why I can’t show the MTL. I have a question when I tried to load an object with MTL file. when I used the object file “female02.obj” in the examples given by three.js.org. I can show the object in the page…

---

## [MTLLoader Not Working](https://discourse.threejs.org/t/mtlloader-not-working/5660)

<div class="topic-metadata">

**Author:** [@andul007](https://discourse.threejs.org/u/andul007)\
**Replies:** 9\
**Last updated:** [October 6, 2025, 3:59pm UTC](https://discourse.threejs.org/t/mtlloader-not-working/5660 "2025-10-06T15:59:25Z")

</div>

Hi, I created a model with blender. I was successfully able to export the corresponding obj into my Three JS canvas. Now I’m working on loading the MTL file from my Blender Export. The weird thing is that for like a s…

---

## [Loading OBJ and MTL files using CDN for all files](https://discourse.threejs.org/t/loading-obj-and-mtl-files-using-cdn-for-all-files/23053)

<div class="topic-metadata">

**Author:** [@Ali\_Abbas](https://discourse.threejs.org/u/Ali_Abbas)\
**Replies:** 2\
**Last updated:** [February 16, 2021, 7:48pm UTC](https://discourse.threejs.org/t/loading-obj-and-mtl-files-using-cdn-for-all-files/23053 "2021-02-16T19:48:41Z")

</div>

Hello, I’m trying to load this OBJ file and MTL file along with these texture files (1, 2) all using CDN links so I can eventually install this on a Webflow website, which doesn’t support local hosting. I am new to Thre…

---

## [Undesirable high contrast and saturation on materials](https://discourse.threejs.org/t/undesirable-high-contrast-and-saturation-on-materials/82457)

<div class="topic-metadata">

**Author:** [@camilomunhoz](https://discourse.threejs.org/u/camilomunhoz)\
**Replies:** 5\
**Last updated:** [May 14, 2025, 12:27am UTC](https://discourse.threejs.org/t/undesirable-high-contrast-and-saturation-on-materials/82457 "2025-05-14T00:27:21Z")

</div>

Hi there! I’ve been digging around for too long, help me out! The main problem: textures are presenting high contrast and saturated colors, visible on the images attached. Notice darker areas and yellowish tint. I…

---

## [Need help for obj & mtl loader display](https://discourse.threejs.org/t/need-help-for-obj-mtl-loader-display/74091)

<div class="topic-metadata">

**Author:** [@Eric\_He](https://discourse.threejs.org/u/Eric_He)\
**Replies:** 6\
**Last updated:** [November 17, 2024, 8:08pm UTC](https://discourse.threejs.org/t/need-help-for-obj-mtl-loader-display/74091 "2024-11-17T20:08:26Z")

</div>

Hi, I have tried to load obj & mtl with texture image file and followed example page html code here: three.js webgl - OBJLoader + MTLLoader but it doesn’t show the object. I tried to rescale or reset the center and camer…

---

## [OBJ Loads, MTL is always shiny and dark when Texture is mapped](https://discourse.threejs.org/t/obj-loads-mtl-is-always-shiny-and-dark-when-texture-is-mapped/68304)

<div class="topic-metadata">

**Author:** [@BrentBuffham](https://discourse.threejs.org/u/BrentBuffham)\
**Replies:** 7\
**Last updated:** [July 21, 2024, 7:49pm UTC](https://discourse.threejs.org/t/obj-loads-mtl-is-always-shiny-and-dark-when-texture-is-mapped/68304 "2024-07-21T19:49:31Z")

</div>

Hello, I have got the OBJ loading every time and then I thought I would try loading the MTL and associated texture. However, initially the simple turtorial that I was following would constantly complain about the textur…

---

## [OBJLoader + MTlLoader: How to render obj + mtl + jpeg/png or obj + mtl correctly?](https://discourse.threejs.org/t/objloader-mtlloader-how-to-render-obj-mtl-jpeg-png-or-obj-mtl-correctly/67080)

<div class="topic-metadata">

**Author:** [@MadMax888](https://discourse.threejs.org/u/MadMax888)\
**Replies:** 5\
**Last updated:** [June 25, 2024, 4:41pm UTC](https://discourse.threejs.org/t/objloader-mtlloader-how-to-render-obj-mtl-jpeg-png-or-obj-mtl-correctly/67080 "2024-06-25T16:41:28Z")

</div>

Need to render .obj + mtl 3d asset from zip archive. I’m using as examples examples/models/obj/male02 (obj + mtl + jpeg) and my example obj + mtl only My loader setup looks like: const objFile = Object.keys(zip.files)…

---

## [Group.add() inside MTLLoader + OBJLoader?](https://discourse.threejs.org/t/group-add-inside-mtlloader-objloader/54508)

<div class="topic-metadata">

**Author:** [@three3d](https://discourse.threejs.org/u/three3d)\
**Replies:** 8\
**Last updated:** [August 2, 2023, 12:09pm UTC](https://discourse.threejs.org/t/group-add-inside-mtlloader-objloader/54508 "2023-08-02T12:09:56Z")

</div>

I can’t manage to use grouping while loading the \*.obj model: let MyGroup = new THREE.Group; let mtlLoader = new MTLLoader(); mtlLoader.setPath( fpath ); mtlLoader.load( fname+'.mtl', function ( materials ) { material…

---

## [Getting error while adding an obj with Vue to the scene](https://discourse.threejs.org/t/getting-error-while-adding-an-obj-with-vue-to-the-scene/49669)

<div class="topic-metadata">

**Author:** [@maipo89](https://discourse.threejs.org/u/maipo89)\
**Replies:** 2\
**Last updated:** [March 28, 2023, 12:49pm UTC](https://discourse.threejs.org/t/getting-error-while-adding-an-obj-with-vue-to-the-scene/49669 "2023-03-28T12:49:29Z")

</div>

\<template\> \<div id="container"\>\</div\> \</template\> \<script\> import \* as Three from 'three' import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader.js'; import { MTLLoader } from 'three/examples/jsm/loaders/MT…

---

## [Textures have no color and weird transparency](https://discourse.threejs.org/t/textures-have-no-color-and-weird-transparency/47668)

<div class="topic-metadata">

**Author:** [@tomvel](https://discourse.threejs.org/u/tomvel)\
**Replies:** 1\
**Last updated:** [February 6, 2023, 3:39pm UTC](https://discourse.threejs.org/t/textures-have-no-color-and-weird-transparency/47668 "2023-02-06T15:39:07Z")

</div>

I have a material (MTLLoader.MaterialCreator) and when I try to load an .obj file with it I for some reason get this: I have the map as a png image which is the texture, I don’t want it to be transparent and I want it…

---

## [.obj materials don't load from zip url](https://discourse.threejs.org/t/obj-materials-dont-load-from-zip-url/38637)

<div class="topic-metadata">

**Author:** [@informatter](https://discourse.threejs.org/u/informatter)\
**Replies:** 2\
**Last updated:** [June 10, 2022, 9:37am UTC](https://discourse.threejs.org/t/obj-materials-dont-load-from-zip-url/38637 "2022-06-10T09:37:32Z")

</div>

Hi everyone! I am trying to load an .obj and .mtl file and .png textures from a url containing a zip file. The zip file contents are all the .png textures, .mtl file and the .obj file. I am not getting any errors in th…

---

## [Albedo texture not applying properly](https://discourse.threejs.org/t/albedo-texture-not-applying-properly/31637)

<div class="topic-metadata">

**Author:** [@ouli](https://discourse.threejs.org/u/ouli)\
**Replies:** 15\
**Last updated:** [November 11, 2021, 4:11pm UTC](https://discourse.threejs.org/t/albedo-texture-not-applying-properly/31637 "2021-11-11T16:11:15Z")

</div>

Hey, My materials aren’t being correctly applied to my .obj model and I’m not entirely sure why. I load the texture, traverse the object and apply the texture to the children (meshes) but it doesn’t seem to properly app…

---

## [MTL file with jpg cause errors (FIXED)](https://discourse.threejs.org/t/mtl-file-with-jpg-cause-errors-fixed/27224)

<div class="topic-metadata">

**Author:** [@firecloud](https://discourse.threejs.org/u/firecloud)\
**Replies:** 0\
**Last updated:** [June 14, 2021, 8:18pm UTC](https://discourse.threejs.org/t/mtl-file-with-jpg-cause-errors-fixed/27224 "2021-06-14T20:18:13Z")

</div>

So I did this tutorial: Learning three.js 01 :: Getting Started - Learning three.js 01 :: Getting Started - YouTube It shows you how to make a simple first persoon shooter. Everything was fine and I build my first game…

---

## [How to load mtl file and textures from different urls](https://discourse.threejs.org/t/how-to-load-mtl-file-and-textures-from-different-urls/26967)

<div class="topic-metadata">

**Author:** [@Gerald12344](https://discourse.threejs.org/u/Gerald12344)\
**Replies:** 2\
**Last updated:** [June 14, 2021, 11:11am UTC](https://discourse.threejs.org/t/how-to-load-mtl-file-and-textures-from-different-urls/26967 "2021-06-14T11:11:37Z")

</div>

Hi I put this question on stackoverflow as well. So this problem might sound a little odd, let me explain. I am using the Roblox API to get the OBJ file, the MTL file and the Texture file. So the base api with the info …

---

## [Load obj with mtl file which has multiple texture](https://discourse.threejs.org/t/load-obj-with-mtl-file-which-has-multiple-texture/27138)

<div class="topic-metadata">

**Author:** [@RAUMIK\_RANA](https://discourse.threejs.org/u/RAUMIK_RANA)\
**Replies:** 1\
**Last updated:** [June 11, 2021, 11:11am UTC](https://discourse.threejs.org/t/load-obj-with-mtl-file-which-has-multiple-texture/27138 "2021-06-11T11:11:43Z")

</div>

I have obj model which has mtl file with multiple texture. but i cant load file with texture. var OBJFile = 'assests/textured\_model/geomodel.obj' var MTLFile = 'geomodel.mtl'; const mtlLoader = new MTLLoader()…

---

## [How to use needs update property with MTL Loader](https://discourse.threejs.org/t/how-to-use-needs-update-property-with-mtl-loader/26974)

<div class="topic-metadata">

**Author:** [@IMR](https://discourse.threejs.org/u/IMR)\
**Replies:** 2\
**Last updated:** [June 5, 2021, 9:31pm UTC](https://discourse.threejs.org/t/how-to-use-needs-update-property-with-mtl-loader/26974 "2021-06-05T21:31:01Z")

</div>

Hello, Is there a way to clear the catch images by MTL loader? As when I dynamically update the material (as well as obj) file having the same image names (in MTL), and after removing and re-adding the mesh, it’s textur…

---

## [.mtl file is not properly loaded for certain materials](https://discourse.threejs.org/t/mtl-file-is-not-properly-loaded-for-certain-materials/23419)

<div class="topic-metadata">

**Author:** [@Wookyum\_Kim](https://discourse.threejs.org/u/Wookyum_Kim)\
**Replies:** 1\
**Last updated:** [February 12, 2021, 9:21am UTC](https://discourse.threejs.org/t/mtl-file-is-not-properly-loaded-for-certain-materials/23419 "2021-02-12T09:21:10Z")

</div>

(This is intended.) (This is when loaded in three js.) Hi, I am a newbie and I’m trying to load .mtl file with mtl loader with following code. const materialLoader = new MTLLoader(); …

---

## [MTLLoader load textures not complete](https://discourse.threejs.org/t/mtlloader-load-textures-not-complete/23055)

<div class="topic-metadata">

**Author:** [@sword](https://discourse.threejs.org/u/sword)\
**Replies:** 5\
**Last updated:** [February 5, 2021, 5:30am UTC](https://discourse.threejs.org/t/mtlloader-load-textures-not-complete/23055 "2021-02-05T05:30:11Z")

</div>

I try to load a model by using OBJLoader and MTLLoader, however textures isn’t loaded uncompelete. core code is inspired by office demo mtlLoader.setMaterialOptions({side:THREE.DoubleSide}).load(model.mtl, (mtlPars…

---

## [How to load OBJ and MTL?](https://discourse.threejs.org/t/how-to-load-obj-and-mtl/9110)

<div class="topic-metadata">

**Author:** [@Wikarot](https://discourse.threejs.org/u/Wikarot)\
**Replies:** 8\
**Last updated:** [January 9, 2021, 4:51pm UTC](https://discourse.threejs.org/t/how-to-load-obj-and-mtl/9110 "2021-01-09T16:51:22Z")

</div>

What I’ve already done: I’ve been reading some docs and examples from threejs.org, here we import files directly with URLs, and I need to use them like any other dependency. So I installed three (as always) and three-…

---

## [Texture for the object gets overlapped when it is loaded again](https://discourse.threejs.org/t/texture-for-the-object-gets-overlapped-when-it-is-loaded-again/21462)

<div class="topic-metadata">

**Author:** [@super21z](https://discourse.threejs.org/u/super21z)\
**Replies:** 2\
**Last updated:** [December 15, 2020, 5:31pm UTC](https://discourse.threejs.org/t/texture-for-the-object-gets-overlapped-when-it-is-loaded-again/21462 "2020-12-15T17:31:38Z")

</div>

Hi i am having an issue when i try to load an obj file. First time when the object is being loaded it doesnt have an issue, it gives proper object in the 3d scene. But next time when i load it the png files seems to be…

---

## [How to load an obj file along with its mtl dynamically using input of type file](https://discourse.threejs.org/t/how-to-load-an-obj-file-along-with-its-mtl-dynamically-using-input-of-type-file/19445)

<div class="topic-metadata">

**Author:** [@Ujwaldeep\_Singh](https://discourse.threejs.org/u/Ujwaldeep_Singh)\
**Replies:** 2\
**Last updated:** [October 6, 2020, 5:01am UTC](https://discourse.threejs.org/t/how-to-load-an-obj-file-along-with-its-mtl-dynamically-using-input-of-type-file/19445 "2020-10-06T05:01:33Z")

</div>

Hello! I am trying to render a model(xyz.obj file) along with its material. I have used an input tag to select all files (obj, mtl and all other required files that mtl needs). Since I can use parse function of OBJLoa…

---

## [Calling child.geometry.computeVertexNormals makes model disappear](https://discourse.threejs.org/t/calling-child-geometry-computevertexnormals-makes-model-disappear/18531)

<div class="topic-metadata">

**Author:** [@Nitsan\_Baleli](https://discourse.threejs.org/u/Nitsan_Baleli)\
**Replies:** 0\
**Last updated:** [September 8, 2020, 2:09pm UTC](https://discourse.threejs.org/t/calling-child-geometry-computevertexnormals-makes-model-disappear/18531 "2020-09-08T14:09:48Z")

</div>

this is a follow up question on https://discourse.threejs.org/t/obj-mtl-model-is-loaded-but-is-black/18488 the problematic code is here: https://github.com/nbaleli-w/three-js-mtl-obj-black model is seen as black, after…

---

## [Obj+mtl model is loaded but is black](https://discourse.threejs.org/t/obj-mtl-model-is-loaded-but-is-black/18488)

<div class="topic-metadata">

**Author:** [@Nitsan\_Baleli](https://discourse.threejs.org/u/Nitsan_Baleli)\
**Replies:** 10\
**Last updated:** [September 7, 2020, 10:49am UTC](https://discourse.threejs.org/t/obj-mtl-model-is-loaded-but-is-black/18488 "2020-09-07T10:49:07Z")

</div>

the way our .mtl file is produced was changed recently, now our models appear as black. here’s the code in a repo to show what I try. the example is taken from the threejs examples, only files were change what I alr…

---

## [.obj models not showing any color intended through texture mapping](https://discourse.threejs.org/t/obj-models-not-showing-any-color-intended-through-texture-mapping/18093)

<div class="topic-metadata">

**Author:** [@Richard\_Chen](https://discourse.threejs.org/u/Richard_Chen)\
**Replies:** 6\
**Last updated:** [September 2, 2020, 6:19am UTC](https://discourse.threejs.org/t/obj-models-not-showing-any-color-intended-through-texture-mapping/18093 "2020-09-02T06:19:08Z")

</div>

Hi I am new to three.js. For some reason when I add a new model in .obj and .mtl into my three.js code, the color will become white, despite whatever the original color or texture is. The following is a snippet of the co…

---

## [OBJ+MTL Texure loads but only on some devices](https://discourse.threejs.org/t/obj-mtl-texure-loads-but-only-on-some-devices/18098)

<div class="topic-metadata">

**Author:** [@PrzemekP](https://discourse.threejs.org/u/PrzemekP)\
**Replies:** 5\
**Last updated:** [August 24, 2020, 1:21pm UTC](https://discourse.threejs.org/t/obj-mtl-texure-loads-but-only-on-some-devices/18098 "2020-08-24T13:21:32Z")

</div>

Hello to all. I’ve manged succesfully load obj+mtl files onto html -\> Showcase but hit an unusuall issue. Textures renders OK on iOS device (Macbook) on any browser (Chrome, Firefox, Safari), but the object stays black…

---

## [Adding array of materials & Texture on my OBJ model](https://discourse.threejs.org/t/adding-array-of-materials-texture-on-my-obj-model/17322)

<div class="topic-metadata">

**Author:** [@Sivamurugan\_S](https://discourse.threejs.org/u/Sivamurugan_S)\
**Replies:** 1\
**Last updated:** [July 24, 2020, 12:30pm UTC](https://discourse.threejs.org/t/adding-array-of-materials-texture-on-my-obj-model/17322 "2020-07-24T12:30:28Z")

</div>

Hi, I want to load my all materials and textures which i have used in my max. There are around 15 materials and 8 textures approx i am using on my model. I want to use all textures and materials in my three.js scene. …

---

## [MtlLoader not working with files loaded by users](https://discourse.threejs.org/t/mtlloader-not-working-with-files-loaded-by-users/17246)

<div class="topic-metadata">

**Author:** [@nunobartolo88](https://discourse.threejs.org/u/nunobartolo88)\
**Replies:** 1\
**Last updated:** [July 22, 2020, 2:19am UTC](https://discourse.threejs.org/t/mtlloader-not-working-with-files-loaded-by-users/17246 "2020-07-22T02:19:57Z")

</div>

Hi there I’m trying to use an mtl loader so users can load their own files (obj mtl and texture files) since i can’t use setResourcePath or set path on the mtlLoader to their directories I’m trying to modify the loadin…

---

## [Can't use textures (jpg) for mtlLoader uploaded as files inputs (by users) creatObjectUrl and setURLModifier don't work](https://discourse.threejs.org/t/cant-use-textures-jpg-for-mtlloader-uploaded-as-files-inputs-by-users-creatobjecturl-and-seturlmodifier-dont-work/17176)

<div class="topic-metadata">

**Author:** [@nunobartolo88](https://discourse.threejs.org/u/nunobartolo88)\
**Replies:** 3\
**Last updated:** [July 20, 2020, 2:00pm UTC](https://discourse.threejs.org/t/cant-use-textures-jpg-for-mtlloader-uploaded-as-files-inputs-by-users-creatobjecturl-and-seturlmodifier-dont-work/17176 "2020-07-20T14:00:55Z")

</div>

Hi there, I’m trying to create a tool where users can upload their obj file, an mtl file and the necessary jpeg for textures (required by the mtl file). The loadmodel function is triggered by a multiple file input butto…

---

## [Texture doesn't load correctly](https://discourse.threejs.org/t/texture-doesnt-load-correctly/16131)

<div class="topic-metadata">

**Author:** [@Amir\_zare](https://discourse.threejs.org/u/Amir_zare)\
**Replies:** 11\
**Last updated:** [June 14, 2020, 10:25am UTC](https://discourse.threejs.org/t/texture-doesnt-load-correctly/16131 "2020-06-14T10:25:58Z")

</div>

Hi there, I want to load an obj image with texture but the texture doesn’t load. Here’s my code: let materialLoader = new MTLLoader(); let objectLoader = new OBJLoader(); materialLoader.setPath(‘rose/’) materialLoa…

[Next page](https://discourse.threejs.org/tag/mtl-loader/107.md?match_all_tags=true&page=1&tags%5B%5D=mtl-loader)
