Book Description

Create engaging Augmented Reality (AR) applications with Unity 3D that can be experienced with devices such as HoloLens and Daydream

Key Features

  • Learn the principles of AR application development
  • Work with the most popular sensors used in AR games and applications across Android, Apple and Windows
  • Build experiences with interactive objects, physics, UI, animations, and C# scripting

Book Description

Augmented Reality allows for radical innovations in countless areas. It magically blends the physical and virtual worlds, bringing applications from a screen into your hands. Meanwhile, Unity has now become the leading platform to develop augmented reality experiences, as it provides a great pipeline for working with 3D assets.

Using a practical and project-based approach, Unity 2018 Augmented Reality Projects educates you about the specifics of augmented reality development in Unity 2018.

This book teaches you how to use Unity in order to develop AR applications which can be experienced with devices such as HoloLens and Daydream. You will learn to integrate, animate, and overlay 3D objects on your camera feed, before gradually moving on to implementing sensor-based AR applications. In addition to this, you will explore the technical considerations that are especially important and possibly unique to AR. The projects in the book demonstrate how you can build a variety of AR experiences, whilst also giving insights into C# programming as well as the Unity 3D game engine via the interactive Unity Editor.

By the end of the book, you will be equipped to develop rich, interactive augmented reality experiences for a range of AR devices and platforms using Unity.

What you will learn

  • Build and run AR applications for specific headsets, including HoloLens and Daydream
  • Create 3D scenes with Unity and other 3D tools while learning about world space and scale
  • Move around your AR scenes using locomotion and teleportation
  • Create filters or overlays that work in tandem with facial recognition software
  • Use GPS, geolocation services, and the camera feed to create a fitness application
  • Integrate AR and VR concepts together in a single application

Who this book is for

Unity 2018 Augmented Reality Projects is for you if you're a game developer familiar with 3D computer graphics and interested in building your own AR games or applications. Any experience in Unity and C# is an advantage.

Downloading the example code for this book You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Title Page
  2. Copyright and Credits
    1. Unity 2018 Augmented Reality Projects
  3. Dedication
  4. Packt Upsell
    1. Why subscribe?
    2. PacktPub.com
  5. Contributors
    1. About the author
    2. About the reviewers
    3. Packt is searching for authors like you
  6. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
      1. Download the example code files
      2. Download the color images
      3. Conventions used
    4. Get in touch
      1. Reviews
  7. What AR is and How to Get Set up
    1. Available AR packages 
      1. Defining AR
        1. An incomplete list of AR devices
    2. Advantages and disadvantages of the different AR toolkits available
      1. ARCore
      2. ARKit
      3. Vuforia
      4. ARToolKit
    3. Building our first AR applications
      1. Setting up Vuforia
      2. Setting up ARToolKit
      3. Setting up ARCore
      4. Setting up ARKit
        1. Building Hello World in ARKit
    4. Summary
    5. Questions
  8. GIS Fundamentals - The Power of Mapping
    1. What is GIS?
      1. The history of GIS
      2. GIS techniques and technologies
      3. Ways to capture GIS
        1. Converting from raster to vector
        2. Projections and coordinate systems
        3. Spatial analysis with GIS
      4. Data analysis with GIS
        1. GIS modeling
        2. Geometric networks
        3. Hydrological modeling
        4. Cartographic modeling
        5. Map overlays
    2. Statistics used with GIS
      1. Geocoding
        1. Reverse geocoding
      2. Open Geospatial Consortium Standards
        1. Web mapping
        2. GIS and adding dimension of time
        3. Semantics
    3. The implications of GIS in society
      1. GIS in the real world
        1. GIS in education
        2. GIS in local governments
    4. GIS and augmented reality
    5. Applications of GIS
    6. Gaming and GIS
    7. Summary
    8. Questions
  9. Censored - Various Sensor Data and Plugins
    1. Project overview
    2. Getting started
    3. Sensors
      1. Leveraging sensors with plugins
      2. Writing unity plugins
        1. C# language plugin
        2. C++ language plugin
        3. Swift language plugin
        4. Objective-C language plugin
        5. Java language plugin
      3. Creating a sensor driver in Java
    4. Summary
    5. Have a go hero
    6. Questions
    7. Further reading
  10. The Sound of Flowery Prose
    1. Project overview
    2. Getting started
    3. Conceptualizing the project
      1. Basic idea/concept
      2. Choosing the right programming language
      3. Choosing your release platform
      4. Choosing your game engine, libraries, and frameworks
      5. Developing the game design and application design document
        1. Bonus – UML design
      6. Prototyping
    4. Setting up the Unity project
    5. Code implementation details
    6. Working with XCode
    7. Summary
    8. Questions
    9. Further reading
  11. Picture Puzzle - The AR Experience
    1. Project background
    2. Project overview
      1. Getting started
    3. Installing Vuforia
    4. Differences between macOS and Windows setups
    5. Windows project setup
      1. Building the Windows project
    6. macOS project setup
      1. Building the macOS Project
      2. Working with Xcode
    7. Summary
    8. Questions
  12. Fitness for Fun - Tourism and Random Walking
    1. Background information on Mapbox
    2. Project overview
      1. Getting started
    3. Setting up Mapbox
      1. Important items to note
      2. Setting up the project
      3. Scripting the project
      4. Finalizing the project
    4. Summary
    5. Questions
    6. Further reading
  13. Snap it! Adding Filters to Pictures
    1. Project overview
      1. Getting started
    2. What is OpenCV?
      1. Creating the project with paid assets
    3. Installing and building OpenCV
      1. Downloading OpenCV
        1. Downloading CMake
          1. Configuring the CMake and OpenCV source files
    4. OpenCV with Unity
      1. OpenCV and Unity
    5. Summary
    6. Questions
    7. Further reading
  14. To the HoloLens and Beyond
    1. What is Mixed Reality, and how does it work?
      1. Urban Hunt
      2. Smart Urban Golf
      3. XR applications in media
      4. XR with HoloLens
    2. Getting Mixed Reality ready
    3. Project overview
    4. Playing with Mixed Reality
      1. Setting up the camera
      2. Performance and quality control
      3. Targeting the Windows 10 SDK
      4. Do the robot
      5. Building and deploying from Visual Studio
    5. Summary
    6. Questions
    7. Further reading
  15. Other Books You May Enjoy
    1. Leave a review - let other readers know what you think