sceneform-android-sdk icon indicating copy to clipboard operation
sceneform-android-sdk copied to clipboard

I want the model to be downloaded from the server,

Open Terran-Marine opened this issue 8 years ago • 2 comments

The requirement is that the model be downloaded from the server, not preset in APK, How do we solve this,thank.

Terran-Marine avatar Jun 12 '18 04:06 Terran-Marine

@ToadPrincess You can create your model using the URI of the model in server.

For example: ModelRenderable.builder().setSource(this, Uri.parse("http://www.example.com/model.sfb")).build()

You can read more about this build methods here.

peronecode avatar Jun 12 '18 13:06 peronecode

It turned out that only one SFB file was needed.I saw the address of the model file in the sfb file, so I think I still need the file under sampledata. Thank you

Terran-Marine avatar Jun 13 '18 02:06 Terran-Marine