Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specific OBJ file can not be displayed correctly in r76 or later. #9392

Closed
10 of 15 tasks
cx20 opened this issue Jul 23, 2016 · 2 comments
Closed
10 of 15 tasks

Specific OBJ file can not be displayed correctly in r76 or later. #9392

cx20 opened this issue Jul 23, 2016 · 2 comments

Comments

@cx20
Copy link
Contributor

cx20 commented Jul 23, 2016

Description of the problem

I was not able to display the Gophe 3D model in the obj file.

image
-> OK : three.js(r73) + MTLLoader.js + OBJMTLLoader.js (http://jsdo.it/cx20/OQ5X)

image
-> NG : three.js(r76) + MTLLoader.js + OBJLoader.js (http://jsdo.it/cx20/cblg)

image
-> NG : three.js(r79) + MTLLoader.js + OBJLoader.js (http://jsdo.it/cx20/gxsj)

Gopher 3D model has reduced the number of vertices in the following procedure.

  1. open a gopher.blend file in Blender 2.72. (see: https://github.com/golang-samples/gopher-3d)
  2. reduce the number of vertices of the model.
  3. export to a gopher.obj file
Three.js version
  • Dev
  • r79
  • r78
  • r77
  • r76
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
  • Microsoft Edge
OS
  • All of them
  • Windows
  • Linux
  • Android
  • IOS
Hardware Requirements (graphics card, VR Device, ...)

Windows 10 + ThinkPad X201(Intel HD Graphics)

@ghost
Copy link

ghost commented Jul 23, 2016

That OBJ file was not properly exported (from Blender).
Here is the fixed version (with 3DS Max) and open with THREE r79:
http://necromanthus.com/Test/html5/gopher.html

@cx20
Copy link
Contributor Author

cx20 commented Jul 23, 2016

Is this the OBJ file exporter problem? (from Blender)

image
-> OK three.js(r79) + MTLLoader.js + OBJLoader.js (using modifed obj file) (http://jsdo.it/cx20/erfU)

I was modifying the file as below, it is now successfully display.

gopher.obj (before)

l 7472 7351
l 7351 7473
l 7774 7707
l 7707 7775

gopher_modified.obj (after)

# l 7472 7351
# l 7351 7473
# l 7774 7707
# l 7707 7775

@cx20 cx20 closed this as completed Jul 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant