sceneform-android-sdk icon indicating copy to clipboard operation
sceneform-android-sdk copied to clipboard

can not converter obj to sfb ?

Open scolar opened this issue 8 years ago • 2 comments

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

scolar avatar Jun 20 '18 05:06 scolar

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.

hcjung2000 avatar Jun 21 '18 04:06 hcjung2000

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

claywilkinson avatar Jun 21 '18 17:06 claywilkinson