We are working on a world scale AR app that leverages the device location and heading to place objects in the streets, so that they are correctly and stably anchored to certain locations.
Since the geo-tracking imagery is only available in certain cities and areas, we are trying to figure out how to fallback when geo-tracking is not available as the device move away, to still retain good AR camera accuracy. We might need to come up with some algorithm using the device GPS, to line up the ARCamera with our objects.
Question: Does geo-tracking always provide greater than or equal to the accuracy of world tracking, for a GPS outdoor AR experience?
If so, we can simply use the ARGeoTrackingConfiguration
for the entire time, and rely on the ARView keeping itself aligned. Otherwise, we need to switch between it and ARWorldTrackingConfiguration
when geo-tracking is not available and/or its accuracy is low, then roll our own algorithm to keep the camera aligned.
Thanks.
Both these configurations are currently supported on iOS only.
ARGeoTrackingConfiguration is primarily used for detecting real world building geometry alongside using GPS information and map data to help localize an experience with respect to a building / outdoor location.
ARWorldTrackingConfiguration on the other hand doesn't depend on GPS, MapData or building geometry and works both indoors and outdoors. It primarily helps with understanding a space for overlaying virtual content (i.e. placing 3D models) on top of real world surfaces / objects.