SlideShare ist ein Scribd-Unternehmen logo
1 von 39
Downloaden Sie, um offline zu lesen
AR with Unity3D
                        Introduction to Augmented Reality
                                       with
                                     Unity3D




Saturday, May 26, 12
Intro

                       • Examples
                        •   Pantalla Global (CCCB)

                        •   Animac

                        •   Salón de Turisme




                AR with Unity3D        26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Koffa@Animac


                                  http://vimeo.com/37868229




                AR with Unity3D        26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
What is AR?

                       • Virtual content overlayed onto the real
                         word
                         • 2D / 3D & audio
                       • Realtime / Live camera view

                AR with Unity3D      26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Detection
                       • Vision based
                        • QR codes
                        • Markers
                        • Real life objects

                       • Location based (GPS, Compass)
                AR with Unity3D      26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Vision Based AR

                       • Tracking
                        • Frame by frame analysis searching for
                            “trackables”
                       • Return position and orientation relative to
                         device


                AR with Unity3D       26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
AR Apps
                       •   Layar
                           •   http://www.layar.com/

                       •   Junaio
                           •   http://www.junaio.com/

                       •   Wikitude
                           •   http://www.wikitude.com/

                       •   Appunta ;-)
                           •   http://appunta.com/


                AR with Unity3D                 26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Use
                       • Arts & Gaming
                       • Advertising
                       • Navigation
                       • Tourism
                       • Education
                       • ... and a lot more
                AR with Unity3D       26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Unity3D Libraries

                       • String
                        •   www.poweredbystring.com




                       • Vuforia (Qualcomm)
                        •   https://developer.qualcomm.com/mobile-development/mobile-
                            technologies/augmented-reality




                AR with Unity3D             26/05/2012 - CatDroid Unity3D II            @aquarioverde

Saturday, May 26, 12
String - Tracking
                       • Framed Markers
                       • Multiple marker detection
                        •   <= 10

                       • Unflexible marker creation
                        •   black border surrounded by a white border
                            necessary


                AR with Unity3D        26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
String - Tracking
                       • Any png

                       • Full marker has to be in camera (>85%)

                       • Markers not in scene
                        •   dificult scaling

                AR with Unity3D          26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Vuforia - Tracking
                       • Image Target
                       • Frame Markers
                       • Simple 3D Objects (Boxes)

                       • More flexible than String on marker
                         creation

                AR with Unity3D      26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Vuforia - Tracking
                       • Multiple Image Targets or Frame Markers
                         •   <= 5

                       • Works if only part of the marker is seen
                       • Markers placed into 3D Scene
                         •   easy scaling

                       • Virtual Buttons
                AR with Unity3D             26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Target Management
                       • Online
                       • ImageTargets
                         •   MultiTargets

                       • jpg & png
                         •   RGB & B&W
                                                                           !
                                                                                        Rich in detail
                                                                                     High in contrast

                       • Scaling (Unity units)                                 No repetitive patterns



                AR with Unity3D         26/05/2012 - CatDroid Unity3D II                  @aquarioverde

Saturday, May 26, 12
Performance

                       • String a little bit faster in detection and
                         tracking


                       • String is more stable

                AR with Unity3D        26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Platform support

                       • Vuforia
                        • Android & iOS

                       • String
                        • iOS
                AR with Unity3D    26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
String - Setup

                       • Download library
                        • Unity3d
                        • iOS
                       • Add to Unity3D project
                       • Add to XCode project
                AR with Unity3D      26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Vuforia - Setup

                       • Download Vuforia library
                        • available in Assets Store
                       • Add to Unity3D Project

                AR with Unity3D      26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Testing
                       • String:
                         •   In-Editor testing using webcam



                       • Vuforia:
                                                                           !   Unity Remote




                         •   No image tracking nor life camera

                         •   Device Only Testing


                AR with Unity3D         26/05/2012 - CatDroid Unity3D II          @aquarioverde

Saturday, May 26, 12
Licensing
                       • Unity / Unity iOS / Unity Android
                        •   https://store.unity3d.com/


                       • String
                        •   Expensive!

                        •   http://www.poweredbystring.com/licensing


                       • Vuforia
                        •   Free!!!



                AR with Unity3D               26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Decision ???




                AR with Unity3D     26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Vuforia



