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

Download .sfb and .obj files from cloud and load the model runtime? #441

Closed yjoo9317 closed 5 years ago

yjoo9317 commented 5 years ago

The requirement that I have is

If I am using obj file (not glTF or glb), then I need to convert to sfb and load the model. Seems like sfb holds the reference to the obj file in order to render the model and that reference probably would be generated when we convert the obj file via the plugin tool.

What we want to do is that convert several obj files to sfb files and zip them up and put it into cloud. Then later the app at its first run will try to download the zip file and unzip into local directory.

Then can we load the model?

bobekos commented 5 years ago

Sure you need only the sfb file. The sfb has no reference to the original model. The sfb contains all needed data to render the object like (meshes, textures etc.).

yjoo9317 commented 5 years ago

Thanks. Bobek.. Ok then, somehow it didn't work for me when I just tried to use .sfb file only. I will try again later.

On Wed, Nov 28, 2018 at 12:55 AM Bobek Bobekos notifications@github.com wrote:

Sure you need only the sfb file. The sfb has no reference to the original model. The sfb contains all needed data to render the object like (meshes, textures etc.).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/google-ar/sceneform-android-sdk/issues/441#issuecomment-442368858, or mute the thread https://github.com/notifications/unsubscribe-auth/AUCtoUN7jmkx1357DvJDiJqqtsSREnFAks5uzk9ugaJpZM4Y2d-o .

ishaang10 commented 5 years ago

is your issue fixed??