question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OBJLoader + MTLLoader texture won`t work it

See original GitHub issue
Description of the problem

Hi,

I`m used to use three.js r53, so I want to upgrade to latest version(r86).

obj loader goes well, but when I try OBJLoader + MTLLoader that texture file does not work.

first, when I try as the sample(https://threejs.org/examples/webgl_loader_obj_mtl.html)

there have an error occurred [Unexpected line: ‘s’]

I found out that because OBJLoader could not work with s(lineFirstChar), so I gave a exception for that.

second, after that I can view object, but textures do not work with it.

this is my site(http://3dbank.xyz:9021/viewer/viewer_hologram_u.do?conts_uid=2388)

Three.js version
  • Dev
  • r86
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
mrdoobcommented, Jul 19, 2017

Agreed 👌

1reaction
deokhaecommented, Jul 12, 2017

I find out our obj made by ZBrush

Read more comments on GitHub >

github_iconTop Results From Across the Web

OBJLoader + MTLLoader not loading texture image - Questions
I'm trying to load this OBJ model: https://cdn.hexa3d.io/hotlink-ok/test/top.zip to my scene with OBJLoader + MTLLoader like so: loadMaterial = (path, ...
Read more >
MTLLoader doesn't show texture on the object I load
I'd like to find a way to show the texture of the globe so I could move on with my project. three.js ·...
Read more >
OBJ/MTL Loader - threejs - Google Sites
The function (third argument to loader.load) is the onLoad callback (asynchronous), called when both resource loads are completed. One thing to notice is...
Read more >
WebGL Load Obj with Mtl
We will asynchronously load the image into the texture. We'll also put in a single white pixel texture we can use for any...
Read more >
Three.js Loading a .OBJ File
OBJ loader can be passed an object of name / material pairs. ... Now that we have the textures available we can load...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found