Skip to content

Latest commit

 

History

History
 
 

opengl gpu interop

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Stereolabs ZED - CUDA-OpenGL interoperability

This sample allows you to display a GPU sl::Mat directly with OpenGL, by using the CUDA - OpenGL interoperability.

Getting started

Prerequisites

  • Windows 7 64bits or later, Ubuntu 16.04
  • ZED SDK and its dependencies (CUDA)

Build the program

Download the sample and follow these instructions:

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 ..
make

Run the program

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

 ./ZED\ openGL\ gpu\ interop(.exe)