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 chapter, we created a short and sweet, lightweight graphics engine to build new Cardboard VR applications. We abstracted the low-level OpenGL ES API calls into a suite of Material classes and a Camera class. We defined RenderObject for geometric entities, a Camera and Light components which inherit from a Component class. We defined a Transform class to organize and orient entities (which contain components) hierarchically in 3D space. All of this is integrated under the RenderBox class, which is instantiated and controlled in the MainActivity class, which, in turn, implements the IRenderBox interface. We complete the circle by specifying the MainActivity class as the implementer of IRenderBox and implementing setup, preDraw, and ...

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