Orientação gerada a partir de informações públicas. Apenas para referência.
O arcore_flutter_plugin é um pacote Flutter que permite aos desenvolvedores criar experiências de realidade aumentada (AR) usando o SDK ARCore do Google em dispositivos Android. Ele fornece uma ponte entre o Flutter e o ARCore, permitindo a integração de conteúdo 3D, rastreamento de movimento e compreensão ambiental em aplicativos Flutter. Projetado especificamente para Android, o plugin oferece recursos como detecção de planos, estimativa de iluminação e ancoragem de objetos. Os desenvolvedores podem aproveitar esta ferramenta para criar aplicativos de AR imersivos para jogos, educação, varejo e muito mais. O plugin é de código aberto e é mantido ativamente pela comunidade.
Casos de uso
Construindo jogos AR
Criando visualizações interativas de produtos
Desenvolvendo ferramentas educacionais de RA
Melhorando experiências de compras no varejo
Implementando auxílios de navegação AR
Principais recursos
Integração do ARCore SDK
Detecção de plano e superfície
rastreamento de movimento
Estimativa de luz
Ancoragem de objeto 3D
Indicado para
Desenvolvedores AR exclusivos para Android
Desenvolvedores Flutter explorando AR
Criadores de aplicativos educacionais
Plataformas de varejo e comércio eletrônico
Considerações
Limitado à plataforma Android
Requer hardware compatível
Pode ser necessário configuração adicional para desempenho ótimo
Depende da disponibilidade do ARCore no dispositivo
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
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.