Saturday, May 26, 12
Requirements iOS


                       • Mac OS Snow Leopard & Lion
                       • XCode
                       •   https://ar.qualcomm.at/qdevnet/sdk/ios




                AR with Unity3D                 26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Requirements Android
                       • MS Windows 7 & XP
                        • Linux & Mac OS posssible but not
                              documented
                       • JDK + Eclipse + ADT
                        • Android SDK + NDK
                       •   https://ar.qualcomm.at/qdevnet/sdk/android




                AR with Unity3D                 26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Installation

                       • Download pagackage vuforia-unity-OS-
                         Version.zip and install
                        • base extension & samples

                       • Asset Store
                AR with Unity3D        26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Simple Project
                       •   New project

                       •   Add Vuforia

                       •   Add Dataset (markers)

                       •   Add ARCamera Prefab to scene

                       •   Add ImageTarget Prefab to scene

                           •   Select Dataset and ImageTarget

                       •   Add 3D objects + Light

                       •   Set Load Dataset

                       •   Deploy


                AR with Unity3D                 26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Unity Folder Structure




                AR with Unity3D   26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Hands-On

                       • DroidBalls
                        • Floating spheres in space
                        • Touch to dissappear

                AR with Unity3D      26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Raycasting

                       • Detect 3D object touched on screen
                        • Ray from touched screen point to
                            camera
                        • Detect object collisions

                AR with Unity3D       26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Tracking
                       • ITrackableEventHandler
                        •   OnTrackableStateChanged

                        •   DefaultTrackableEventHandler

                            •     enable/disable rendering



                       • ITrackerEventHandler
                        •   OnTrackablesUpdated

                AR with Unity3D            26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Splash Screen


                       • Display when no marker is detected
                       • Modify ITrackableEventHandler


                AR with Unity3D      26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Virtual Buttons

                       • Hotspots on an ImageTarget
                       • IVirtualButtonEventHandler
                        • OnVirtualButtonPressed
                        • OnVirtualButtonReleased
                       • Can be created at runtime
                AR with Unity3D      26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Problems

                       • Perfomance
                       • Image Recognition
                         •   symmetry / similar elements

                         •   contrast / illumination

                       • Real world sizing
                AR with Unity3D          26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Problems

                       • Fixed camera vs fixed space
                        • Physics!!!
                        • Multiple markers
                           •      center???



                AR with Unity3D               26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Tips & Advices
                       • 3D Models
                        •   < 2K polygons overall

                        •
                        •
                            < 200 polygons/object (draw calls)

                            <= 3 materials/object
                                                                                 !   Device dependent




                       • Animations
                        •   < 30 bones


                       • Use texture sequences
                AR with Unity3D               26/05/2012 - CatDroid Unity3D II             @aquarioverde

Saturday, May 26, 12
Tips & Advices
                       • Attach markers to cardboard
                       • Good lightning but avoid reflections

                       • Disable objects that are not in view

                       • Test using mouse instead of touch
                AR with Unity3D       26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Tips & Advices

                       • Scale correctly from the beginning
                       • Create simple reference objects to map to
                         real world
                        • e.g. cubes

                AR with Unity3D        26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Resources

                       • Unity3D
                         •   http://forum.unity3d.com

                         •   http://answers.unity3d.com


                       • Vuforia Forums
                         •   https://ar.qualcomm.at/qdevnet/forums


                       • String ???
                AR with Unity3D               26/05/2012 - CatDroid Unity3D II   @aquarioverde

Saturday, May 26, 12
Thank you!
                       Andreas Blick   @aquarioverde




Saturday, May 26, 12

Weitere ähnliche Inhalte

Was ist angesagt?

Comp 4010 2021 Lecture1-Introduction to XR
Comp 4010 2021 Lecture1-Introduction to XRComp 4010 2021 Lecture1-Introduction to XR
Comp 4010 2021 Lecture1-Introduction to XRMark Billinghurst
 
2022 COMP4010 Lecture 6: Designing AR Systems
2022 COMP4010 Lecture 6: Designing AR Systems2022 COMP4010 Lecture 6: Designing AR Systems
2022 COMP4010 Lecture 6: Designing AR SystemsMark Billinghurst
 
