# \#obj-loader

**URL:** https://discourse.threejs.org/tag/obj-loader/189.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 - …

---

## [Is a physics engine useful?](https://discourse.threejs.org/t/is-a-physics-engine-useful/10956)

<div class="topic-metadata">

**Author:** [@Kamila](https://discourse.threejs.org/u/Kamila)\
**Replies:** 25\
**Last updated:** [January 18, 2026, 1:35am UTC](https://discourse.threejs.org/t/is-a-physics-engine-useful/10956 "2026-01-18T01:35:58Z")

</div>

Hi, I am trying to make a First person game in three js. I want the camera to be the players eyes. I am using the orbit controls, using keys on the keyboard for the movement of my player. But the camera is going through…

---

## [CPU performance drop on view](https://discourse.threejs.org/t/cpu-performance-drop-on-view/88221)

<div class="topic-metadata">

**Author:** [@di\_sle\_la\_yes\_ol\_ad](https://discourse.threejs.org/u/di_sle_la_yes_ol_ad)\
**Replies:** 3\
**Last updated:** [November 20, 2025, 6:51am UTC](https://discourse.threejs.org/t/cpu-performance-drop-on-view/88221 "2025-11-20T06:51:06Z")

</div>

I’ve created a game and limited my camera length to, say, 400 and a minimum of 0.1. If there are models behind that distance, even though I can’t see them, it taxes my CPU and slows down my renderer. Is there a way to fi…

---

## [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…

---

## [Nextjs and Threejs fiber url problem](https://discourse.threejs.org/t/nextjs-and-threejs-fiber-url-problem/57346)

<div class="topic-metadata">

**Author:** [@Alicecold](https://discourse.threejs.org/u/Alicecold)\
**Replies:** 6\
**Last updated:** [July 24, 2025, 10:25am UTC](https://discourse.threejs.org/t/nextjs-and-threejs-fiber-url-problem/57346 "2025-07-24T10:25:57Z")

</div>

I’m a bit at a loss here: I can get an utah teapot obj file to render, with light and everything, but I get an mysterious error which annoyingly means that vercel won’t accept it. I’m new with both nextjs and threejs (bu…

---

## [New to ThreeJS - Can't load Obj file](https://discourse.threejs.org/t/new-to-threejs-cant-load-obj-file/55395)

<div class="topic-metadata">

**Author:** [@zsarker](https://discourse.threejs.org/u/zsarker)\
**Replies:** 17\
**Last updated:** [March 5, 2025, 6:26am UTC](https://discourse.threejs.org/t/new-to-threejs-cant-load-obj-file/55395 "2025-03-05T06:26:26Z")

</div>

I’m using the following code to try and load an MTL and obj file - the index.html code is attached below. I made the file on blender. I also tried loading simpler files onto threejs and I still didn’t see anything on my …

---

## [SSAO renderer on obj viewer makes the whole screen white](https://discourse.threejs.org/t/ssao-renderer-on-obj-viewer-makes-the-whole-screen-white/76412)

<div class="topic-metadata">

**Author:** [@verina09](https://discourse.threejs.org/u/verina09)\
**Replies:** 8\
**Last updated:** [January 28, 2025, 8:32am UTC](https://discourse.threejs.org/t/ssao-renderer-on-obj-viewer-makes-the-whole-screen-white/76412 "2025-01-28T08:32:04Z")

</div>

I have a simple 3d obj viewer that I try to add SSAO with. Normal rendering works just fine but when I add SSAO (composer renderer), the whole screen turns all white. I’ve tried making the value of light smaller, radiu…

---

## [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…

---

## [Dynamic annotations on Obj loaded model](https://discourse.threejs.org/t/dynamic-annotations-on-obj-loaded-model/68521)

<div class="topic-metadata">

**Author:** [@LFdeSouza](https://discourse.threejs.org/u/LFdeSouza)\
**Replies:** 4\
**Last updated:** [July 26, 2024, 6:50pm UTC](https://discourse.threejs.org/t/dynamic-annotations-on-obj-loaded-model/68521 "2024-07-26T18:50:09Z")

</div>

Hi all. I’m having trouble with adding annotations to a loaded OBJ model. What I want to do is to allow the user to add annotations to the surface a rendered object on click. I managed to achieve this with a boxGeometr…

---

## [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)…

---

## [OBJLoader: Shows only geometry model without imagesa and colored parts](https://discourse.threejs.org/t/objloader-shows-only-geometry-model-without-imagesa-and-colored-parts/66679)

<div class="topic-metadata">

**Author:** [@MadMax888](https://discourse.threejs.org/u/MadMax888)\
**Replies:** 1\
**Last updated:** [June 11, 2024, 11:27am UTC](https://discourse.threejs.org/t/objloader-shows-only-geometry-model-without-imagesa-and-colored-parts/66679 "2024-06-11T11:27:13Z")

</div>

I’m using plain OBJLoader without any additional configurations and got this result The original one is (mac os preview) Could someone point you how to catch all these colored things?

---

## [Problems with setting child's material](https://discourse.threejs.org/t/problems-with-setting-childs-material/65950)

<div class="topic-metadata">

**Author:** [@E\_K](https://discourse.threejs.org/u/E_K)\
**Replies:** 4\
**Last updated:** [May 24, 2024, 7:20pm UTC](https://discourse.threejs.org/t/problems-with-setting-childs-material/65950 "2024-05-24T19:20:48Z")

</div>

I’m trying to match the reference. I have a strawberry consisting of the top green part, the red body, and the part that is covered in the chocolate (top layer) The single .obj provided by the designer doesn’t have names…

---

## [Issue with Use three.js (loading .obj and .mtl file) inside krpano. Black Plane is appearing in the center](https://discourse.threejs.org/t/issue-with-use-three-js-loading-obj-and-mtl-file-inside-krpano-black-plane-is-appearing-in-the-center/65534)

<div class="topic-metadata">

**Author:** [@Saikat\_Mondal](https://discourse.threejs.org/u/Saikat_Mondal)\
**Replies:** 0\
**Last updated:** [May 14, 2024, 1:16pm UTC](https://discourse.threejs.org/t/issue-with-use-three-js-loading-obj-and-mtl-file-inside-krpano-black-plane-is-appearing-in-the-center/65534 "2024-05-14T13:16:29Z")

</div>

Hello , I’m encountering an issue while integrating Three.js(loading .obj and .mtl file) with krpano, and I’m seeking some guidance or insights from the community. Problem Description : A black plane is appearing in th…

---

## [Three.JS 3D Model Added but it's not visible](https://discourse.threejs.org/t/three-js-3d-model-added-but-its-not-visible/54907)

<div class="topic-metadata">

**Author:** [@beilavi](https://discourse.threejs.org/u/beilavi)\
**Replies:** 4\
**Last updated:** [April 21, 2024, 12:53pm UTC](https://discourse.threejs.org/t/three-js-3d-model-added-but-its-not-visible/54907 "2024-04-21T12:53:29Z")

</div>

I’m trying to add a 3D Model to my website. I’m using three.js. I tried all I could but I can not make the 3d model visible. In the network tab in developer tools I can see that MTL and OBJ files are loaded but the page …

---

## [I cant to Import objects locally in Three.js. how to fix?](https://discourse.threejs.org/t/i-cant-to-import-objects-locally-in-three-js-how-to-fix/63273)

<div class="topic-metadata">

**Author:** [@Somgolie\_Ejinkeonye](https://discourse.threejs.org/u/Somgolie_Ejinkeonye)\
**Replies:** 6\
**Last updated:** [April 1, 2024, 9:41am UTC](https://discourse.threejs.org/t/i-cant-to-import-objects-locally-in-three-js-how-to-fix/63273 "2024-04-01T09:41:18Z")

</div>

It’s my first time using Three.js and I’ve been trying to load in a simple object into my scene, but it doesn’t show, i have lighting in the scene and it doesn’t show any errors. its just black

---

## [Imported object cannot load in scene (I'm using notepad++ and serverz not visual studion or vite)](https://discourse.threejs.org/t/imported-object-cannot-load-in-scene-im-using-notepad-and-serverz-not-visual-studion-or-vite/63323)

<div class="topic-metadata">

**Author:** [@Somgolie\_Ejinkeonye](https://discourse.threejs.org/u/Somgolie_Ejinkeonye)\
**Replies:** 5\
**Last updated:** [March 28, 2024, 5:38pm UTC](https://discourse.threejs.org/t/imported-object-cannot-load-in-scene-im-using-notepad-and-serverz-not-visual-studion-or-vite/63323 "2024-03-28T17:38:59Z")

</div>

I was able to import the GLTF loader but it gives be this error that just keeps running forever when I add my object. this is my script: \<html\> \<head\> \<meta charset=utf-8\> \<title\>Maze\</titl…

---

## [GLTF object will not load into the scene gives error:error: THREE.WebGLInfo: Unknown draw mode: undefined](https://discourse.threejs.org/t/gltf-object-will-not-load-into-the-scene-gives-error-three-webglinfo-unknown-draw-mode-undefined/63332)

<div class="topic-metadata">

**Author:** [@Somgolie\_Ejinkeonye](https://discourse.threejs.org/u/Somgolie_Ejinkeonye)\
**Replies:** 10\
**Last updated:** [March 27, 2024, 6:01pm UTC](https://discourse.threejs.org/t/gltf-object-will-not-load-into-the-scene-gives-error-three-webglinfo-unknown-draw-mode-undefined/63332 "2024-03-27T18:01:04Z")

</div>

I was able to import the GLTF loader but it gives be this error that just keeps running forever when I add my object. :error: THREE.WebGLInfo: Unknown draw mode: undefined I searched it up and nothing came up, I don’t …

---

## [How to import and add objectloader or addon into project(i'm using notepad++ and serverz, not visualstudio and vite)](https://discourse.threejs.org/t/how-to-import-and-add-objectloader-or-addon-into-project-im-using-notepad-and-serverz-not-visualstudio-and-vite/63319)

<div class="topic-metadata">

**Author:** [@Somgolie\_Ejinkeonye](https://discourse.threejs.org/u/Somgolie_Ejinkeonye)\
**Replies:** 7\
**Last updated:** [March 27, 2024, 1:11pm UTC](https://discourse.threejs.org/t/how-to-import-and-add-objectloader-or-addon-into-project-im-using-notepad-and-serverz-not-visualstudio-and-vite/63319 "2024-03-27T13:11:40Z")

</div>

I have 0 expriance with three.js and I don’t know what I’m doing but I’ve been trying incredibly hard to import an object loader and the firstpersoncontrols into my project. \<!DOCTYPE html\> \<html\> \<head\> …

---

## [I can't load any objects into the scene (help)](https://discourse.threejs.org/t/i-cant-load-any-objects-into-the-scene-help/63280)

<div class="topic-metadata">

**Author:** [@Somgolie\_Ejinkeonye](https://discourse.threejs.org/u/Somgolie_Ejinkeonye)\
**Replies:** 1\
**Last updated:** [March 26, 2024, 10:07pm UTC](https://discourse.threejs.org/t/i-cant-load-any-objects-into-the-scene-help/63280 "2024-03-26T22:07:26Z")

</div>

It’s my first time using Three.js and I’ve been trying to load in a simple object into my scene, but it doesn’t show, i have lighting in the scene and it doesn’t show any errors. its just black no errors or anything. loc…

---

## [How to show this "peter 3d model" same as its shows, using .obj and textures](https://discourse.threejs.org/t/how-to-show-this-peter-3d-model-same-as-its-shows-using-obj-and-textures/63017)

<div class="topic-metadata">

**Author:** [@KomelAbbas](https://discourse.threejs.org/u/KomelAbbas)\
**Replies:** 8\
**Last updated:** [March 22, 2024, 5:35am UTC](https://discourse.threejs.org/t/how-to-show-this-peter-3d-model-same-as-its-shows-using-obj-and-textures/63017 "2024-03-22T05:35:19Z")

</div>

Hello friends, can anyone help me little bit. how to show this “peter 3d model” same as its shows, using .obj and textures. It showing like this :sweat\_smile: in below child.name material :arrow\_heading\_down: ‘Wh…

---

## [OBJ-loader does not load file with dynamic path via String input](https://discourse.threejs.org/t/obj-loader-does-not-load-file-with-dynamic-path-via-string-input/62447)

<div class="topic-metadata">

**Author:** [@jhoss](https://discourse.threejs.org/u/jhoss)\
**Replies:** 3\
**Last updated:** [March 7, 2024, 11:24pm UTC](https://discourse.threejs.org/t/obj-loader-does-not-load-file-with-dynamic-path-via-string-input/62447 "2024-03-07T23:24:07Z")

</div>

Hi guys, why does this work: function Scene() { const obj = useLoader(OBJLoader, require("../obj-files/H17999\_67.obj")); return \<primitive object={obj} scale={0.02} /\> } But the following does not: funct…

---

## [Texture not applied on OBJ model using react-three-fiber](https://discourse.threejs.org/t/texture-not-applied-on-obj-model-using-react-three-fiber/61904)

<div class="topic-metadata">

**Author:** [@zotakk4o](https://discourse.threejs.org/u/zotakk4o)\
**Replies:** 9\
**Last updated:** [February 25, 2024, 10:36am UTC](https://discourse.threejs.org/t/texture-not-applied-on-obj-model-using-react-three-fiber/61904 "2024-02-25T10:36:07Z")

</div>

I’m using react-three-fiber to create a 3D configurator that can apply textures to models. The problem I encountered is that the OBJ model is rendered successfully but the texture is not applied to it. Can you help me de…

---

## [OBJ meshes are suddenly not loading](https://discourse.threejs.org/t/obj-meshes-are-suddenly-not-loading/60539)

<div class="topic-metadata">

**Author:** [@Grizler](https://discourse.threejs.org/u/Grizler)\
**Replies:** 1\
**Last updated:** [January 20, 2024, 9:40pm UTC](https://discourse.threejs.org/t/obj-meshes-are-suddenly-not-loading/60539 "2024-01-20T21:40:07Z")

</div>

so basically im trying to make an Avatar Renderer using threejs and sometimes hats arent being loaded for absolute no reason

---

## [Unexpected line error when piping .obj from my server to OBJLoader](https://discourse.threejs.org/t/unexpected-line-error-when-piping-obj-from-my-server-to-objloader/60374)

<div class="topic-metadata">

**Author:** [@Grumpier](https://discourse.threejs.org/u/Grumpier)\
**Replies:** 3\
**Last updated:** [January 17, 2024, 6:27pm UTC](https://discourse.threejs.org/t/unexpected-line-error-when-piping-obj-from-my-server-to-objloader/60374 "2024-01-17T18:27:58Z")

</div>

I have an .obj file created with Tinkercad that I wish to use to create a three js model. Here’s a snipet of the .obj file: # Object Export From Tinkercad Server 2015 mtllib obj.mtl o obj\_0 v -178.5 -379.374 1 v -…

---

## [How can i show OBJ model with face smooth, pls](https://discourse.threejs.org/t/how-can-i-show-obj-model-with-face-smooth-pls/58256)

<div class="topic-metadata">

**Author:** [@LYunLong](https://discourse.threejs.org/u/LYunLong)\
**Replies:** 2\
**Last updated:** [November 17, 2023, 6:18am UTC](https://discourse.threejs.org/t/how-can-i-show-obj-model-with-face-smooth-pls/58256 "2023-11-17T06:18:36Z")

</div>

My : Want:

---

## [Resetting objModel position after user interaction in Three.js](https://discourse.threejs.org/t/resetting-objmodel-position-after-user-interaction-in-three-js/57531)

<div class="topic-metadata">

**Author:** [@sjd12329](https://discourse.threejs.org/u/sjd12329)\
**Replies:** 1\
**Last updated:** [October 30, 2023, 4:51am UTC](https://discourse.threejs.org/t/resetting-objmodel-position-after-user-interaction-in-three-js/57531 "2023-10-30T04:51:08Z")

</div>

Hello! I am facing a challenge with user interactions and model positioning in my Three.js application, and I am seeking your guidance to resolve this issue. Here is the scenario: I load a obj model into the scene, a…

---

## [async/await/loadAsync - black magic for me :-(](https://discourse.threejs.org/t/async-await-loadasync-black-magic-for-me/54595)

<div class="topic-metadata">

**Author:** [@three3d](https://discourse.threejs.org/u/three3d)\
**Replies:** 2\
**Last updated:** [August 4, 2023, 11:22pm UTC](https://discourse.threejs.org/t/async-await-loadasync-black-magic-for-me/54595 "2023-08-04T23:22:22Z")

</div>

I don’t know js so well, I don’t understand processes async/await/loadAsync - in detail these are too advanced for me :cry:. However, I have noticed that they can affect the ORDER of adding loaded models to groups. I…

---

## [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…

---

## [OBJLoader results in "text.indexOf is not a function" error](https://discourse.threejs.org/t/objloader-results-in-text-indexof-is-not-a-function-error/52827)

<div class="topic-metadata">

**Author:** [@Michael\_Nicol](https://discourse.threejs.org/u/Michael_Nicol)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 4:39pm UTC](https://discourse.threejs.org/t/objloader-results-in-text-indexof-is-not-a-function-error/52827 "2023-06-22T16:39:38Z")

</div>

I have the following file upload and parsing code: When the OBJ file is uploaded from the src to the program, it provides an error. If you comment out the OBJ loader and use the STL loader instead, it works with the S…

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