Augmented reality (AR) allows computer-generated virtual objects to be superimposed onto the real world to enhance the user's perception of reality. Hardware to experience AR, such as a head-mounted display (HMD) or a handheld mobile device, is needed to experience AR. HMD-based AR experiences generally require expensive hardware, and thus they are less scalable than hand-held smartphone-based AR experiences.
The AR experience typically requires a camera and a display device to capture the real-world environment and to overlay the digital content onto it in real-time simultaneously. AR has a variety of applications in gaming, entertainment, education, advertising, and e-commerce.
Several mainstream industries are employing augmented reality. It's one of the prime drivers of the internet of the future: Web 3. Through advanced 3D AR visualizations, it is now possible to imagine how a product would look in real- life before purchasing it. Most top brands are harnessing AR to enhance their customer experience. Some of the most widely used AR applications are as follows:
IKEA Place: This app lets shoppers project additional items in their real-world homes, allowing users to see whether the new items will suit their needs. The app can be used to virtually decorate a room with IKEA furniture before purchasing items.
Snapchat: This is one of the most popular AR applications that let users alter their appearance and also add virtual objects to their environment.
Apple's Facetime: Apple's Face Time is another popular application that harnesses AR to alter the facial appearance of users.
PokemonGO: This is a popular AR game that quickly became a global phenomenon. The players use their mobile devices to explore their surroundings and look for cute collectible 3D Pokémons. It's a location-based AR experience that uses GPS and the camera of the player's device to create an augmented reality experience in which players can see and interact with Pokémons. It encourages its users to get outside, exercise, and explore their local communities.
Google Translate: This popular Google product uses AR to translate text in real time using a smartphone's camera.
MeasureKit: It is an app that allows us to measure objects in the real world using our smartphone's camera.
There are two major categories of AR technology.
Marker-based: This AR experience only begins when the marker (an image or an object) is detected.
Markerless AR: This AR experience is not subject to the detection of the marker.
The Markerless AR further has four subcategories:
Overlay AR: Used to overlay additional information onto real-world objects.
Contour-based AR (or outline-AR): Adds additional information to facilitate the user with a task. An example could be an AR application highlighting the boundaries of the roads for the driver, thus making them more prominent in an underground tunnel with poor lighting conditions.
Projection-based AR: Involves projecting light onto flat surfaces to create 3D imagery.
Location-based AR: The AR content is fixed with a specific physical location. The user must be at a particular spot to launch the AR experience.
These are exciting times for AR developers due to the massive adoption of AR technologies globally, so it’s important to get started with learning AR development. This blog will provide essential guidance to program your first basic markerless AR experience and run it on your Android phone. The following are the steps that will need get the app running:
From within the Unity Hub, install the latest Unity LTS version
Enable Android support during installation
Create a new project by clicking the "New project" button
Select the AR core project
Once the project is loads, you need to go to "File">"Build Settings.\"
Select Android and press 'Switch Platform' as shown in Slide 1 below.
Press the "Player Settings" button in the same window (Slide 2) and fill in change the following:
Now add a 3D model such as the Cube in the scene (Slide 3).
Build and run ("File">"Build And Run") the app on your device. Ensure that you:
Connect your Android phone to your machine via an Android cable
Enable the developer mode on your Android phone. (Slide 4)
Enable the USB debugging on the phone (Slide 5)
Move the camera around, and you should be able to see an AR object (the cube) in the scene (Slide 6)
Permit the AR application to access the camera (Slide 6)
If you enjoyed building your first AR application, there are several specialized courses that will bring you up to speed with the latest AR, VR, and MR development tools and techniques. Check out our course catalog for more fun AR and VR learning products! Or you can start learning about data science and machine learning with Educative in order to transform digital environments.
Free Resources