CesiumGS / obj2gltf

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

mtl Tr is set 0.9, but the building mesh is opacity. #105

Closed hanaimin closed 7 years ago

hanaimin commented 7 years ago

I have a simple model (obj with mtl). In this model, the building mesh material is set Tr 0.9 and display ok in unity 3d or 3ds max. but in cesium, the building is opacity. upload to online tool: qq 20170910224124 qq 20170910225409

remove outer wall: qq 20170910224158

all meshes is opacity.

in unity3d (correct): image

hanaimin commented 7 years ago

I also use command line: image but the result is same. the mesh is still opacity.

lilleyse commented 7 years ago

I'm testing with obj2gltf master branch (glTF 2.0) and Cesium 1.37, and I get this result which looks correct:

transparent

I used the command node bin/obj2gltf.js -i mall.obj

hanaimin commented 7 years ago

@lilleyse . thanks a lot. If I used the commad "node bin/obj2gltf.js -i mall.obj", it's correct. but If I used the command "node bin/obj2gltf.js -i mall.obj -b" it's wrong again. In my case, I have to use 3dTileset, so the binary gltf is essential.

hanaimin commented 7 years ago

@lilleyse sorry, it's my fault. I didn't clear the chrome cache. thank you again.