OBJLoader + MTLLoader texture won`t work it
See original GitHub issueDescription 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:
- Created 6 years ago
- Comments:15 (9 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Agreed 👌
I find out our obj made by ZBrush