CesiumGS / obj2gltf

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

Conversion Always Missing One Box. #37

Closed daiyunbo closed 7 years ago

daiyunbo commented 7 years ago

draw some boxes in 3ds max 2015,for example,draw six boxes and export as an OBJ file as show below. Then, use the obj2gltf tool to convert this OBJ file to binary gltf and load it in Cesium, as show below, there is always one box missing! Only five boxes instead of six box are in the scene. I have tried other cases like five or seven boxes, after the conversion, always one box was gone.

sixbox_3dsmax2015 fivebox_cesium

lilleyse commented 7 years ago

Thanks for the report. Can you post the obj you used?

daiyunbo commented 7 years ago

@lilleyse Thank you for your reply. I tried to post my OBJ file , but it prompts me "We don't support that file type" , even I post a ZIP file. So I just change the extension name of the OBJ files(two file: sixBox.obj and sixBoxmtl.mtl as show below) to an extension ".txt", please just respectively change them to their original extension names: "sixBox.obj" and "sixBoxmtl.mtl".

sixbox_obj

sixBox.txt sixBoxmtl.txt

lilleyse commented 7 years ago

Fixed in #49

However the .mtl file had to change Tr 0 to Tr 1 so it wasn't invisible.