Code Monkey home page Code Monkey logo

ar4android's Introduction

ar4android

Companion Code to the Book Augmented Reality for Android Application Development

Introduction This directory contains Eclipse projects for the individual samples discussed in the book " Augmented Reality for Android Application Development". They are ordered by chapter. For the examples in chapter 5 and 6 you need to install the Qualcomm Vuforia SDK first. Please refer to the instructions in ThirdParty\readme.txt.

Eclipse Project Import To import an existing project into Eclipse, open the menu:

  • File -> Import
  • In the import dialouge Choose Android -> Existing Android Code Into Workspace
  • In the following "Import Projects" dialouge set the "Root Directory" by pressing the "Browse..." button. Make sure you import the projects on a per chapter basis (e.g., choose /ARprojects/Chapter2 as root directory).
  • If you get error messages related to a missing Android platform, make sure to select a platform which is installed on your system. Check the setting under the menu Project --> Properties --> Android

All examples

  • We highly recommend you to use physical devices for testing, not the emulator, as you need access to the physical camera. There are ways to use your webcame in the emulator, but we did not test our code on the emulator.
  • You exit all running examples by pressing the back button on your Android device and then pressing the Yes button int the Exit dialouge.
  • to allow parallel installs of all examples we updated the package names from "com.ar4android" to "com.ar4android.appName". For example "appClass = "com.ar4android.CameraAccessJME";" becomes "appClass = "com.ar4android.cameraAccessJME.CameraAccessJME";"

Example Chapter4/LocationAccessJME

Examples Chapter4/SensorAccessJME and Chapter4/SensorFusionJME

  • For the examples to run out of the box we assume that the default orientation of the device has a x-axis pointing to the right, y-axis pointing up, z-axis pointing to the user when the device is held in portrait mode (default for most smartphones). Some devices 8such as tablets) have a different default orientation. In this case you need to remap the sensor coordinates to the screen coordinates as mentioned here: http://developer.android.com/guide/topics/sensors/sensors_overview.html#sensors-coords
  • In some degenerate configurations (specifically when the device lies flat on surface) the orientation sensors will not initialize properly and you will not be able to see the 3D object. Avoid to put the device flat on the ground at startup time.

ar4android's People

Contributors

jensgrubert avatar arandroidbook avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.