This project is read-only.

XamiAndAR is a library for developing Android Augmented Reality applications using Xamarin.Android and C#. It is the C# binding to the original AndAR library developed by Tobias Domhan (tdomhan). XamiAndAR enables C# developers to develop Augmented Reality applications for Android using Xamarin.Android platform. It provides all the features exposed by AndAR library to Xamarin.Android developers. Internally, AndAR uses ARToolkit to achieve Augmented Reality. XamiAndAR is an open source library which comes with a .dll file. Presently, XamiAndAR library supports both armeabi and armeabi-v7a Android architectures. The library targets Android version: API Level 12 with Xamarin.Android v3.1 support.

Structure of XamiAndAR

 

Namespace

 

 

Classes

 

Interfaces

XamiAndAR

AndARActivity

AndARRenderer

ARObject

ARToolkit

CameraHolder

CameraParameters

CameraPreviewHandler

CameraStatus

Config

GenericFunctions

 

XamiAndAR.Exceptions

AndARException

AndARRuntimeException

 

XamiAndAR.Interfaces

 

IMarkerVisibilityListener

IOpenGLRenderer

IPreviewFrameSink

XamiAndAR.Pub

CustomActivity

CustomObject

CustomRenderer

SimpleBox

 

XamiAndAR.Utilities

GraphicsUtil

IO

 

XamiAndAR.AndOpenGLCam

R

R.attr

R.drawable

R.layout

R.string

 

 Table 1: List of namespaces along with classes and interfaces present in each of the namespace.

Download the zipped folder from GitHub repository. Unzip the downloaded folder. The folder contains XamiAndAR.dll which has to be added to Xamarin.Android project which can be used further to build Augmented Reality applications. We can use both Xamarin Studio and Visual Studio with Xamarin plugin to build Augmented Reality applications using this XamiAndAR library. As it is a binding library to AndAR library, you can go through the documentation part of the AndAR and later can follow the same to achieve Augmented Reality using Xamarin.Android. You can go through getting started documentation of Xamarin.Android here: Getting started with Xamarin.Android


Sample project to start XamiAndAR is being provided with the library named XamiAndARApp. This project is a Xamarin.Android project which covers basic functionalities that you can implement to achieve marker based AR using XamiAndAR. In order to run this project provided with the library please use Visual Studio 2013 or Xamarin Studio. Please print the marker “Hiro” provided as a pdf file placed inside “Marker” folder available within the XamiAndARApp project folder. Once you run the XamiAndARApp project (Which utilizes XamiAndAR library) on your Android phone, your phone’s rear camera will be accessed and then you need point out the rear camera to the printed Hiro marker. Once you point out the camera to the Hiro marker, default 3D object will be overlaid onto the printed marker in the camera view of the application. This demo works well on Android 3.1 and above versions (i.e. HoneyComb and above).

 Download the XamiAndAR library along with the sample project: Getting started with XamiAndAR

References: AndAR 

Last edited Jun 18, 2015 at 10:30 AM by chetanshetty, version 2