Branch: master
Find file History
Latest commit 06d6b6b Sep 21, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
include Fix #41 headers path 2.3 Jan 24, 2018
src Update license Sep 21, 2018
CMakeLists.txt Update for ZED SDK 2.3 Jan 19, 2018 minor update and fix Aug 10, 2017

Stereolabs ZED - Spatial Mapping

This sample shows how to capture a real-time 3D map of the scene with the ZED API. It demonstrates how to:

  • Start spatial mapping to capture the surrounding area.
  • Display the live reconstruction as a wireframe mesh over the image using OpenGL.
  • Process and save the mesh in OBJ format.
  • Use the lower-level API to asynchronously capture, update and display the mesh.
  • Access and retrieve chunks of the entire mesh.

Getting started


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

Build the program

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 :