Stereolabs ZED - Oculus
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
- First, download the latest version of the ZED SDK on stereolabs.com.
- For more information, check out our tutorial on using the ZED and Oculus Rift and read the ZED API documentation.
Prerequisites
- Windows 64 bits
- ZED SDK 2.0 and its dependencies (CUDA 8.0, OpenCV 3.1)
- Oculus SDK (recommended 1.13)
- [GLEW 1.12](http://glew.sourceforge.net or in the dependencies ZED SDK folder)
- SDL
Build the program
Download the sample and follow these instructions:
- 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. |