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.

Get Cardboard VR Projects for Android now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.