Skip to Content
Learning Virtual Reality
book

Learning Virtual Reality

by Tony Parisi
October 2015
Beginner
172 pages
4h 36m
English
O'Reilly Media, Inc.
Content preview from Learning Virtual Reality

Chapter 7. Your First VR Application

In previous chapters, we learned the basic techniques of virtual reality development. We also surveyed various VR platforms coming to market, as well as the popular tools used to create VR. In this final chapter, we are going to put this all together and create an end-to-end application.

Given the time and space constraints of a book, we can’t really build a production-quality app; but we can go through, in fine detail, the steps required to create a meaningful VR experience with simple user interaction. For the exercise, we will focus on an app that is immediately understandable by everyone: a panoramic photo viewer for smartphones, using Google Cardboard VR.

Figure 7-1 shows a screenshot from my Nexus 5: a 360-degree panoramic photo of Yosemite National Park, rendered side by side for Cardboard. At the bottom of the screen are four semitransparent image thumbnails. Gazing over any thumbnail makes it turn opaque (i.e., “selects” it); touching the switch on the side of the Cardboard viewer will change the panorama to the selected image. This is what we are going to build.

Recall that, when developing for Cardboard, we have several choices of tools and languages. We can use Unity3D, currently the most popular VR development environment; we can go with Java-based native Android development, via the Android Studio IDE; or we can write web code for mobile browsers, using a JavaScript-based VR framework such as Three.js. In the end, I decided to ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Virtual Reality

Virtual Reality

Tony Parisi
Developing Virtual Reality Applications

Developing Virtual Reality Applications

Alan B. Craig, William R. Sherman, Jeffrey D. Will
Virtual Reality Blueprints

Virtual Reality Blueprints

Charles Palmer, John Williamson
Understanding Virtual Reality

Understanding Virtual Reality

William R. Sherman, Alan B. Craig

Publisher Resources

ISBN: 9781491922828Errata Page