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

Simple gesture recognition using accelerometers


In Chapter 4, Locating in the World, you were introduced to the various sensors that are built into the typical Android device. You learned how to use them to derive the orientation of your device. However, there is much more you can do with those sensors, specifically accelerometers. If you have ever played Wii games, you were surely fascinated by the natural interaction you could achieve by waving the Wiimote around (for example, when playing a tennis or golf Wii game). Interestingly, the Wiimote uses similar accelerometers to many Android smartphones, so you can actually implement similar interaction methods as with the Wiimote. For complex 3D-motion gestures (such as drawing a figure eight in the air), you will need either some machine learning background or access to use libraries such as the one at the following link: http://www.dfki.de/~rnessel/tools/gesture_recognition/gesture_recognition.html. However, if you only want to recognize...