Book Image

Augmented Reality for Android Application Development

Book Image

Augmented Reality for Android Application Development

Overview of this book

Augmented Reality offers the magical effect of blending the physical world with the virtual world, which brings applications from your screen into your hands. AR redefines advertising and gaming, as well as education. It will soon become a technology that will have to be mastered as a necessity by mobile application developers. Augmented Reality for Android Application Development enables you to implement sensor-based and computer vision-based AR applications on Android devices. You will learn about the theoretical foundations and practical details of implemented AR applications, and you will be provided with hands-on examples that will enable you to quickly develop and deploy novel AR applications on your own. Augmented Reality for Android Application Development will help you learn the basics of developing mobile AR browsers, how to integrate and animate 3D objects easily with the JMonkeyEngine, how to unleash the power of computer vision-based AR using the Vuforia AR SDK, and will teach you about popular interaction metaphors. You will get comprehensive knowledge of how to implement a wide variety of AR apps using hands-on examples. This book will make you aware of how to use the AR engine, Android layout, and overlays, and how to use ARToolkit. Finally, you will be able to apply this knowledge to make a stunning AR application.
Table of Contents (14 chapters)
Augmented Reality for Android Application Development
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Augmented Reality Concepts and Tools
Index

Real camera and virtual camera


A virtual camera for 3D graphics rendering is generally represented by two main sets of parameters: the extrinsic and intrinsic parameters. The extrinsic parameters define the location of the camera in the virtual world (the transformation from the world coordinate system to the camera coordinate system and vice versa). The intrinsic parameters define the projective properties of the camera, including its field of view (focal length), image center, and skew. Both the parameters can be represented with different data structures, with the most common being a matrix.

If you develop a 3D mobile game, you are generally free to configure the cameras the way you want; you can put the camera above a 3D character running on a terrain (extrinsic) or set up a large field of view to have a large view of the character and the terrain (intrinsic). However, when you do Augmented Reality, the choice is constrained by the properties of the real camera in your mobile phone. In...