Book Image

Virtual Reality Blueprints

By : Charles Palmer, John Williamson
Book Image

Virtual Reality Blueprints

By: Charles Palmer, John Williamson

Overview of this book

Are you new to virtual reality? Do you want to create exciting interactive VR applications? There's no need to be daunted by the thought of creating interactive VR applications, it's much easier than you think with this hands-on, project-based guide that will take you through VR development essentials for desktop and mobile-based games and applications. Explore the three top platforms—Cardboard VR, Gear VR, and OculusVR —to design immersive experiences from scratch. You’ll start by understanding the science-fiction roots of virtual reality and then build your first VR experience using Cardboard VR. You'll then delve into user interactions in virtual space for the Google Cardboard then move on to creating a virtual gallery with Gear VR. Then you will learn all about virtual movements, state machines, and spawning while you shoot zombies in the Oculus Rift headset. Next, you'll construct a Carnival Midway, complete with two common games to entertain players. Along the way, you will explore the best practices for VR development, review game design tips, discuss methods for combating motion sickness and identify alternate uses for VR applications
Table of Contents (12 chapters)

Finalizing user interaction

To complete our project, we will need to add two final components. These components will facilitate selecting an image for preview and providing visual feedback during the selection process.

Add the Graphic Raycaster component to the Preview objects. If you run the Scene, you will notice that our Swipe functions work as designed, but the user can not select a preview image for display. This is because our Preview thumbnail objects are looking for a Graphic Raycaster, but none is present; let's fix that:

  1. Select Preview (1) through Preview (5) in the first Gallery PreviewHolder.
  2. Click on Add Component in the Inspector window.
  3. Search for Graphic Raycaster and apply it to the selected GameObject.
  4. Repeat this process for each of the Gallery PreviewHolders.
  5. Hit click on the Play button to test the interaction. While the scene is running, click on the...