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

Filament <> Sceneform #329

Open michaelvogt opened 6 years ago

michaelvogt commented 6 years ago

The answer to this question might be obvious, but please allow me to ask anyway.

I visited the filament repository again after a while, and saw that the project is pretty active and has quite a bit of stars. Excellent.

I understand that Sceneform uses filament as the renderer behind the scenes (pops up in some logcats here and there). Now I wonder, if I can replace the filament version shipped with Sceneform with an experimental one, in case I'd like to try out a new feature provided there.

Can this be done by just exclude filament from the Sceneform dependency and provide my own one, or is there more to it?

romainguy commented 6 years ago

You should be able to just replace the Filament bits in the Sceneform AAR with one compiled yourself. I would recommend rebuilding your custom materials when doing this.

michaelvogt commented 6 years ago

With 'rebuilding your custom materials', you mean delete the .sfb files and let them be recreated?

tpsiaki commented 6 years ago

You should be able to crack open com.google.sceneform.plugin jar, and replace the matc version(s) in there with your new matc, then rebuild.

romainguy commented 6 years ago

@michaelvogt Yes, but you need a new version of the matc shader compiler too. See above

michaelvogt commented 6 years ago

Great, thanks.

When you (plural) could provide an 'early access' (or so) sceneform plugin that contains always the latest matc, that would make this process easier.