2022 COMP 4010 Lecture 7: Introduction to VR
2022 COMP 4010 Lecture 7: Introduction to VR2022 COMP 4010 Lecture 7: Introduction to VR
2022 COMP 4010 Lecture 7: Introduction to VRMark Billinghurst
 
COMP 4010 Lecture10: AR Tracking
COMP 4010 Lecture10: AR TrackingCOMP 4010 Lecture10: AR Tracking
COMP 4010 Lecture10: AR TrackingMark Billinghurst
 
Building VR Applications For Google Cardboard
Building VR Applications For Google CardboardBuilding VR Applications For Google Cardboard
Building VR Applications For Google CardboardMark Billinghurst
 
Comp4010 lecture6 Prototyping
Comp4010 lecture6 PrototypingComp4010 lecture6 Prototyping
Comp4010 lecture6 PrototypingMark Billinghurst
 
Empathic Computing: Designing for the Broader Metaverse
Empathic Computing: Designing for the Broader MetaverseEmpathic Computing: Designing for the Broader Metaverse
Empathic Computing: Designing for the Broader MetaverseMark Billinghurst
 
Comp4010 Lecture10 VR Interface Design
Comp4010 Lecture10 VR Interface DesignComp4010 Lecture10 VR Interface Design
Comp4010 Lecture10 VR Interface DesignMark Billinghurst
 
2022 COMP4010 Lecture4: AR Interaction
2022 COMP4010 Lecture4: AR Interaction2022 COMP4010 Lecture4: AR Interaction
2022 COMP4010 Lecture4: AR InteractionMark Billinghurst
 
Augmented Reality - the next big thing in mobile
Augmented Reality - the next big thing in mobileAugmented Reality - the next big thing in mobile
Augmented Reality - the next big thing in mobileHari Gottipati
 
Building AR and VR Experiences
Building AR and VR ExperiencesBuilding AR and VR Experiences
Building AR and VR ExperiencesMark Billinghurst
 
2022 COMP4010 Lecture2: Perception
2022 COMP4010 Lecture2: Perception2022 COMP4010 Lecture2: Perception
2022 COMP4010 Lecture2: PerceptionMark Billinghurst
 
Empathic Computing: Developing for the Whole Metaverse
Empathic Computing: Developing for the Whole MetaverseEmpathic Computing: Developing for the Whole Metaverse
Empathic Computing: Developing for the Whole MetaverseMark Billinghurst
 
Augmented vs Virtual Reality.pptx
Augmented vs Virtual Reality.pptxAugmented vs Virtual Reality.pptx
Augmented vs Virtual Reality.pptxJohanJacobMathew
 
VIRTUAL REALITY & AUGMENTED REALITY
VIRTUAL REALITY & AUGMENTED REALITY VIRTUAL REALITY & AUGMENTED REALITY
VIRTUAL REALITY & AUGMENTED REALITY HarsshammJeetendra
 
COMP 4010 - Lecture 2: Presence in Virtual Reality
COMP 4010 - Lecture 2: Presence in Virtual RealityCOMP 4010 - Lecture 2: Presence in Virtual Reality
COMP 4010 - Lecture 2: Presence in Virtual RealityMark Billinghurst
 
Comp4010 2021 Lecture2-Perception
Comp4010 2021 Lecture2-PerceptionComp4010 2021 Lecture2-Perception
Comp4010 2021 Lecture2-PerceptionMark Billinghurst
 
Augmented reality ppt
Augmented reality pptAugmented reality ppt
Augmented reality pptDark Side
 

Was ist angesagt? (20)

Comp 4010 2021 Lecture1-Introduction to XR
Comp 4010 2021 Lecture1-Introduction to XRComp 4010 2021 Lecture1-Introduction to XR
Comp 4010 2021 Lecture1-Introduction to XR
 
2022 COMP4010 Lecture 6: Designing AR Systems
2022 COMP4010 Lecture 6: Designing AR Systems2022 COMP4010 Lecture 6: Designing AR Systems
2022 COMP4010 Lecture 6: Designing AR Systems
 
2022 COMP 4010 Lecture 7: Introduction to VR
2022 COMP 4010 Lecture 7: Introduction to VR2022 COMP 4010 Lecture 7: Introduction to VR
2022 COMP 4010 Lecture 7: Introduction to VR
 
