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

SFB back-compatibility broken after update to 1.12 version #902

Open Dosssik opened 5 years ago

Dosssik commented 5 years ago

Hi there! Recently we found out that .sfb models converted (from .fbx) by plugin converter version 1.11 no more work correctly after update to Sceneform SDK version 1.12 - app crashes with Filament panic:

E/Filament: Panic
in filament::Material *filament::Material::Builder::build(filament::Engine &):86
reason: Material version mismatch. Expected 3 but received 1.

I found a couple of similar issues - #877 & #726 & #709 and more, but without attention from Sceneform team, unfortunately.

Actually it is not a big deal to reconvert models with new version's toolchain if the application delivers models in the APK-file, but it is a huge problem if the application downloaded the model from the server and use it from the cache. In that case migration from the old version to new one is complicated, and could harm user experience.

Is it possible to have back-compatibility for models between minor SDK releases? If no, could be great to warn developers about broken compatibility in release notes and provide some API to check if model compatible with current SDK version. If we could check it programmatically - we could make migrations at least... Now it's just runtime crash.

dementia2029 commented 5 years ago

Same here. Tired of reconverting thousands of models.

agGitHub commented 4 years ago

Same here. Any solution ?