Add depth sensing sample and OpenGL tests

- Implemented a new sample application in main.cpp to capture and display a live 3D point cloud using the ZED SDK and OpenGL.
- Created test_opengl.cpp to demonstrate basic OpenGL rendering with depth testing using two triangles.
- Added test_points.cpp to visualize a grid of colored points in OpenGL, showcasing point rendering capabilities.
This commit is contained in:
2026-01-20 10:31:35 +08:00
parent 61ad8346af
commit e7c5176229
9 changed files with 2080 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# ZED SDK - Depth Sensing
This sample shows how to retreive the current point cloud.
## Getting Started
- Get the latest [ZED SDK](https://www.stereolabs.com/developers/release/)
- Check the [Documentation](https://www.stereolabs.com/docs/)
## Build the program
- Build for [Windows](https://www.stereolabs.com/docs/app-development/cpp/windows/)
- Build for [Linux/Jetson](https://www.stereolabs.com/docs/app-development/cpp/linux/)
## Run the program
- Navigate to the build directory and launch the executable
- Or open a terminal in the build directory and run the sample :
./ZED_Depth_Sensing
### Features
- Camera live point cloud is retreived
- An OpenGL windows displays it in 3D
## Support
If you need assistance go to our Community site at https://community.stereolabs.com/