The document discusses using Vuforia with Unity to create augmented reality applications. It provides steps to set up a basic AR scene using Vuforia: 1) install the Vuforia package in Unity and add a development license key, 2) delete the main camera and add a new AR camera along with an image target, 3) drag 3D objects under the image target to place them in the scene. The document also covers deploying builds to Android and iOS, and lists additional resources for learning Unity, Vuforia, and AR development.
6. What you will learn
● Mobile AR
○ Using Vuforia, detect an image and place an object on top of the image.
○ Animate the object placed on top of the image.
○ Making an Android application based on vuforia
6
Unity 3D features
7. Vuforia features
● The World’s Most Widely Deployed AR Engine.
● Allows developers to quickly prototype AR concepts.
● Supports Android, iOS, Windows, tablets, and eyewear.
● API Support for Unity(C#), C++ and Java
● Very Well Documented.
7
Vuforia features
12. 12
vuforia
Vuforia Setup
● Open Package manager and Search for Vuforia
● Install Vuforia Package & Accept Licence
● Go to Vuforia Config. & enter dev key
● Delete Main Camera
● Create new AR camera. Create Image Target and drag it
under AR camera.
● Create a cube and drag it under Image Target.
● Select an Image target
● Play!
13. 13
vuforia
Vuforia Setup
● Open Package manager and Search for Vuforia
● Install Vuforia Package & Accept Licence
● Go to Vuforia Config. & enter dev key
● Delete Main Camera
● Create new AR camera. Create Image Target and drag it
under AR camera.
● Create a cube and drag it under Image Target.
● Select an Image target
● Play!
14. 14
vuforia
Vuforia Setup
● Open Package manager and Search for Vuforia
● Install Vuforia Package & Accept Licence
● Go to Vuforia Config. & enter dev key
● Delete Main Camera
● Create new AR camera. Create Image Target and drag it
under AR camera.
● Create a cube and drag it under Image Target.
● Select an Image target
● Play!
15. 15
vuforia
Vuforia Setup
● Open Package manager and Search for Vuforia
● Install Vuforia Package & Accept Licence
● Go to Vuforia Config. & enter dev key
● Delete Main Camera
● Create new AR camera. Create Image Target and drag it
under AR camera.
● Create a cube and drag it under Image Target.
● Select an Image target
● Play!
16. 16
vuforia
● Open Package manager and Search for Vuforia
● Install Vuforia Package & Accept Licence
● Go to Vuforia Config. & enter dev key
● Delete Main Camera
● Create new AR camera. Create Image Target and drag it
under AR camera.
● Create a cube and drag it under Image Target.
● Select an Image target
● Play!
Vuforia Setup
17. 17
vuforia
Vuforia Setup
● Open Package manager and Search for Vuforia
● Install Vuforia Package & Accept Licence
● Go to Vuforia Config. & enter dev key
● Delete Main Camera
● Create new AR camera. Create Image Target and drag it
under AR camera.
● Create a cube and drag it under Image Target.
● Select an Image target
● Play!
18. 18
vuforia
Vuforia Setup
● Open Package manager and Search for Vuforia
● Install Vuforia Package & Accept Licence
● Go to Vuforia Config. & enter dev key
● Delete Main Camera
● Create new AR camera. Create Image Target and drag it
under AR camera.
● Create a cube and drag it under Image Target.
● Select an Image target
● Play!
19. 19
vuforia
Vuforia Setup
● Open Package manager and Search for Vuforia
● Install Vuforia Package & Accept Licence
● Go to Vuforia Config. & enter dev key
● Delete Main Camera
● Create new AR camera. Create Image Target and drag it
under AR camera.
● Create a cube and drag it under Image Target.
● Select an Image target
● Play!
21. 21
Making a Simple Scene
● Assets -> Create -> C# script
● Edit script using Mono/Visual Studio
● Drag script onto Game Object
Add Script
22. 22
Making a Simple Scene
● GameObject Rotation
Example C# Script
using UnityEngine;
using System.Collections;
public class NewBehaviourScript: MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
this.gameObject.transform.Rotate(Vector3.up*10);
}
}
23. Scripting C# Unity 3D
● void Awake():
○ Is called when the first scene is loaded and the gameobject is active
● void Start():
○ Called on first frame update
● void FixedUpdate():
○ Called before physics calculations are made
● void Update():
○ Called every frame before rendering
● void LateUpdate():
○ Once per frame after update finished
23
Unity 3D features
26. 26
vuforia
Android
● Install Android module from Unity Hub
● File -> Build Settings -> Switch to Android platform
● Go to player settings ->Other settings -> remove Vulkan
Graphics API
● In Build settings click add open scenes.
● Connect your android device(Developer mode enabled)
via USB and click build and run.