Monthly Archives: April 2016

DMC 1_Cardboard Demo (1)

Now we will make a cardboard demo app.

Make a new project. Go to buildsetting and swithch platform from PC to iOS.

And in the assets, click import import cardboard sdk and demo package file.

Next, delete main camera.

스크린샷 2016-04-18 오후 12.16.30

And we will make a plane. Go to GameObject > 3D Object > Plane.

스크린샷 2016-04-18 오후 12.17.04.png

And I made its scale 4/1/4.

스크린샷 2016-04-18 오후 12.18.02

스크린샷 2016-04-18 오후 12.18.18.png

And in the ‘mesh renderer’, you can change plane’s skin.

스크린샷 2016-04-18 오후 12.20.35

Click the circle beside Element 0.

스크린샷 2016-04-18 오후 12.22.38.png

I selected GroundPlane. You can download other free ground plane in asset store.

Next, go to the assets > prefabs, select ‘cardboardMain’.

스크린샷 2016-04-18 오후 12.23.55.png

Drag it to the center.

스크린샷 2016-04-18 오후 12.25.13.png

And the position is 1/1/1.

스크린샷 2016-04-18 오후 12.27.05.png

스크린샷 2016-04-18 오후 12.27.16.png

And we will add a sphere.

스크린샷 2016-04-18 오후 12.33.29

스크린샷 2016-04-18 오후 12.34.48

The sphere’s position is 1/1/5.

스크린샷 2016-04-18 오후 12.34.57.png

And add a cube. (Position : 1/1/-5)

스크린샷 2016-04-18 오후 12.37.12.png

스크린샷 2016-04-18 오후 12.37.31.png

CardboardMain is parents. There’s two little different camera. It allows to look around properly.

스크린샷 2016-04-18 오후 12.41.27

Now let’s create ‘dots’.

In the assets, UI > prefabs > cardboardReticle.

스크린샷 2016-04-18 오후 12.42.16.png

Do not drag into the scene. Just drag it to the hierarchy inside Main Camera.

스크린샷 2016-04-18 오후 12.43.40.png

스크린샷 2016-04-18 오후 12.44.39

Our dots!! Nice.

We can also change the color of dots.

스크린샷 2016-04-18 오후 12.46.27.png

스크린샷 2016-04-18 오후 12.46.42.pngSo pretty..

스크린샷 2016-04-25 오전 10.36.30.png

Next, we will add an Event System.

스크린샷 2016-04-25 오전 10.38.50

Add a component ‘GazeInputModule’.

And in the Main Camera, we will add a component ‘Physics 2D Raycaster’.

스크린샷 2016-04-25 오전 10.43.52.png

And inside the cube, we will add component ‘Event Trigger’.

스크린샷 2016-04-25 오전 10.48.51.png

I did it same to the sphere.

스크린샷 2016-04-25 오전 10.49.03.png

Inside the ‘Event Trigger’, click Add New Event Type. And there’s various option we can choose. We selected ‘PointerEnter’.

스크린샷 2016-04-25 오전 10.50.34.png

Next, choose function. BoxCollider > bool isTrigger.

스크린샷 2016-04-25 오전 10.54.49.png

And choose cube by clicking little circle. (Do it same with sphere.)

Now if we gaze the cube or sphere, the dot will get bigger.

And we will going to walk around to the plane.

To walk around, we have to add some code.

I downloaded from our DMC1 blog.

Inside the assets, make a new folder named ‘Scripts’.

And drag the code inside to the folder.

You can find it in the filter, or asset folder.

스크린샷 2016-04-25 오전 11.41.13.png

스크린샷 2016-04-25 오전 11.45.54.png

Set a speed, and check the box ‘Walk When Look Down’.

Now we can walk around our plane when we look down!

스크린샷 2016-04-30 오후 7.19.37.png

And when we look at our cube or sphere, the dot gets bigger.

스크린샷 2016-04-30 오후 7.18.58.png


Now we will make a moving cube.

Create a new scene. And don’t delete Main Camera.

Make a plane, and add a cube on it.

And drag ‘accelerometer’ script to the cube inspector.

스크린샷 2016-04-30 오후 8.01.06.png


IMD 1_To Do List (3)

Now we will going to fill out itemViewController.swift code.

스크린샷 2016-04-12 오전 10.42.36.png

스크린샷 2016-04-12 오전 10.43.47.png

We have to choose itemViewController.

스크린샷 2016-04-12 오전 11.45.22.png

Than we will add a ‘Navigation Item’ to our viewer. Drag it to top of your viewer.


스크린샷 2016-04-12 오전 11.44.48.png

We will connect a line Title to navigation item. Click show.

스크린샷 2016-04-12 오전 11.43.49.png

스크린샷 2016-04-12 오전 11.46.56.png

And change the title of navigation item. (Detail View)

스크린샷 2016-04-12 오전 11.47.53.png

Second, we will add two ‘Bar Button Item’. For cancel and save button.

스크린샷 2016-04-12 오전 11.48.56.png

Change its name ‘cancel’ and ‘save’.

스크린샷 2016-04-12 오전 11.54.09.png

And open the coding screen. Add a code of these button.

스크린샷 2016-04-17 오후 6.39.06.png

스크린샷 2016-04-17 오후 6.39.19.png

Now let’s simulate our app!

스크린샷 2016-04-12 오후 12.28.39.png      스크린샷 2016-04-12 오후 12.28.25.png

Wow!! I can add my schedule!

DMC 1_Virtual Reality with Google Cardboard

Now we will going to learn about virtual reality. Virtual reality or virtual realities (VR), also known as immersive multimedia or computer-simulated reality, is a computer technology that replicates an environment, real or imagined, and simulates a user’s physical presence and environment in a way that allows the user to interact with it. Virtual realities artificially create sensory experience, which can include sight, touch, hearing, and smell.

We can experience virtual reality with google VR cardboard. We can get this easily by the website.


My smartphone size is iphone6, so I got small one. If you use iphone6+ or Android phone that is bigger, than you should choose big one.

You can assemble this cardboard yourself like this.


And download ‘Cardboard’, ‘NYT VR’ application. These two apps are really good to experience ‘VR’.

You can just open your app and  put your smartphone inside the google cardboard.

It was really amazing. You can look around 360-degree. You can fly, you can do fishing, you can put some plants in the ground. When you play with this cardboard, you can experience time warp also. It was really amazing.

Now go back to our real world, let’s make our own VR world with unity, and bring it to our cardboard.

First, you should download cardboard sdk / demo file. Import package to your unity.

스크린샷 2016-04-16 오후 10.56.07.png

스크린샷 2016-04-16 오후 10.56.18.png

And go to the build setting. Change its platform to iOS.

스크린샷 2016-04-16 오후 10.59.34.png

And click Player Settings.

스크린샷 2016-04-16 오후 11.31.36.png

You should uncheck Portrait, Portrait Upside Down, Landscape Right.

And go to Other Settings.

스크린샷 2016-04-16 오후 11.33.03.png

You have to choose target device iPhone Only.

Than you can click build and save it.

스크린샷 2016-04-16 오후 11.01.59.png

You’ll see this screen after it saved. Just double click Xcode file.

Make sure you have most recent version of Xcode and iOS. If not, you’ll have an error.

스크린샷 2016-04-16 오후 11.38.03.png

If you got this error box, you should update your Xcode.

스크린샷 2016-04-17 오전 12.17.41.png

I have lots of error, but it’s okay. Connect with your smartphone, than you’ll have your own VR app to your phone!


스크린샷 2016-04-17 오전 12.17.49.png

So nice!!!


DMC 1_Making Water

This time, we learned how to import an 3D objects.

These are the website where we can download 3D objects.

You should install ‘Blender’ program to use blendswap’s objects.

You can find some free objects in there, but free is not always perfect.

After downloading your objects, you can just drag and drop into your assets.

If you want to make a collider, and walk inside in your house.

You can just create 3d cube, and add a component.

Next, we will going to make a water.

스크린샷 2016-04-04 오전 11.47.22.png

Import Environment Package here.

And make your terrain to fill water. Choose your sky for the reflection.

스크린샷 2016-04-10 오후 5.14.52.png

Inside the Standard Assets > Environment > Water > Prefabs

There’s daytime, night time water. For more upgraded water, you can go to ‘water 4’ folder and choose advanced water. That’s more realistic version. (But it will make your file heavy)

스크린샷 2016-04-04 오후 12.01.11.png

스크린샷 2016-04-04 오후 12.05.54.png

First one is basic daytime water, and second is advanced water.

There’s more wave in advanced water.

When your project is finished, you can export to real application.

스크린샷 2016-04-04 오후 12.18.06.png

You can choose resolution and quality of your app. Also possible to add an icon!