Flutter Plugin for AR (Augmented Reality) - Supports ARKit on iOS and ARCore on Android devices
318
stars
229
forks
source link
Unable to render the .glb file from fileSystemAppFolderGLB in IOS but worked in android #131
Open
usamashafiqs opened 1 year ago
Future download3dModel(String fileId) async {
Directory appDocDir = await getApplicationDocumentsDirectory();
String appDocDirPath = appDocDir.path;
final model = await ApiProvider.storage.getFileDownload(
bucketId: ApiConstants.productsModelsBucketId,
fileId: fileId,
);
File('$appDocDirPath/$fileId.glb')
..createSync(recursive: true)
..writeAsBytesSync(model);
}
ARNode newNode = ARNode( type: NodeType.fileSystemAppFolderGLB, uri: '3dmodel.glb', scale: vector.Vector3(10, 10, 10), position: vector.Vector3(0.0, 0.0, 0.0), rotation: vector.Vector4(1.0, 0.0, 0.0, 0.0), );
Debug console not showing any errors