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)

Setting the mood

Establishing the correct mood and setting is the first step in crafting a zombie-themed movie. Fear, dread, and isolation are a few tools used to establish fear in the audience, which is a good reason to use these tools in our scene.

We'll start by creating a new skybox. This skybox will be used to establish a sense of dread and foreboding in our game. With a darkened sky, the approaching zombies will appear out of the gloom adding to the fear and isolation of the scene:

  1. Create a new material and rename it Dark Sky. Change the shader in the Inspector to Shader: Skybox/Cubemap. The shader setting is the first option in the Inspector as shown in Figure 6.3:
Figure 6.3: Setting the Shader for the new material
  1. Set the Tint Color to Black or near Black. Try using #0B0B0B00 as a starting point.
  2. Select the Lighting tab to expose the environmental settings. Set...