Setting up a new project
To build this project, we're going to use our RenderBox library created in Chapter 5, RenderBox Engine. You can use yours, or grab a copy from the downloadable files provided with this book or our GitHub repo (use the commit tagged after-ch8
—https://github.com/cardbookvr/renderboxlib/releases/tag/after-ch8). For a more detailed description of how to import the RenderBox
library, refer to the final section, Using RenderBox in future projects, of Chapter 5, RenderBox Engine. To create a new project, perform the following steps:
- With Android Studio opened, create a new project. Let's name it
VisualizeVR
and target Android 4.4 KitKat (API 19) with an Empty Activity. - Create new modules for each of
renderbox
,common
, andcore
packages, using File | New Module | Import .JAR/.AAR Package. - Set the modules as dependencies for the app, using File | Project Structure.
- Edit the
build.gradle
file as explained in Chapter 2, The Skeleton Cardboard Project, to compile...