Google Cardboard is a new API for creating virtual reality games with a DIY headset. In this tutorial, you'll use it to kill blobs with throwing stars!
“Welcome… to the THIRD DIMENSION!
It’s probably safe to say that everybody has been waiting for virtual reality experiences since that classic of modern cinema, “Lawnmower Man”, showed us the potential of technology. It promised us a delightful future of, um, virtual reality where we could all have telepathic powers. Or something like that.
In this tutorial, you’ll help humanity prepare for its future of telepathic abilities and virtual reality by learning to take a simple Unity game and make it work as a VR experience using Google Cardboard. You’ll find out how to:
Integrate a Cardboard camera into your projects
Modify UI elements so that they work in VR mode
Make buttons selectable in VR mode
Switch programmatically between regular and VR mode at run time
In theory, creating a VR experience is straightforward. Instead of displaying your world as a single image on screen, you display two images.
They come from two cameras placed a few inches apart, and the user views the image from the left camera with the left eye and vice versa, creating the appearance of depth.
Additionally, with some judicious use of motion sensors, you can detect the direction the user is facing. Combine that with the 3D world you’ve created, and you’ve got yourself an immersive experience.”
[read more]












