getting started with unity3d and oculus rift

16
Getting started with Unity and Oculus Rift SDK 0.4.4 Maia Cordero

Upload: maia-cordero

Post on 15-Apr-2017

464 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Getting started with Unity3D and Oculus Rift

Getting started with Unity and Oculus RiftSDK 0.4.4

Maia Cordero

Page 2: Getting started with Unity3D and Oculus Rift

Easy ? NOT ...It can be tricky getting Unity and the Rift to work together the first time. Below are the steps that worked for me.

References::https://developer.oculus.com/documentation/http://talesfromtherift.com/getting-started-with-unity-and-oculus-rift-sdk-0-4-0/https://www.youtube.com/watch?feature=player_detailpage&v=iqgr4XCjpzk&x-yt-ts=1422579428&x-yt-cl=85114404https://share.oculus.com/app/oculus-tuscany-demoand more ...

Page 3: Getting started with Unity3D and Oculus Rift

Step 1. Downloads you’ll need:Download / Upgrade to Unity 4.6.2

http://unity3d.com/unity/download

Download the Oculus Runtime y Oculus SDKhttps://developer.oculus.com/downloads/

Oculus Unity SDK documentation: 1.1 Requirements

You must have Unity Pro 4.5 or later installed on your system to build the Unity demo.

Much of these instructions can be found within the Oculus Unity Integration Guide (part of the Oculus Unity SDK download).

Page 4: Getting started with Unity3D and Oculus Rift

Step 2. Install the Oculus Runtime:

After installation, it will ask you to reboot (presumably

this is for the new Direct HMD driver). Do that.

Then run it START – Oculus Runtime –

OculusConfigTool

Note: If a firmware update is available you should

install that now.

Note 2: If you want to set your height in a profile

you can do that now also.

Page 5: Getting started with Unity3D and Oculus Rift

Test correctly installed

When the HDMI and USB are plugged in we can see the

information of the Oculus. The device does not need to

be powered on.

Add new User with your preferences. Turn on the device

and click on Show Demo Scene.

If you can see a scene with a desk and while turning your

head you can see different parts of the office, the

Oculus is working perfectly.

Page 6: Getting started with Unity3D and Oculus Rift

Step 3. Configurethe Oculus Runtime:

To work within the Unity Editor

you have to use Extended

Desktop (not Direct HMD

Access):Tools – Rift Display

Mode…

Page 7: Getting started with Unity3D and Oculus Rift

Step 4: Check the Rift resolution is correct:Now your Rift will appear as a normal

monitor to Windows and you can duplicated

or extend your windows desktop.

For me, that also meant the Windows

guessed the incorrect resolution. So open

Screen Resolution, and set it to 1280×800

(DK1) or 1920×1080 (DK2):

Page 8: Getting started with Unity3D and Oculus Rift

Step 5: Installing the Oculus Unity SDK:Unzip the SDK ovr_unity_0.4.4_lib.zip

I recommend copying both Unity packages to your Unity Standard Packages folder, that way they will

both appear in the New Project Wizard.

Copy OculusUnityIntegration.unitypackage and

OculusUnityIntegrationTuscanyDemo.unitypackage to the Standard Packages folder which is in

your Unity Editor folder.

Typically here: C:\Program Files (x86)\Unity\Editor\Standard Packages

Note: If you don’t see it, make sure the folder is correct, view the properties on your Unity shortcut

and verify the folder path.

Page 9: Getting started with Unity3D and Oculus Rift

Step 6: Creating the Tuscany Demo:Launch Unity, and name your project (eg: Hello Tuscany) and checkmark the Oculus Tuscany Demo package.

Page 10: Getting started with Unity3D and Oculus Rift

After clicking on Create you will see something like this...

Page 11: Getting started with Unity3D and Oculus Rift

Step 7: Disable Direct3d 11:You need to make sure Direct3d 11 is disabled, otherwise you will see a black screen.

Oculus Unity SDK documentation: 4.4.3 Editor WorkIf you plan to run your application in the Unity editor, you must use

extended mode. A black screen will appear if you run it in direct mode.

Make sure “Use Direct3d 11″ is unchecked:Edit – Project Settings – Player Settings

Also make sure Time Warp is check marked in the OVRCameraController (a child of the OVRPlayerController)

Page 12: Getting started with Unity3D and Oculus Rift
Page 13: Getting started with Unity3D and Oculus Rift

Step 8: Setup a Game view on your Rift screen:

- Make sure your Rift is powered on and looking through it you see the desktop

- Drag the Game view tab OUTSIDE of Unity, but NOT onto the Rift display

(Optionally make resize is smaller if you prefer)

- Position your mouse just to the left of the maximise button (to the left of the close

button).

- Tap down (to drag), Hold your Rift to your eyes, and drag the game view onto your

Rift until you see the mouse pointer.

- Release the drag, move the mouse to tap on maximise and your set.

Only use “Free Aspect” with the Game View. Setting 16×10 (DK1) or 16×9 (DK2)

Finally, Exit Unity to double check the window position was saved for next time

Page 14: Getting started with Unity3D and Oculus Rift
Page 15: Getting started with Unity3D and Oculus Rift

Step 9: Play Tuscany:Re-open Unity, press PLAY button and put on your Rift. That’s it.

Page 16: Getting started with Unity3D and Oculus Rift

Enjoy Tuscany! And enjoy being able to see the Game view in the editor as well: