Skip to content

stereolabs/zed-oculus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stereolabs ZED - Oculus

Note : A ZED mini is required to fully enjoy this tutorial, the usage of a ZED will introduce visual discomfort due to wide baseline.

This sample shows how to capture stereo video from the ZED and display it in an Oculus Rift headset. Works with Oculus DK2 and CV1.

Getting started

Prerequisites

  • Windows 64 bits
  • ZED SDK 3.x and its dependencies (CUDA). Last tested with ZED SDK 3.2.2
  • Oculus SDK (1.17 or later)
  • GLEW included in the ZED SDK dependencies folder
  • SDL

Build the program

Download the sample and follow the instructions below: More

  • Create a folder called "build" in the source folder
  • Open cmake-gui and select the source and build folders
  • Generate the Visual Studio Win64 solution
  • Open the resulting solution and change configuration to Release. You may have to modify the path of the dependencies to match your configuration
  • Build solution

Features

This sample show how to render the ZED stereo images in a Rift. It uses the CUDA-OpenGL interoperability to send images through opengl in the most effective way (without going back to CPU)

Keyboard shortcuts

Main Hotkeys Description
'c' Pause/Unpause the rendering
'q' Quit the application.

Support

If you need assistance go to our Community site at https://community.stereolabs.com/