Aus öffentlichen Paketdaten erstellte Orientierung.
Der arcore_flutter_plugin ist ein Flutter-Paket, das Entwicklern ermöglicht, auf Android-Geräten mit dem ARCore SDK von Google Augmented-Reality-(AR)-Erfahrungen zu erstellen. Er bietet eine Brücke zwischen Flutter und ARCore und ermöglicht die Integration von 3D-Inhalten, Bewegungstracking und Umgebungserkennung in Flutter-Anwendungen. Speziell für Android entwickelt, unterstützt der Plugin Funktionen wie Flächenerkennung, Lichtschätzung und Objektankern. Entwickler können dieses Werkzeug nutzen, um immersive AR-Apps für Spiele, Bildung, Einzelhandel und mehr zu erstellen. Der Plugin ist Open Source und wird aktiv von der Community gepflegt.
Anwendungsfälle
AR-Spiele erstellen
Interaktive Produktvisualisierungen erstellen
Entwicklung von Bildungs-AR-Tools
Verbesserung von Einzelhandels-Einkaufserlebnissen
Implementierung von AR-Navigationshilfen
Hauptmerkmale
ARCore SDK-Integration
Ebenen- und Flächenerkennung
Bewegungstracking
Lichtschätzung
3D-Objektankern
Geeignet für
Nur für Android AR-Entwickler
Flutter-Entwickler, die AR erkunden
Ersteller von Bildungs-Apps
Einzelhandels- und E-Commerce-Plattformen
Hinweise
Beschränkt auf die Android-Plattform
Erfordert kompatible Hardware
Möglicherweise ist zusätzliche Einrichtung für optimale Leistung erforderlich
Abhängig von der Verfügbarkeit von ARCore auf dem Gerät
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
Add the Sceneform library to your app's build.gradle file:
android {
// Sceneform libraries use language constructs from Java 8.// Add these compile options if targeting minSdkVersion < 26.
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
dependencies {
…
// Provides ArFragment, and other UX resources.
implementation 'com.google.ar.sceneform.ux:sceneform-ux:1.8.0'// Alternatively, use ArSceneView without the UX dependency.
implementation 'com.google.ar.sceneform:core:1.8.0'
}
There are a total of 13 classes provided by this plugin until May 2020.
ArCoreView
ArCoreController
ArCoreFaceView
ArCoreFaceContrller
ArCoreSphere
ArCoreCylinder
ArCoreCube
ArCoreNode
ArCoeMaterial
ArCoreHitTestResult
ArCoreRotatingNode
ArCorePlane
ArCoreReferenceNode
ArCoreView
This class returns the view type. There are two types of views in it.
AUGMENTEDFACESTANDARDVIEW
There are 4 properties in it:
onArCoreViewCreated
enableTapRecoginzer
enableUpdateListener
type
onArCoreViewCreated
This property takes a ArCoreController.
enableTapRecoginzer
Initially, set to false. It is used as an argument by the MethodChannel.
enableUpdateListener
Initially, set to false. It is used as an argument by the MethodChannel.
type
It is a view type, it is either AUGMENTEDFACE, STANDARDVIEW*. It is set to STANDARDVIEW by default.
ArCoreController
This controller used to add a ArNode using addArCoreNode function, add a ArCoreNode with ancher using a addArCoreNodeWithAncher function and also remove node using removeNode function.
ArCoreFaceView
It is a stateful widget that returns a ArCoreAndroidView. It has two properties enableAugmentedFaces, onArCoreViewCreated.
Initially, enableAugmentedFaces is set to false.
onArCoreViewCreated takes a function with ArCoreController argument.
ArCoreFaceController
It used dispose and loadMesh method to control the FaceView.
ArCoreSphere
It is ArCoreShape, takes a radius & ArCoreMaterial.
ArCoreCylender
It is ArCoreShape, takes a radius, height, & ArCoreMaterial.
ArCoreCube
It is ArCoreShape, takes a size i.e. Vector3 & ArCoreMaterial.
ArCoreNode
This widget is used to provide the position, shape, scale, rotation, name.
ArCoreMaterial
It is used to describe the outlook of the virtual object created by the user.
It has color,textureBytes, metallic, roughness, reflection.
ArCoreRotatingNode
It is an ArCoreNode with a degreesPerSecondproperty which is a double value.
ArCorePlane
It takes the x, y coordinate of the plane, ArCorePose & ArCorePlaneType.
There are three types of plane:
HORIZONTAL_UPWARD_FACING
HORIZONTAL_DOWNWARD_FACING
VERTICAL
ArCoreReferenceNode
It is ArCoreNode, it has all the properties that the ArCoreNode has also it has objectUrl and object3DFileName.