CesiumGS / obj2gltf

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

Some model transform error, The texture can not display #34

Closed WanghuiShmily closed 7 years ago

WanghuiShmily commented 7 years ago

Tile+004+004.zip

webprofusion-chrisc commented 7 years ago

capture For reference - this is what the submitted file looks like as .obj with mtl.

WanghuiShmily commented 7 years ago

Thanks for your reply, I want to know how did you do it, would you tell me why my model does not have texture after using "obj2gltf" tool. The submitted file is a .obj with mtl.

lilleyse commented 7 years ago

I'm running the command node bin/obj2gltf Tile_+004_+004.obj and it's working fine.

snip

Are you using http://cesiumjs.org/convertmodel.html to convert it? I did notice it failing there:

snip2

WanghuiShmily commented 7 years ago

I'm running the command "node bin/obj2gltf C:\Users\Administrator\Desktop\Tile+004+004\Tile+004+004.obj", And "Tile+004+004.gltf" file is created. qq 20161206111316 Tile+004+004.zip

lilleyse commented 7 years ago

Fixed in #49

Lighting should be improved for models without normals.