Skip to content

Example of AR support on MapMint4ME

Aditya Chondke edited this page Aug 25, 2019 · 38 revisions

Augmented Reality Support to MapMint4ME Example:

The first thing that we need to make sure before using any AR feature on a mobile device is the support of ARCore library on the device. There are a limited number of devices presently with ARCore support here is a list of ARCore Supported Devices. Understanding the working and develop using ARCore some Fundamental concepts of ARCore must be studied. ARCore enables experiences that can make virtual content appear to rest on real surfaces or be attached to real-world locations. If the device doesn't have an ARCore support then the app can be tested through Android Emulator in Android Studio. There are a few basic requirements and steps to add AR support to Android Emulator

There are 3 new Augmented Reality functionalities added to MapMint4ME following is an example:

Cloud Anchor:

Cloud Anchors gives you the ability to create AR apps that share a common frame-of-reference, enabling multiple users to place virtual content in the same real-world location. Cloud Anchor uses Firebase to store references of the anchor id generated. The Anchor Id's are long and impossible to remember so an anchor room code is generated for each anchor id and the user just have remember the anchor

Open Edit option on the home page of MapMint4ME

Select Cloud Anchor Button to launch CloudAnchor activity:

It detects the surface and shows a dotted pattern over the surface detected.

Tap on the screen to place an object over the plane and generate cloud Anchor Id:

Cloud Anchor generated and shown as Toast and stored to Google Firebase:

To Resolve Saved Anchor:

To resolve the saved anchor enter Anchor room code on the edittext at the right top corner of the screen and click resolve button. If the Anchor room code is available over the Firebase then it's loaded else an error toast is shown

Cloud Anchor Video Link:

Here are video link tutorial of using Cloud Anchor Creating Anchor and Resolving Anchor

AR Drawing:

AR Drawing allows the user to draw white lines in 3d space. Open AR Drawing by clicking the button in the Edit window.

### Tap on the clear icon to clean everything drawn from the start of session and click on undo to remove one step