This is a proof of concept of Argon for Android. The project integrates vuforia to display augmented reality objects (in this example teapot) with a custom built of chromium. This custom built of chromium allows to display complex CSS3D animations and to render WebGL animations. The best is that it works smoothly not only with the latest Android 4.4, but also with previous Android version.
Check out screenshots to see WebGL animation in webview along with a teapot in augmented reality.
In this project I used ImageTargets project provided with vuforia [2].
- Pull repository with libraries with custom chromium built: https://github.com/pkwiecien/AndroidArgon-libraries
- Pull this repository
- Open ADT (or eclipse with ADT), install vuforia if needed (see requirements below)
- Import libraries to workspace as existing projects into ADT
- Manually add 'res' folder to 'base', 'media', 'net' and 'eyes-free' (if projects contain further errors, see section below)
- Import AndroidArgon as exisiting Android project into ADT
- Add libraries to the AndroidArgon project (right click on a project->Properties->Android. If there are any invalid libraries in red then remove them, and add these new ones. In total there are 6 libraries)
- Add QCAR_SDK_ROOT into Java Build Path, see: Section "Set the QCAR environment variable" in https://developer.vuforia.com/resources/dev-guide/step-2-installing-vuforia-sdk
- Add QCAR.jar to Java Build Path (it is in vuforia/build/java/QCAR)
- Run project as Android application
Importing libraries:
- firstly do a clean of your workspace in ADT
- if a project is not compiled, check a reason. If it says that a folder 'res' is missing, add it to each folder manually (when I was importing libraries, I had to add folder res to 'base', 'media', 'net' and 'eyes-free' library projects. Next, refresh all projects and do a clean once again)
Importing/Running AndroidArgonV2 project:
- If a project crashes after a start, you might need to add a 'clean' version of .so file (chromium built). Download it from here: libcontent. Next copy it to libs/armeabi, libs/armeabi-v7a, libs/x86 in AndroidArgonV2 project in ADT
- Relatively new Android device that can handle WebGL and camera in the background
- vuforia installed, follow: https://developer.vuforia.com/resources/sdk/android
- ADT for Mac
- Nexus 7 Tablet (second generation) with Android 4.4
- Moto X smartphone with Android 4.2.2