SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Downloaden Sie, um offline zu lesen
Augmented Reality 
with Unity 
Allan Davis
What is AR 
• AR or Augmented Reality is all about bring the 
virtual world into the real one.
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.
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
Download Vuforia 
• Go to http://developer.vuforia.com 
• Select Download 
• Select the Unity package
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.
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
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
Create the Unity Project 
• Open Unity 
• Name the project 
AtlCodeCamp 
• Click Create Project
Setup Project for Source 
Control 
• Select Edit -> 
Project Settings -> 
Editor 
• Change Version 
Control mode to 
Visible Meta files 
• Change Asset 
Serialization to 
Force Text
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
Install Target DB Package 
• Repeat the steps for 
Importing the Vuforia 
package 
• This time select the 
Target DB you 
downloaded and click 
import
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
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
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.
Build for device 
• Select Edit -> Build 
Settings 
• Click on iOS 
• Click on Switch Platform 
• Click Build 
• Name the Location to store 
the Xcode Project
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
Open up Xcode and build to 
the Device 
• Double click the 
xcodeproj file and click 
run
Resources 
• http://developer.vuforia.com 
• Developing AR Games for iOS and Android by 
Dominic Cushnan and Hassan El Habbak 
!
Questions?

Weitere ähnliche Inhalte

Mehr von Allan Davis

Flutter game development
Flutter game developmentFlutter game development
Flutter game developmentAllan Davis
 
Vr unity cardboard
Vr unity cardboardVr unity cardboard
Vr unity cardboardAllan Davis
 
Continuous Integration for IOS Apps
Continuous Integration for IOS AppsContinuous Integration for IOS Apps
Continuous Integration for IOS AppsAllan Davis
 
Cross Platform Mobile Game Development
Cross Platform Mobile Game DevelopmentCross Platform Mobile Game Development
Cross Platform Mobile Game DevelopmentAllan Davis
 
Mobilecity:Android Introduction
Mobilecity:Android IntroductionMobilecity:Android Introduction
Mobilecity:Android IntroductionAllan Davis
 
MobileCity:Core Data
MobileCity:Core DataMobileCity:Core Data
MobileCity:Core DataAllan Davis
 
MobileCity: UI UX Design
MobileCity: UI UX DesignMobileCity: UI UX Design
MobileCity: UI UX DesignAllan Davis
 
Coocoo for Cocoapods
Coocoo for CocoapodsCoocoo for Cocoapods
Coocoo for CocoapodsAllan Davis
 
MobileCity: Overview of ObjectiveC
MobileCity: Overview of ObjectiveCMobileCity: Overview of ObjectiveC
MobileCity: Overview of ObjectiveCAllan Davis
 
MobileCity:Introduction to IOS
MobileCity:Introduction to IOSMobileCity:Introduction to IOS
MobileCity:Introduction to IOSAllan Davis
 

Mehr von Allan Davis (12)

Flutter game development
Flutter game developmentFlutter game development
Flutter game development
 
Vr unity cardboard
Vr unity cardboardVr unity cardboard
Vr unity cardboard
 
Continuous Integration for IOS Apps
Continuous Integration for IOS AppsContinuous Integration for IOS Apps
Continuous Integration for IOS Apps
 
Cross Platform Mobile Game Development
Cross Platform Mobile Game DevelopmentCross Platform Mobile Game Development
Cross Platform Mobile Game Development
 
Mobilecity:Android Introduction
Mobilecity:Android IntroductionMobilecity:Android Introduction
Mobilecity:Android Introduction
 
MobileCity:Core Data
MobileCity:Core DataMobileCity:Core Data
MobileCity:Core Data
 
MobileCity: UI UX Design
MobileCity: UI UX DesignMobileCity: UI UX Design
MobileCity: UI UX Design
 
Coocoo for Cocoapods
Coocoo for CocoapodsCoocoo for Cocoapods
Coocoo for Cocoapods
 
MobileCity: Overview of ObjectiveC
MobileCity: Overview of ObjectiveCMobileCity: Overview of ObjectiveC
MobileCity: Overview of ObjectiveC
 
MobileCity:Introduction to IOS
MobileCity:Introduction to IOSMobileCity:Introduction to IOS
MobileCity:Introduction to IOS
 
Generators
GeneratorsGenerators
Generators
 
Django agenda
Django agendaDjango agenda
Django agenda
 

Kürzlich hochgeladen

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 

Kürzlich hochgeladen (20)

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Augmented reality with unity

  • 1. Augmented Reality with Unity Allan Davis
  • 2.
  • 3. What is AR • AR or Augmented Reality is all about bring the virtual world into the real one.
  • 4. 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.
  • 5. 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
  • 6. Download Vuforia • Go to http://developer.vuforia.com • Select Download • Select the Unity package
  • 7. 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.
  • 8. 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
  • 9. 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
  • 10. Create the Unity Project • Open Unity • Name the project AtlCodeCamp • Click Create Project
  • 11. Setup Project for Source Control • Select Edit -> Project Settings -> Editor • Change Version Control mode to Visible Meta files • Change Asset Serialization to Force Text
  • 12. 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
  • 13. Install Target DB Package • Repeat the steps for Importing the Vuforia package • This time select the Target DB you downloaded and click import
  • 14. 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
  • 15. 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
  • 16. 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.
  • 17. Build for device • Select Edit -> Build Settings • Click on iOS • Click on Switch Platform • Click Build • Name the Location to store the Xcode Project
  • 18. 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
  • 19. Open up Xcode and build to the Device • Double click the xcodeproj file and click run
  • 20. Resources • http://developer.vuforia.com • Developing AR Games for iOS and Android by Dominic Cushnan and Hassan El Habbak !