Book Image

Learn ARCore - Fundamentals of Google ARCore

Book Image

Learn ARCore - Fundamentals of Google ARCore

Overview of this book

Are you a mobile developer or web developer who wants to create immersive and cool Augmented Reality apps with the latest Google ARCore platform? If so, this book will help you jump right into developing with ARCore and will help you create a step by step AR app easily. This book will teach you how to implement the core features of ARCore starting from the fundamentals of 3D rendering to more advanced concepts such as lighting, shaders, Machine Learning, and others. We’ll begin with the basics of building a project on three platforms: web, Android, and Unity. Next, we’ll go through the ARCore concepts of motion tracking, environmental understanding, and light estimation. For each core concept, you’ll work on a practical project to use and extend the ARCore feature, from learning the basics of 3D rendering and lighting to exploring more advanced concepts. You’ll write custom shaders to light virtual objects in AR, then build a neural network to recognize the environment and explore even grander applications by using ARCore in mixed reality. At the end of the book, you’ll see how to implement motion tracking and environment learning, create animations and sounds, generate virtual characters, and simulate them on your screen.
Table of Contents (17 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Setting up WRLD for MR


With the asset imported, we can now work on setting up WRLD to work in MR. The setup requires a little bit of customization, so jump back to Unity and complete the following:

  1. From the menu, select Assets | Setup WRLD Resources For | Android. This will ensure that the assets are optimized for Android. We will also talk, in a later section, about how the materials can be manually optimized by updating or creating your own shaders.
  2. Ensure that the Main scene is loaded, and then select and expand the HoloKitPlacementRoot. Disable the DebugCube and GazeTargetExample child objects. If you forgot how to do this, check the Inspector window.
  3. Create a new child GameObject of HoloKitPlacementRoot called WRLD. Go to the Inspector window and use Add Component to add the Wrld Map component to the object.
  1. Set the component properties of the Wrld Map, as shown:

Setting properties for the Wrld Map component

  1. Select and drag the new WRLD object into your Assets/HoloCore/Prefabs folder to create...