COMP 4010 Lecture10: AR Tracking
COMP 4010 Lecture10: AR TrackingCOMP 4010 Lecture10: AR Tracking
COMP 4010 Lecture10: AR Tracking
 
Building VR Applications For Google Cardboard
Building VR Applications For Google CardboardBuilding VR Applications For Google Cardboard
Building VR Applications For Google Cardboard
 
Comp4010 lecture6 Prototyping
Comp4010 lecture6 PrototypingComp4010 lecture6 Prototyping
Comp4010 lecture6 Prototyping
 
Empathic Computing: Designing for the Broader Metaverse
Empathic Computing: Designing for the Broader MetaverseEmpathic Computing: Designing for the Broader Metaverse
Empathic Computing: Designing for the Broader Metaverse
 
Lecture1 introduction to VR
Lecture1 introduction to VRLecture1 introduction to VR
Lecture1 introduction to VR
 
Comp4010 Lecture10 VR Interface Design
Comp4010 Lecture10 VR Interface DesignComp4010 Lecture10 VR Interface Design
Comp4010 Lecture10 VR Interface Design
 
2022 COMP4010 Lecture4: AR Interaction
2022 COMP4010 Lecture4: AR Interaction2022 COMP4010 Lecture4: AR Interaction
2022 COMP4010 Lecture4: AR Interaction
 
Augmented Reality - the next big thing in mobile
Augmented Reality - the next big thing in mobileAugmented Reality - the next big thing in mobile
Augmented Reality - the next big thing in mobile
 
Building AR and VR Experiences
Building AR and VR ExperiencesBuilding AR and VR Experiences
Building AR and VR Experiences
 
2022 COMP4010 Lecture2: Perception
2022 COMP4010 Lecture2: Perception2022 COMP4010 Lecture2: Perception
2022 COMP4010 Lecture2: Perception
 
Empathic Computing: Developing for the Whole Metaverse
Empathic Computing: Developing for the Whole MetaverseEmpathic Computing: Developing for the Whole Metaverse
Empathic Computing: Developing for the Whole Metaverse
 
Augmented vs Virtual Reality.pptx
Augmented vs Virtual Reality.pptxAugmented vs Virtual Reality.pptx
Augmented vs Virtual Reality.pptx
 
VIRTUAL REALITY & AUGMENTED REALITY
VIRTUAL REALITY & AUGMENTED REALITY VIRTUAL REALITY & AUGMENTED REALITY
VIRTUAL REALITY & AUGMENTED REALITY
 
COMP 4010 - Lecture 2: Presence in Virtual Reality
COMP 4010 - Lecture 2: Presence in Virtual RealityCOMP 4010 - Lecture 2: Presence in Virtual Reality
COMP 4010 - Lecture 2: Presence in Virtual Reality
 
virtual reality ppt
 virtual reality  ppt virtual reality  ppt
virtual reality ppt
 
Comp4010 2021 Lecture2-Perception
Comp4010 2021 Lecture2-PerceptionComp4010 2021 Lecture2-Perception
Comp4010 2021 Lecture2-Perception
 
Augmented reality ppt
Augmented reality pptAugmented reality ppt
Augmented reality ppt
 

Kürzlich hochgeladen

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
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
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
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
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 

Kürzlich hochgeladen (20)

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
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
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 

