three.js icon indicating copy to clipboard operation
three.js copied to clipboard

Loaded Obj broken on r60

Open danielribeiro opened this issue 13 years ago • 6 comments

Hi,

While updating three-hub to use Three.js r60, I ran into this issue while loading an asset from 3 dreams of black.

On r59:

screen shot 2013-09-04 at 12 15 21 am

On r60: screen shot 2013-09-04 at 12 14 41 am

The obj can be found here: https://github.com/danielribeiro/3-dreams-of-black/blob/master/tests/morphing_animal/assets/old/bison/bison_002.obj (this is a mirror of the original project hosted on Google).

Cheers,

  • Daniel

danielribeiro avatar Sep 04 '13 07:09 danielribeiro

three.js no longer supports quads.

WestLangley avatar Sep 04 '13 07:09 WestLangley

I am aware of the Face4 removal, but shouldn't the loader break the quads into two Face3s?

danielribeiro avatar Sep 04 '13 08:09 danielribeiro

Isnt the OBJ-Loader a separate file, did you update it too. Maybe the models i have are triangles to begin with but I don't have this problem.

GuyGood avatar Sep 04 '13 08:09 GuyGood

Thanks @GuyGood . I was in fact using a bad loader. This one works just fine: https://github.com/mrdoob/three.js/blob/r60/examples/js/loaders/OBJLoader.js

danielribeiro avatar Sep 04 '13 08:09 danielribeiro

Cool, no problem :)

GuyGood avatar Sep 04 '13 08:09 GuyGood

@GuyGood :+1:

mrdoob avatar Sep 04 '13 20:09 mrdoob