Explore scenes in flyover AR
Use augmented reality (AR) to quickly explore a scene more naturally than you could with a touch or mouse interface.
Use case
You can use AR to drop into an area and visualize information, like a proposed development or a historical model of a city. You could use flyover AR to explore a city by walking through it virtually.
How to use the sample
When you open the sample, you'll be viewing the scene from above. You can walk around, using your device as a window into the scene. Try moving vertically to get closer to the ground.
How it works
- Create the
ArcGISARView
and add it to the view. - Create the scene, add content, then display it.
- When the content you want to view loads, get its center point and use that to create the origin camera for the AR view. Note that the altitude should be set so that all scene content is visible. For a city, a good value might be a bit higher than the tallest building. The sample uses 250 meters in the absence of tall buildings in the sample data.
- Set the translation factor so that you can move through the scene easily. With a translation factor of 1000, you will move 1000 feet in the scene for every foot you move the physical device.
- Set the space effect to
Enums.SpaceEffectStars
and atmosphere effect toEnums.AtmosphereEffectRealistic
to create an immersive experience.
Relevant API
- ArcGISARView
- SceneView
About the data
This sample uses a sample integrated mesh layer provided by Vricon. The integrated mesh layer shows an area around the US-Mexico border.
The world elevation service is used to show terrain while the integrated mesh layer loads.
Additional information
Flyover AR is one of three main patterns for working with geographic information in augmented reality. Augmented reality is made possible with the ArcGIS Maps SDK for Qt Toolkit. See Augmented reality in the guide for more information about augmented reality and adding it to your app.
Clone the toolkit repo - Required for AR samples
Change directory into your locally cloned samples repo and then use git clone
to get a copy of the ArcGIS Maps SDK for Qt Toolkit.
# Change directory to the clone of the samples repository
# Clone the toolkit repository into the current directory in terminal
$ cd /arcgis-maps-samples-qt
$ git clone https://github.com/Esri/arcgis-maps-sdk-toolkit-qt.git
Cloning the toolkit in this location will allow for the samples to automatically pick it up. If you wish to place the toolkit in another location, you will need to update the samples project file accordingly to locate the necessary .pri file.
For more information on the Augmented Reality (AR) toolkit, including the steps required to deploy to Android and iOS, see the AR README on GitHub.
Tags
augmented reality, bird's eye, birds-eye-view, fly over, flyover, mixed reality, translation factor