giandifra / arcore_flutter_plugin

Flutter plugin for ARCore SDK, Android platform to build new augmented reality experiences
MIT License
434 stars 281 forks source link

Load .sfb file from Device Storage #67

Open hussamDana92 opened 4 years ago

hussamDana92 commented 4 years ago

Hi I can create .sfb file by using "com.google.ar.sceneform.plugin". So I want to copy these files into my android storage folder.

  arCoreFaceController.loadMesh(
       textureBytes: textureBytes.buffer.asUint8List(),
      skin3DModelFilename: "Sunglasses.sfb",
    );

How can I load the 3D file from my own folder and render them in my app? Thanks

BrutalCoding commented 3 years ago

I was having many issues trying to get sfb to work. It also seemed outdated. You can load local .glb files but I believe those don’t support animations.

I could be mistaken since this is from my memory as it was like a few months ago. So if you don’t require animations and are able to get a .glb file of your 3d model then give that a try.