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

Internal Error: SFA had too few materials - please re-generate #913

Open artemisia opened 5 years ago

artemisia commented 5 years ago

hey, I encountered this problem. was there any more detailed description about it?

my sceneform plugin version is 'classpath 'com.google.ar.sceneform:plugin:1.10.0''

{ animations: [ { clips: [ { name: 'Take 001', runtime_name: 'bili_model', }, ], path: 'sampledata/models/p2.fbx', }, ], materials: [ { name: '08 - Default', parameters: [ { baseColor: [ 0.35686299999999999, 0.60392199999999996, 0.35686299999999999, 1, ], }, { baseColorMap: null, }, { normalMap: null, }, { interpolatedColor: null, }, { metallic: 0, }, { metallicMap: null, }, { roughness: 1, }, { roughnessMap: null, }, { opacity: null, }, ], source: 'build/sceneform_sdk/default_materials/fbx_material.sfm', }, ], model: { attributes: [ 'Position', 'TexCoord', 'Orientation', 'BoneIndices', 'BoneWeights', ], collision: {}, file: 'sampledata/models/p2.fbx', name: 'bili_model', recenter: 'root', render_priority: 4, }, version: '0.54:1', }

artemisia commented 5 years ago

additional information, the fbx model is loaded successfully in Unity3D, so maybe it was a bug in sceneform plugin?

p2.fbx.zip

Dosssik commented 5 years ago

Hi there! Make sure you use the same version for sceneform plugin AND for sceneform/ar dependencies in your app. If you converted your models on plugin 1.10.0 and try to use it in runtime with sceneform v 1.12.0 it will lead to crash. More details in #902