Chapter 5. Combining Image Tracking with 3D Rendering

Our goal in this chapter is to combine image tracking with 3D rendering. We will modify our existing image tracker so that it fully determines the target's position and rotation in 3D. Then, using Android SDK's implementation of OpenGL ES, we will draw a 3D cube sitting atop the tracked image. This is a case of augmented reality (AR), meaning that we are superimposing a virtual object (the cube) on a specific part of a real scene.

For this chapter, we will modify our existing ImageDetectionFilter class. We will also add files for the following new classes and interfaces:

Together, these types support the rendering of a virtual 3D environment that is consistent with certain properties of the real video camera and scene.