Book Image

Mastering Oculus Rift Development

By : Jack Donovan
Book Image

Mastering Oculus Rift Development

By: Jack Donovan

Overview of this book

Virtual reality (VR) is changing the world of gaming and entertainment as we know it. VR headsets such as the Oculus Rift immerse players in a virtual world by tracking their head movements and simulating depth, giving them the feeling that they are actually present in the environment. We will first use the Oculus SDK in the book and will then move on to the widely popular Unity Engine, showing you how you can add that extra edge to your VR games using the power of Unity. In this book, you’ll learn how to take advantage of this new medium by designing around each of its unique features. This book will demonstrate the Unity 5 game engine, one of most widely-used engines for VR development, and will take you through a comprehensive project that covers everything necessary to create and publish a complete VR experience for the Oculus Rift. You will also be able to identify the common perils and pitfalls of VR development to ensure that your audience has the most comfortable experience possible. By the end of the book, you will be able to create an advanced VR game for the Oculus Rift, and you’ll have everything you need to bring your ideas into a new reality.
Table of Contents (17 chapters)
Mastering Oculus Rift Development
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Taking your first steps in VR


The first step we'll take in setting up our first VR scene is to delete Main Camera from the hierarchy. This is a standard object that Unity adds to every scene in order to render it, but since the Rift is responsible for rendering VR scenes, we don't need a standard camera anymore.

After you delete the default camera, it's time to add a place for the player to stand. We'll get into creating natural terrains later in this book, but for now we'll just make a simple flat floor.

Click on the Create button in the upper-left corner of the Hierarchy window and select Plane from the 3D Object menu, as shown in the following screenshot:

Once your plane has been created, click on it once in the hierarchy to display its properties in the Inspector window, which include its position and rotation. In this book's Unity layout, the Inspector window is at the same height as the Hierarchy window on the far right of the editor window.

At the top of the Inspector window with the...