mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
103.09k stars 35.42k forks source link

OBJMTLLoader problem #4320

Closed tiansijie closed 8 years ago

tiansijie commented 10 years ago

I am using an sponza model from http://graphics.cs.williams.edu/data/meshes.xml and objtMtl loader from your three.js. But I got some weird result shown below. The first pic I took when using the three.js. You can see the round hole has been blocked. But when I opened this model in Maya. I got the second pic. So, I think there some problem with the mtl obj loader.

capture

capture2

mrdoob commented 10 years ago

Could you setup a live example and with the camera pointing to the wrong area? I tried loading the .obj into the editor and seemed to work fine.

tiansijie commented 10 years ago

Here is the live demo edit from three.js examples http://sijietian.com/WebGL/threejs/examples/webgl_loader_obj_mtl

Also, when I loaded the model in editor and used point light, I got some artifacts. You see some wired triangles on the model. artifacts

mrdoob commented 10 years ago

Could you try updating to the latest version (65)? Both three.min.js and the loaders?

tiansijie commented 10 years ago

I updated and still got the same result.

mrdoob commented 10 years ago

Did you also updated the loaders? Here's how it looks on the editor here:

screen shot 2014-01-21 at 19 12 53

mrdoob commented 10 years ago

Wait, I think you're talking about dabrovic-sponza and I'm talking about crytek-sponza...

tiansijie commented 10 years ago

ya, it's the dabrovic-sponza what I am talking about...

mrdoob commented 10 years ago

Seems like Blender has the same problem...

screen shot 2014-01-22 at 14 00 12

tiansijie commented 10 years ago

My Blender on Windows seems totally fine.

blendertest

mrdoob commented 10 years ago

That's even more puzzling now...

tiansijie commented 10 years ago

Is there a way to fix it?

mrdoob commented 10 years ago

If there is a way, I don't know it... It's really weird that the same version of Blender loads the file properly on Windows but not on OSX.

mrdoob commented 8 years ago

OBJMTLLoader has been removed in r74. #8085