O'Reilly logo

Cardboard VR Projects for Android by Matt Schoen, Jonathan Linowes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this project, we wrote a simple viewer for 3D models in the open OBJ file format. We implemented a ModelObject class that parses the model file and builds the vector and normal buffers needed by RenderBox to render the object in the scene. We then enabled shading. We then made the viewer interactive so that the model rotates as you move your head.

In the next chapter, we explore another type of media, your music. The music visualizer responds to the current music player to display dancing geometry in the VR world.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required