CariusLars / ar_flutter_plugin

Flutter Plugin for AR (Augmented Reality) - Supports ARKit on iOS and ARCore on Android devices
MIT License
318 stars 229 forks source link

Camera shake prompt never goes away #112

Open emptyopen opened 2 years ago

emptyopen commented 2 years ago

I've tried a number of examples for getting started with AR in flutter, and I am able to occasionally see the RGB axis hovering space, pretty consistently. It does shift locations occasionally.

However, the prompt to move the camera around in space does not go away. I believe I found one example at one point where when used had the prompt go away in a couple seconds, but I'd have to dig for it. I thought I might ask here to see if I'm missing something basic that's causing this issue.

I have tried moving the camera in all different directions, rotations, axis, speeds. Nothing works.

storzi commented 2 years ago

For me the camera shake wents away once planes have been detected. After setting the Planedetectionmode this worked for me in all examples I tried. When creating your ARView there is a key for that. Something like that:

ARView( onARViewCreated: onARViewCreated, planeDetectionConfig: PlaneDetectionConfig.horizontalAndVertical, )