DMC1 _ Augment Reality

We are starting a new project. AR(Augment Reality)!

Augmented reality (AR) is a live direct or indirect view of a physical, real-world environment whose elements are augmented (or supplemented) by computer-generated sensory input such as sound, video, graphics or GPS data.

To download an AR software development kit, go to the website vuforia.com.

Click a register button and create an account.

After you create an account, go to the Downloads – SDK tab.

And click ‘Download for Unity’.

스크린샷 2016-05-16 오전 10.47.13.png

And also download this file.

http://db.tt/mXvO4uLj

This is the file which is going to be a tag image. (rock)

So the files you need is like this.

스크린샷 2016-05-16 오전 10.51.35.png

Inside the rocks zip file, there’s rocks.jpg.

스크린샷 2016-05-16 오전 10.51.46.png

Now we’re ready to begin! Let’s create a new project.

스크린샷 2016-05-16 오전 10.56.34.png

And before we start, we are going to change our platform to iOS.

스크린샷 2016-05-16 오전 10.58.27.png

Go to assets, and import the package you downloaded. (vuforia SDK)

스크린샷 2016-05-16 오전 11.00.05.png

And we are going to download ‘cute kitten’ in asset store.

스크린샷 2016-05-16 오전 11.02.21.png

We are going to delete the Main Camera.

스크린샷 2016-05-16 오전 11.16.46

And go to Assets > Vuforia > Prefabs. Find the AR Camera. Drag it to the scene.

I’ve set the position 0,0,0.

스크린샷 2016-05-16 오전 11.18.53.png

Inside the inspector of AR Camera, there’s a space for App License Key. We have to fill that space. Go to the vuforia website again, and get free license key.

스크린샷 2016-05-16 오전 11.22.25.png

Copy the license key, and we’ll going to paste in unity.

스크린샷 2016-05-16 오전 11.23.12.png

스크린샷 2016-05-16 오전 11.23.43.png

And go back to vuforia website, go to target manager tab.

스크린샷 2016-05-16 오전 11.25.26.png

Click ‘Add Database’.

스크린샷 2016-05-16 오전 11.25.54.png

Create a database and add target also.

스크린샷 2016-05-16 오전 11.28.10.png

Check ‘Single Image’, and browse a rocks.jpg file.

스크린샷 2016-05-16 오전 11.29.39.png

The rate is five stars. This means your picture is proper in AR. The picture should have lots of details and high contrast.

스크린샷 2016-05-16 오전 11.30.06.png

Now download database, select Unity Editor.

So we’ve got another unity package.

스크린샷 2016-05-16 오전 11.32.58.png

Import your custom package. Inside the vuforia > prefabs, there’s ‘ImageTarget’.

Drag it into your scene. The position is 0,0,o.

스크린샷 2016-05-16 오전 11.38.14.png

Drag your kittenNPC also into your scene.

스크린샷 2016-05-16 오전 11.40.40.png

And in Hierachy, drag kittenNPC into the image target. Now kitten became a child.

스크린샷 2016-05-16 오전 11.42.28.png

In AR Camera inspector, find Databade Load Behaviour script.

Load arClassDemoDB and check activate.

스크린샷 2016-05-16 오전 11.44.20.png

스크린샷 2016-05-16 오전 11.45.05.png

And go to image target. Find image target behaviour script.

Select your arClassDemoDB database.

스크린샷 2016-05-16 오전 11.46.14.png

스크린샷 2016-05-16 오전 11.46.46.png

Wow! Now click play button and see how it works!

Unfortunately, mine has an error in this step. When I click a play button, the unity program is suddenly shut down. T.T

So I decided to export to Xcode directly, and it worked!!

스크린샷 2016-05-16 오전 11.48.53.png

KakaoTalk_Photo_2016-05-23-02-18-13.png

KakaoTalk_Photo_2016-05-23-02-18-24.png

KakaoTalk_Photo_2016-05-23-02-17-59.png

KakaoTalk_Photo_2016-05-23-02-17-42.png

So cute!

I made different version of this.

스크린샷 2016-05-23 오전 3.10.18.png

KakaoTalk_Photo_2016-05-23-03-21-57_23.png

I suceeded to operate, but there’s a strange thing.

When I recognize the character, the character gets smaller like falling down.

After it gets smaller it disappears.. I don’t know why this is happen, so I should solve this problem in next class.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s