three.js: OBJLoader + MTLLoader texture won`t work it

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

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Agreed šŸ‘Œ

I find out our obj made by ZBrush