google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 604 forks source link

can not converter obj to sfb ? #125

Open scolar opened 6 years ago

scolar commented 6 years ago

i use google-ar-asset-converter converter obj to sfb,the issue is as follow: 41596015-6f5ca4e0-73fb-11e8-9e50-476abc0be208

hcjung2000 commented 6 years ago

I think your model's mtl file is using same texture twice or more ex)

newmtl Material__306
    Ns 10.0000
    Ni 1.5000
    d 1.0000
    Tr 0.0000
    Tf 1.0000 1.0000 1.0000 
    illum 2
    Ka 0.5880 0.5880 0.5880
    Kd 0.5880 0.5880 0.5880
    Ks 0.0000 0.0000 0.0000
    Ke 0.0000 0.0000 0.0000
    map_Ka ..\2.jpg  <--- like this
    map_Kd ..\2.jpg  <--- like this

Delete "map_Ka ..\2.jpg" will slove the problem like this

newmtl Material__306
    Ns 10.0000
    Ni 1.5000
    d 1.0000
    Tr 0.0000
    Tf 1.0000 1.0000 1.0000 
    illum 2
    Ka 0.5880 0.5880 0.5880
    Kd 0.5880 0.5880 0.5880
    Ks 0.0000 0.0000 0.0000
    Ke 0.0000 0.0000 0.0000
    map_Kd ..\2.jpg

This is a temporary measure. I hope that google-ar-asset-converter supports multiple diffent usages defined for texture.

claywilkinson commented 6 years ago

Thanks for the details and the work-around. I'll pass along the information.