Friday, 14 May 2021

How to generate a Sceneform asset at runtime in flutter

I am new to flutter and am currently developing a AR based application. I want to create renderable 3d Sceneform assets at RUNTIME. I know how to define a Sceneform asset in the build.gradle file but that isn't dynamic.

The way to make a 3d sceneform asset in the compilation(app level build.gradle):

sceneform.asset('sampledata/earth.obj',
        'default',
        'sampledata/earth.sfa',
        'src/main/assets/earth_model')

But I want to create a sceneform asset during runtime. I am using arcore_flutter_plugin and Google's AR core with sceneform. I am unable to find any assistance/examples to render a 3d sceneform asset at runtime from firebase storage in flutter. All of the documentations available are for java and kotlin. The purpose of rendering sceneform assets at runtime is to load a .sfb file from the cloud and render it in the app to keep the app lightweight.



from How to generate a Sceneform asset at runtime in flutter

No comments:

Post a Comment