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

Improving the overlay


In the previous section you created a perspective camera, which renders your model with a vertical field of view of 30 degrees. However, to increase the realism of your scene, you actually want to match the field of view of your virtual and physical cameras as well as possible. This field of view in a general imaging system such as your phone's camera is dependent both on the size of the camera sensor and the focal length of the optics used. The focal length is a measure of how strongly the camera lens bends incoming parallel light rays until they come into focus (on the sensor plane), it is basically the distance between the sensor plane and the optical elements of your lens.

The FOV can be computed from the formula α = 2 arctan d/2f, where d is the (vertical, horizontal, or diagonal) extent of the camera sensor and 2 is the focal length. Sounds easy, right? There is only a small challenge. You most often do not know the (physical) sensor size or the focal length of...