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

Chapter 5. RenderBox Engine

While the Cardboard Java SDK and OpenGL ES are powerful and robust libraries for mobile VR applications, they're pretty low level. Software development best practices expect that we abstract common programming patterns into new classes and data structures. In Chapter 3, Cardboard Box, we got some hands-on experience with the nitty gritty details. This time, we're revisiting those details while abstracting them into a reusable library that we'll call RenderBox. There'll be vector math, materials, lighting, and more, all rolled up into a neat little package.

In this chapter, you will learn to:

  • Create a new Cardboard project
  • Write a Material class with shaders
  • Explore our Math package
  • Write a Transform class
  • Write a Component ...

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