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
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Summary


In this chapter, we discussed how to use the full power of three.js with React VR. While learning this, we demonstrated where to place native code and the React VR Native bridge. We built three.js meshes directly via JavaScript and added sound that made the world seem more alive. We also used React Native Views and the Native bridge to do customized rendering, including a reflection map—we added chrome to VR (as opposed to viewing VR with Chrome). We also showed how to get access to the React VR camera via the vr.player.renderer to do more three.js processing. 

With a full-blown three.js included, we really can do anything we want with React VR. We should, however, use React VR where it is needed, and three.js where we need a little more detail, otherwise React VR will be icing on a bolt. It would be liable to cause rust and easily fall off.