Skip to content

randydijkstra/Oculus-Reality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Oculus-Reality

Use the Oculus Rift to create true Virtual Reality

We believe that the Oculus Rift can be used for more than just virtual reality gaming. It can be used to make the next big step in creating Augmented Reality. We hooked up two usb cameras to the Oculus Rift and combined the input to get a view with actual depth. We are also using to the OpenCV/OpenCVSharp library in Unity. This will allow us to create a base for many Augmented Reality applications.

Greetings from the developers of Oculus Reality,

Randy Dijkstra (@Ereinion25), Ricardo Snoek (Website)

Alt text

HOW DOES IT WORK?

In short: We hooked up 2 USB cameras, put the feed into the Unity Game Engine and ran a script to detect objects. We want to use OpenCV for camera input analysing. The library contains a wide variation of many nifty features.

For the current example we don't make use of OpenCV just yet. We have made preparations for the implementation of OpenCV. It will enable to create all sorts of augemented reality features in the future.

HOW TO SET UP

IMPORTANT Be sure to follow every step in the description in order to save yourself some unneeded trouble.

This is a guide to help you set up your project.

Requirements:

  • Patience
  • Oculus Rift devkit
  • 2 USB cameras. We used two disassembled Logitech C270's. Those are very small and thus easy to mount unto the Oculus Rift headset.
  • Unity 4 Pro. Oculus Rift support is at the moment only available in the Pro edition.
  • OpenCV & OpenCVSharp

Step 1 Hook up the USB cameras and make sure you have video input. Mount them onto the headset somehow. We used 3d-printed brackets. A bit of ductape will also do, as long you have positioned them right.

Step 2 Install Unity Pro 4

Step 3 Install OpenCV. Guides for platforms can be found in the following links:

Step 4 Install OpenCVSharp If you are on Mac: Copy paste the dylibs from the 'OpenCVSharp' folder into the '/usr/local/lib' folder.

Step 5 Open a new project in Unity.

About

Use the Oculus Rift to create augmented reality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published