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

Updating the RenderBox library

With the Gallery360 project implemented and our code stabilized, you might realize that we've built some code that is not necessarily specific to this application that can be reused in other projects, and ought to make its way back to the RenderBox library.

We did this at the end of the previous project in Chapter 6, Solar System. You can refer to that topic for details. Follow these steps to update the RenderBoxLib project:

  1. Move the Plane and Triangle components from RenderBoxExt/components.
  2. Move the BorderMaterial component from RenderBoxExt/materials.
  3. Move the border shader files from res/raw.
  4. Refactor any invalid references to correct the package names.
  5. Rebuild the library by clicking Build | Make Project.

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