My First Augmented Reality App

From Kudan AR Engine
Jump to: navigation, search

1. Once Unity is installed and the Plugin has been downloaded, start Unity and create a new project. Call it whatever you want, we’ll be calling it “MyFirstApp”. Click “Create Project” and a new screen will appear.


2. This is the Unity Editor. If you are not familiar with the layout and functions of Unity, it is recommended to spend some time getting to grips with their interface. Tutorials can be found on the Unity3D website. If you are comfortable using Unity, or just want to try and learn as we go, then we can continue. Don’t worry if your window, doesn’t quite look like mine, we are specifically using the “Wide Layout”. If you want to change your window to match the screenshots, go to Window -> Layouts -> Wide.


3. Start by deleting the Main Camera and Directional Light objects that Unity has helpfully placed for us in this scene. We won’t be needing them.


4. Before we can use the KudanAR Plugin, we’ll need to import it to the project. To do this, right click anywhere in the assets window and go to Import Package -> Custom Package… . Find the KudanAR Plugin package and open it. Unity will then present you with a window detailing all the different assets being imported. Just click import and the Plugin will be imported to the project.


5. There will now be a folder called “KudanAR”. This contains the assets we will be using. Inside it are several folders, including one called “Prefabs”. In the Prefabs folder there is an object called “Kudan Bundle”. This prefab contains all the different objects required to create a basic, functioning app, including the Kudan Camera, all the Driver scripts, even a simple UI consisting of 3 buttons that sit at the bottom of the screen. Simply drag and drop the Kudan Bundle prefab into the Hierarchy section of your Unity window.


6. At this stage, you can either build the app in order to test it on an Android or iOS device, or, if you have set up Play Mode, simply click the Play button and test the app in the Unity Editor itself. Refer to the sections “Building the App” and “Setting up Play Mode” for more information on preparing your app for testing.

Note: The Kudan Unity Plugin does not currently support the Markerless Tracking Method in Play Mode. In order to test the markerless ArbiTracking, you will need to build the app to an Android or iOS device.

7. In order to use the Marker mode of the camera, you will need to print the marker onto a sheet of A4 paper. The marker is the image called “lego” (the one filled with assorted Lego bricks) that can be found in KudanAR -> Samples -> Textures. Once it has been printed off, click the button in the lower left of the screen, labelled “Marker”. This will change the tracking method to Marker-Based Tracking. Point your camera at the picture of the lego (or, if you have a webcam, point the webcam at the picture) and a sphere will appear on it.

Congratulations on your first Augmented Reality app using KudanAR. We can’t wait to see what you can make!