How to Use Kudan and echoAR for Markerless Tracking
Tags: tutorial, unity3d, beginners, augmentedreality
Published: 2021-01-29 00:02:34


Here’s a great example demo that uses marker and markerless tracking with Unity, Kudan, and echoAR. The full demo can also be found on echoAR’s  [GitHub](https://github.com/echoARxyz/Unity-Kudan-echoAR-demo-Marker-and-Markerless-Tracking) .

![1.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1611877332575/1o_JXjtXd.png)

# **Register**

Don’t have an API key? Make sure to register for FREE at  [echoAR](https://console.echoar.xyz/#/auth/register).

# **Setup**

* Download and install the Kudan SDK in a new Unity project (note: Kudan only works on Unity 2018 and earlier).
* Enter your Kudan API Key into the Kudan Camera object on the Unity Editor.
* Create a new scene and add the Angel Bundle from KudanAR/Prefabs.
* On the MarkerTracking object nested below Kudan Camera, press “Add KARMarker Asset” and select ImageMarkers.KARMarker from the  [Assets folder](https://github.com/echoARxyz/Unity-Kudan-echoAR-demo-Marker-and-Markerless-Tracking/blob/master/Assets).
* Click the Markers dropdown arrow within MarkerTracking to show the list of Kudan Markers. Replace the existing marker with the NewKudanTrackable object that was created.
* Install the echoAR SDK into the project.
* Follow the instructions on our  [documentation page](https://docs.echoar.xyz/unity/adding-ar-capabilities)  to  [set your API key](https://docs.echoar.xyz/unity/adding-ar-capabilities#3-set-you-api-key).
* Overwrite the existing _echoAR/CustomBehavior.cs script with the new  [CustomBehavior](https://github.com/echoARxyz/Unity-ARFoundation-echoAR-demo-Living-Room-TV/blob/master/CustomBehavior.cs) file.
* Replace the angelStatue in Drivers/Marker and the Capsule in Drivers/Markerless with two echoAR prefabs.
* Add an apartment model into the echoAR console and use the metadata from Metadata.csv.

![2.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1611877341202/3anyJIwqX.png)

# **Run**

*  [Build and run the AR application](https://docs.echoar.xyz/unity/adding-ar-capabilities#4-build-and-run-the-ar-application).
* To change which image is being tracked at runtime for marker tracking, replace the “imageKey” attribute in the console with either “clouds”, “lego”, or “leaves” for the corresponding image in the  [Images folder](https://github.com/echoARxyz/Unity-Kudan-echoAR-demo-Marker-and-Markerless-Tracking/blob/master/Images).


![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/33smhs1eze9rh9826aks.gif)


![4.gif](https://cdn.hashnode.com/res/hashnode/image/upload/v1611877373095/9NBXLIpTl.gif)

# **Learn more**

Refer to our  [documentation](https://docs.echoar.xyz/unity/) to learn more about how to use Unity and echoAR.

# **Support**

Feel free to reach out at support@echoAR.xyz or join our support channel on  [Slack](https://join.slack.com/t/echoar/shared_invite/enQtNTg4NjI5NjM3OTc1LWU1M2M2MTNlNTM3NGY1YTUxYmY3ZDNjNTc3YjA5M2QyNGZiOTgzMjVmZWZmZmFjNGJjYTcxZjhhNzk3YjNhNjE).

> echoAR (http://www.echoAR.xyz; Techstars ’19) is a cloud platform for augmented reality (AR) and virtual reality (VR) that provides tools and server-side infrastructure to help developers & companies quickly build and deploy AR/VR apps and experiences.
Image for post


![5.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1611877371262/1oilVe2ms.png)