Introduction to AR with Unity3D

  • 1. AR with Unity3D Introduction to Augmented Reality with Unity3D Saturday, May 26, 12
  • 2. Intro • Examples • Pantalla Global (CCCB) • Animac • Salón de Turisme AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 3. Koffa@Animac http://vimeo.com/37868229 AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 4. What is AR? • Virtual content overlayed onto the real word • 2D / 3D & audio • Realtime / Live camera view AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 5. Detection • Vision based • QR codes • Markers • Real life objects • Location based (GPS, Compass) AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 6. Vision Based AR • Tracking • Frame by frame analysis searching for “trackables” • Return position and orientation relative to device AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 7. AR Apps • Layar • http://www.layar.com/ • Junaio • http://www.junaio.com/ • Wikitude • http://www.wikitude.com/ • Appunta ;-) • http://appunta.com/ AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 8. Use • Arts & Gaming • Advertising • Navigation • Tourism • Education • ... and a lot more AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 9. Unity3D Libraries • String • www.poweredbystring.com • Vuforia (Qualcomm) • https://developer.qualcomm.com/mobile-development/mobile- technologies/augmented-reality AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 10. String - Tracking • Framed Markers • Multiple marker detection • <= 10 • Unflexible marker creation • black border surrounded by a white border necessary AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 11. String - Tracking • Any png • Full marker has to be in camera (>85%) • Markers not in scene • dificult scaling AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 12. Vuforia - Tracking • Image Target • Frame Markers • Simple 3D Objects (Boxes) • More flexible than String on marker creation AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 13. Vuforia - Tracking • Multiple Image Targets or Frame Markers • <= 5 • Works if only part of the marker is seen • Markers placed into 3D Scene • easy scaling • Virtual Buttons AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 14. Target Management • Online • ImageTargets • MultiTargets • jpg & png • RGB & B&W ! Rich in detail High in contrast • Scaling (Unity units) No repetitive patterns AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 15. Performance • String a little bit faster in detection and tracking • String is more stable AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 16. Platform support • Vuforia • Android & iOS • String • iOS AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 17. String - Setup • Download library • Unity3d • iOS • Add to Unity3D project • Add to XCode project AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 18. Vuforia - Setup • Download Vuforia library • available in Assets Store • Add to Unity3D Project AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 19. Testing • String: • In-Editor testing using webcam • Vuforia: ! Unity Remote • No image tracking nor life camera • Device Only Testing AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 20. Licensing • Unity / Unity iOS / Unity Android • https://store.unity3d.com/ • String • Expensive! • http://www.poweredbystring.com/licensing • Vuforia • Free!!! AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 21. Decision ??? AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 23. Requirements iOS • Mac OS Snow Leopard & Lion • XCode • https://ar.qualcomm.at/qdevnet/sdk/ios AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 24. Requirements Android • MS Windows 7 & XP • Linux & Mac OS posssible but not documented • JDK + Eclipse + ADT • Android SDK + NDK • https://ar.qualcomm.at/qdevnet/sdk/android AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 25. Installation • Download pagackage vuforia-unity-OS- Version.zip and install • base extension & samples • Asset Store AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 26. Simple Project • New project • Add Vuforia • Add Dataset (markers) • Add ARCamera Prefab to scene • Add ImageTarget Prefab to scene • Select Dataset and ImageTarget • Add 3D objects + Light • Set Load Dataset • Deploy AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 27. Unity Folder Structure AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 28. Hands-On • DroidBalls • Floating spheres in space • Touch to dissappear AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 29. Raycasting • Detect 3D object touched on screen • Ray from touched screen point to camera • Detect object collisions AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 30. Tracking • ITrackableEventHandler • OnTrackableStateChanged • DefaultTrackableEventHandler • enable/disable rendering • ITrackerEventHandler • OnTrackablesUpdated AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 31. Splash Screen • Display when no marker is detected • Modify ITrackableEventHandler AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 32. Virtual Buttons • Hotspots on an ImageTarget • IVirtualButtonEventHandler • OnVirtualButtonPressed • OnVirtualButtonReleased • Can be created at runtime AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 33. Problems • Perfomance • Image Recognition • symmetry / similar elements • contrast / illumination • Real world sizing AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 34. Problems • Fixed camera vs fixed space • Physics!!! • Multiple markers • center??? AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 35. Tips & Advices • 3D Models • < 2K polygons overall • • < 200 polygons/object (draw calls) <= 3 materials/object ! Device dependent • Animations • < 30 bones • Use texture sequences AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 36. Tips & Advices • Attach markers to cardboard • Good lightning but avoid reflections • Disable objects that are not in view • Test using mouse instead of touch AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 37. Tips & Advices • Scale correctly from the beginning • Create simple reference objects to map to real world • e.g. cubes AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 38. Resources • Unity3D • http://forum.unity3d.com • http://answers.unity3d.com • Vuforia Forums • https://ar.qualcomm.at/qdevnet/forums • String ??? AR with Unity3D 26/05/2012 - CatDroid Unity3D II @aquarioverde Saturday, May 26, 12
  • 39. Thank you! Andreas Blick @aquarioverde Saturday, May 26, 12