CesiumGS / obj2gltf

Convert OBJ assets to glTF
Apache License 2.0
1.71k stars 307 forks source link

Rendering issue with converted Google Blocks OBJ models #97

Closed 03lafaye closed 7 years ago

03lafaye commented 7 years ago

I'm trying to convert some Google Blocks OBJ models to GLTF 1.0 using https://cesiumjs.org/convertmodel.html and there seems to be some kind of culling / mesh rendering issue. You'll see the flat surface of the fingers of the Android and the feet should be opaque but the converted model renders it as transparent. I've seen a similar issue on a bunch of converted Blocks models.

See in Google Blocks web viewer (https://vr.google.com/objects/aloKVRTsyKs):

screen shot 2017-08-07 at 3 35 53 pm screen shot 2017-08-07 at 3 36 04 pm

And after obj2gltf conversion:

screen shot 2017-08-07 at 3 39 07 pm screen shot 2017-08-07 at 3 39 18 pm

Here's the source OBJ zip:

pierre-android.zip

Anyone have an idea of what's going on?

lilleyse commented 7 years ago

This is likely caused by lack of n-gon support.

There is a PR open and almost ready for handling that: https://github.com/AnalyticalGraphicsInc/obj2gltf/pull/85