Skip to content
ZED SDK interface sample for OpenGL
C++ CMake
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Update for 3.0 ZED SDK release Jan 24, 2020
CMakeLists.txt Update for 3.0 ZED SDK release Jan 24, 2020
LICENSE Initial commit Apr 18, 2018 Update for 3.0 ZED SDK release Jan 24, 2020

Stereolabs ZED - OpenGL

This sample demonstrates how to capture video and depth image with the ZED SDK in GPU memory and display them directly with OpenGL using CUDA - OpenGL interoperability.

Getting started


  • Windows 10, Ubuntu LTS
  • ZED SDK and its dependencies (CUDA)

Build the program

Download the sample and follow the instructions below: More

Build for Windows

  • Create a "build" folder 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
  • Build solution

Build for Linux

Open a terminal in the sample directory and execute the following command:

mkdir build
cd build
cmake ..

Run the program

  • Navigate to the build directory and launch the executable file

  • Or open a terminal in the build directory and run the sample :

    ./ZED\ openGL(.exe)
You can’t perform that action at this time.