google-ar / sceneform-android-sdk

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

Error while converting obj to sfb #93

Closed mhdtouban closed 6 years ago

mhdtouban commented 6 years ago

ERROR: Jsonnet Error: [1]: RUNTIME ERROR: Parameter 'roughness' doesn't have any applicable options third_party/arcore/ar/rendercore/converter/data/mat_helpers.jsonnet:(162:5)-(177:24) function third_party/arcore/ar/rendercore/converter/data/mat_helpers.jsonnet:199:23-73 object third_party/arcore/ar/rendercore/converter/data/mat_helpers.jsonnet:203:23-53 object third_party/arcore/ar/rendercore/converter/data/mat_helpers.jsonnet:230:26-51 object std.jsonnet:158:56-67 thunk third_party/arcore/ar/rendercore/converter/data/import_meta_material.jsonnet:(11:19)-(12:44) object During manifestation

Command Line: /AR-Testing/app/build/sceneform_sdk/mac/converter --no_sfb --mat build/sceneform_sdk/default_materials/obj_material.sfm -a --matc AR-Testing/app/build/sceneform_sdk/mac/matc --outdir AR-Testing/app/build/.sfa771261066923969224 sampledata/BANH VONG MIN.obj :app:createAsset-src_47main_47assets_47BANH_32VONG_32MIN FAILED

malik-at-work commented 6 years ago

We have confirmed this issue and have a fix for it internally.

michaelvogt commented 6 years ago

Just tried to convert a model with plugin and sceneform version 1.3. Still showing the same exception.

malik-at-work commented 6 years ago

@michaelvogt can you send me the obj that has this issue.

malik-at-work commented 6 years ago

Tracking this down. It looks like the fix didn't make the 1.3 release train, but is still in our codebase.

tpsiaki commented 6 years ago

This was fixed in our 1.4 release of the Sceneform Gradle plugin. Please update com.google.ar.sceneform:plugin to 1.4.0 in your project build.gradle file and these assets should import correctly.