Book Image

Getting Started with React VR

By : John Gwinner
Book Image

Getting Started with React VR

By: John Gwinner

Overview of this book

This book takes you on a journey to create intuitive and interactive Virtual Reality experiences by creating your first VR application using React VR 2.0.0. It starts by getting you up to speed with Virtual Reality (VR) and React VR components. It teaches you what Virtual Reality (VR) really is, why it works, how to describe 3D objects, the installation of Node.js (version 9.2.0) and WebVR browser. You will learn 3D polygon modeling, texturing, animating virtual objects and adding sound to your VR world. You will also discover ways to extend React VR with new features and native Three.js. You will learn how to include existing high-performance web code into your VR app. This book will also take you through upgrading and publishing your app. By the end of this book, you'll have a deep knowledge of Virtual Reality and a full-fledged working VR app to add to your profile!
Table of Contents (20 chapters)
Title Page
About the Author
About the Reviewers
Customer Feedback

Beyond flatland - 3D concepts

To represent things in 3D, we have to translate what we see into things that the computer can use to generate images. These methods will involve files with 3D geometry, pictures, and code. First, let's discuss how we position things in 3D.

To represent objects in 3D, we need their locations. A spreadsheet such as Excel uses A-Z (across) and 1-66 down (actually, A-XFD and 1-1048576). Computer graphics use numbers for all three axes. However, there are different ways to code these coordinates.

This applies to both the scale (what is one, an inch? One mile?) and what direction they go (is it Y or Z that is up?). To figure this out, we need to talk about coordinate systems.


We're all used to graph paper, grids, glowing spreadsheets with X and Y grids, or, numbers and letters like A1 and B1 in whatever spreadsheet program you use. Moving into the third dimension can be confusing, even though that's where we live. This is why I called this section Beyond flatland...