augmented reality with unity

21
Augmented Reality with Unity Allan Davis

Upload: allan-davis

Post on 02-Dec-2014

169 views

Category:

Technology


1 download

DESCRIPTION

Have you ever wanted to bring a character out of your game and hang out with them? This seminar will introduce augmented reality, and explain how to achieve your wish utilizing powerful but simple tools. Using free license software, Vuforia and Unity 3D, we can combine two technologies to produce amazing results. Ready to visit with your character?

TRANSCRIPT

Page 1: Augmented reality with unity

Augmented Reality with Unity

Allan Davis

Page 2: Augmented reality with unity
Page 3: Augmented reality with unity

What is AR

• AR or Augmented Reality is all about bring the virtual world into the real one.

Page 4: Augmented reality with unity

What can I do with AR

• Take a Picture with a Video Game Character

• Demo a product in home before buying.

• Augment a Catalog shopping experience.

Page 5: Augmented reality with unity

Let's Create an AR App• Download the SDK from

developer.vuforia.com

• Define a target

• Open Unity

• Create a Project

• Add the Vuforia SDK to Project

• Add the Target Assets to the project.

• Add Asset to display on Scene

• Run the App

Page 6: Augmented reality with unity

Download Vuforia• Go to http://developer.vuforia.com • Select Download • Select the Unity package

Page 7: Augmented reality with unity

Define Targets

• Click on the Target Manager Link on the Navigation bar on the Vuforia site.

• Click Create database

• Give it a name such as “AtlCodeCamp”

• Click on the database we just created.

Page 8: Augmented reality with unity

Add Image to Target DB• Click the Add Target button

• Enter a name

• Select Single Image

• Enter the width of the image

• Select the file to upload

• Click the Add button

Page 9: Augmented reality with unity

Download the Target DB• Click the Select All Link

• Click the Download Selected Targets button

• Select the Unity package

• Click the create button

• Select the location of where you want the file

Page 10: Augmented reality with unity

Create the Unity Project

• Open Unity

• Name the project AtlCodeCamp

• Click Create Project

Page 11: Augmented reality with unity

Setup Project for Source Control

• Select Edit -> Project Settings -> Editor

• Change Version Control mode to Visible Meta files

• Change Asset Serialization to Force Text

Page 12: Augmented reality with unity

Install the Vuforia package• Select Assets ->

Import Package -> Custom Package

• Select the Vuforia package you downloaded

• Click Open

• When the Import dialog appears click import

Page 13: Augmented reality with unity

Install Target DB Package

• Repeat the steps for Importing the Vuforia package

• This time select the Target DB you downloaded and click import

Page 14: Augmented reality with unity

Setup AR Camera• Create a new Scene.

• Save that scene with the name AR.unity

• Expand the Qualcomm directory

• From the Prefabs directory drag the ARCamera to the Hierarchy window

• You can delete the Main Camera

Page 15: Augmented reality with unity

Configure the ARCamera• With the ARCamera Selected,

Scroll the Inspector down to the Data Set Load Behaviour

• Click the check box next to the Load Data Set <Name>

• Click the Activate checkbox that appears when the Data Set box is checked

Page 16: Augmented reality with unity

Define the Image Target • From the Qualcomm -> Perfabs

directory, Drag the Image Target into the scene.

• Select the Image Target in the Hierarchy

• Scroll down to the Image Target Behaviour

• Change the Data Set to the name of the Dataset you installed

• Change the Image Target to the name of the picture you want to find.

Page 17: Augmented reality with unity

Build for device• Select Edit -> Build

Settings

• Click on iOS

• Click on Switch Platform

• Click Build

• Name the Location to store the Xcode Project

Page 18: Augmented reality with unity

Adjust the Player Settings• Click on the Player Setting

button at the bottom of the Build Settings window

• Change the Compay name

• Set the app icon

• Set other things focused to that platform

Page 19: Augmented reality with unity

Open up Xcode and build to the Device

• Double click the xcodeproj file and click run

Page 20: Augmented reality with unity

Resources

• http://developer.vuforia.com

• Developing AR Games for iOS and Android by Dominic Cushnan and Hassan El Habbak !

Page 21: Augmented reality with unity

Questions?