EricNeid / arcore-location-extension

This library provides utilities for ARCore to place ar markers on geo locations.
MIT License
14 stars 1 forks source link

Markers are not renered after sceneView.arFrame?.camera?.trackingState == PAUSED #3

Open kustraslawomir opened 4 years ago

kustraslawomir commented 4 years ago

Don't You know why markers are not visible after arFrame get's:

Some logs:

` Tracking state: PAUSED

Refresh scene if ready. (Current state: TRACKING)

rememberState

MARKERS should refresh marker.

refreshDynamicMarker

detachMarker

attachDynamicMarker

add child to ar scene view: 52.219981, 20.965329, TRACKING

MARKERS should refresh marker.

refreshDynamicMarker

detachMarker

attachDynamicMarker

add child to ar scene view: 52.245147, 20.993188, TRACKING`

kustraslawomir commented 4 years ago

D/TimberLog$Companion: Tracking state: PAUSED D/TimberLog$Companion: Tracking state: PAUSED D/TimberLog$Companion: Tracking state: PAUSED I/native: ba_initialization.cc:590 Deterministic initialization W/native: ba_initialization.cc:129 BA initialization failed: Image has too few landmarks. E/native: vio_initializer.cc:561 Initializer's BA failed to produce a valid output! D/TimberLog$Companion: Tracking state: PAUSED D/TimberLog$Companion: Tracking state: PAUSED I/native: ba_initialization.cc:590 Deterministic initialization W/native: ba_initialization.cc:129 BA initialization failed: Image has too few landmarks. E/native: vio_initializer.cc:561 Initializer's BA failed to produce a valid output! D/TimberLog$Companion: Tracking state: PAUSED I/chatty: uid=10678(com.ultron.ar) identical 1 line D/TimberLog$Companion: Tracking state: PAUSED I/native: ba_initialization.cc:590 Deterministic initialization W/TimberLog$Companion: Extensions bearing: 210.28746 | accuracy: 3 I/native: ba_initialization.cc:170 Intrinsic vector size of the camera 0 is 7 D/TimberLog$Companion: Tracking state: PAUSED I/native: ba_initialization_helpers.h:164 Number of measurements used in BA initialization for temporal landmar I/native: ba_initialization_helpers.h:166 Number of good measurements (i.e., reprojection errors <= 3 pixels) i W/native: map_utils.cc:440 MapManager: Overwriting rolling shutter time from 0.0162963 to 16.296274ms E/native: hit_test.cc:381 generic::internal: No point hit. D/TimberLog$Companion: Refresh scene if ready. (Current state: TRACKING) D/TimberLog$Companion: rememberState D/TimberLog$Companion: MARKERS should refresh marker. D/TimberLog$Companion: refreshDynamicMarker D/TimberLog$Companion: detachMarker I/native: cloud_anchor_manager.cc:457 Anchor Hosting is not configured. D/TimberLog$Companion: attachDynamicMarker D/TimberLog$Companion: attach z: -25.0 rotationRadian: 0.03067748522884076 zRotated: -24.988237 y: 3.306553 W/TimberLog$Companion: attach | add child to ar scene view D/TimberLog$Companion: MARKERS should refresh marker. D/TimberLog$Companion: refreshDynamicMarker D/TimberLog$Companion: detachMarker I/native: cloud_anchor_manager.cc:457 Anchor Hosting is not configured. D/TimberLog$Companion: attachDynamicMarker D/TimberLog$Companion: attach z: -25.0 rotationRadian: -1.270210394563724 zRotated: -7.401998 y: 1.4714098 W/TimberLog$Companion: attach | add child to ar scene view D/TimberLog$Companion: MARKERS should refresh marker. D/TimberLog$Companion: refreshDynamicMarker D/TimberLog$Companion: detachMarker I/native: cloud_anchor_manager.cc:457 Anchor Hosting is not configured. D/TimberLog$Companion: attachDynamicMarker D/TimberLog$Companion: attach z: -25.0 rotationRadian: -0.7190031605767918 zRotated: -18.811567 y: 3.306553 W/TimberLog$Companion: attach | add child to ar scene view D/TimberLog$Companion: MARKERS should refresh marker. D/TimberLog$Companion: refreshDynamicMarker D/TimberLog$Companion: detachMarker I/native: cloud_anchor_manager.cc:457 Anchor Hosting is not configured.

kustraslawomir commented 4 years ago

cloud_anchor_manager.cc:457 Anchor Hosting is not configured.

EricNeid commented 4 years ago

I also encountered this issue, but i did not found the reason. The bug seems to only affect the currently displayed marker. You can still add new markers to the scene and thery are displayed correctly.

kustraslawomir commented 4 years ago

Thanks, so maybe I will try to attach new markers and detach old one, after PAUSE -> TRACKING