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 files from previous Sceneform version are not compatible #726

Open JL-Vidinoti opened 5 years ago

JL-Vidinoti commented 5 years ago

I have created a library of SFB files that can be downloaded by an application. The SFB files have been created with the Sceneform plugin version 1.6.0. Now I have updated my application with the latest Sceneform version (1.9.0) but my application crashes when loading a SFB file.

The crash error is the following

Filament: Panic
    in filament::Material *filament::Material::Builder::build(filament::Engine &):85
    reason: Material version mismatch. Expected 2 but received 1.

Is this deliberate? Why is the latest version of Sceneform not compatible with earlier SFB files?

This behaviour will make it very hard to maintain applications with the latest Sceneform version.

MrCsabaToth commented 5 years ago

I have this issue as well. But not only the app crashes runtime, but when I try to convert obj to sfa / sfb Android Studio crashes and abruptly quits. The reason for the Studio crash is kind of the same it comes from the Filament Panic. I'm filing an issue: https://github.com/google-ar/sceneform-android-sdk/issues/866

Android Studio 3.5 Google Sceneform Tools (Beta) v1.12.0