• Stars
    star
    252
  • Rank 161,312 (Top 4 %)
  • Language
    C#
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ZED SDK Unity plugin

ZED Unity Plugin

This package brings the features of the ZED cameras into Unity. It comes with prefabs to make adding advanced features to your project as simple as drag-and-drop, helper scripts to simplify custom integration, and numerous examples to see your camera in action and learn how it works.


Overview

Body Tracking AR/MR Point Cloud
bt planet pointcloud
Object Detection Dark Room Spatial mapping
od dark spamap
Object Placement ArUco Markers Green Screen
placement aru green

Compatibility

ZED Camera GPU AR/VR
CUDA 10.2 capability or higher
GTX 1060 or higher is recommended
HMDs compatible with OpenVR or Oculus
OS
Unity Version
ZED SDK Version
Windows 10/11
Ubuntu 18-22
Unity 2021.3 and newer
ZED SDK 4.0
Previous versions are supported by previous plugins

Get Started

To develop applications in Unity with your ZED, you'll need the following things:

  • Download and install the ZED SDK.
  • Download the ZED Plugin for Unity.
  • Import the Zed_Unity_Plugin_V4.0.X.unitypackage into Unity.
    • If you get an error saying The type or namespace name ‘Management’ does not exist in the namespace ‘UnityEngine.XR’, please go to Project Settings -> XR Plugin Management and Install the XR Plugin Management system by clicking the button.
  • Read the Basic Concepts and Build Your First AR/MR App guides to get started.
  • Explore the Samples included in the plugin.
  • The Main Scripts page of the documentation introduces the important scripts of the plugin and their parameters.

Example Scenes

After importing the plugin, pick and try some of the example scenes. Each is designed to demonstrate a main feature of the ZED. Some contain prefabs and example scripts that can be repurposed for your projects.

The overview is available in the documentation for the ZED Unity plugin.

  • Body Tracking: Animate a 3D avatar based on real-people movements using the ZED SDK Body Tracking module.
  • Dark Room: Your office is now a night club! Explore the lighting features coupled to the depth sensing to cast a laser show on your walls.
  • Drone Shooter: Defend yourself from drones that spawn around your room and shoot at you. Block lasers with your hand, and shoot back with the spacebar, or VR controllers if using the Oculus Integration or SteamVR plugin.
  • Green Screen: Aim your ZED at a greenscreen and hit Play to see your subject standing in a small town in the desert. You’ll see that the nearby crates still have all the proper occlusion, but the greenscreen background is replaced with the virtual background.
  • Movie Screen: Simple AR sample, playing a movie on a movable, scalable 3D screen integrated to the real-world. Demonstrates how 2D content can easily be displayed in a 3D, mixed reality scene.
  • Multicam: Integrate data from multiple ZED cameras in the same scene, at the same time.
  • Object Detection: Detect objects and people bounding boxes using the ZED SDK Object Detection module.
  • Object Placement: Place virtual objects on real-world surfaces using the Plane Detection capabilities of the ZED SDK.
  • OpenCV ArUco Detection: Print out ArUco markers, put them in view of your ZED, and let the battle of the drones begin. Shows how to easily interface the ZED with OpenCV for marker detection using a variety of included scripts.
  • Plane Detection: Run the scene and hold down spacebar to see if you’re looking at a valid surface where a bunny could stand. Release the spacebar and a bunny will fall from the sky and land on that surface with proper physics.
  • VR Plane Detection: Throw a plushie as far as possible, the distance is measured where it lands using the Plane Detection. Shows how plane detection can fit into a proper VR game.
  • Planetarium: A beautiful display of the ZED plugin’s basic mixed reality features, viewable with or without a headset. Watch as the planets are properly occluded by the real world.
  • Point Cloud: Visualize the depth retrieved by the ZED Camera directly into Unity, in the form of a Point Cloud.
  • Simple MR: Learn to create a basic AR app, with depth occlusion and camera tracking.
  • Spatial Mapping: Capture a mesh of your environment, allowing physical interactions between the real and virtual world.

Additional Resources

Want more details? Our 📖 Documentation has overviews and tutorials for getting started with specific features.

Got a problem you just can't seem to solve? Got a project you want to share? Check out our Community forums!

Bugs and fixes

You found a bug / a flaw in our plugin ? Please check that it is not already reported, and open an issue if necessary. You can also reach out to us on the community forums for any question or feedback !

By the way, we also have a special place in our hearts for PR senders.

More Repositories

1

zed-sdk

⚡️The spatial perception framework for rapidly building smart robots and spaces
C++
784
star
2

zed-ros-wrapper

ROS wrapper for the ZED SDK
C++
440
star
3

zed-python-api

Python API for the ZED SDK
Cython
206
star
4

zed-yolo

3D Object detection using Yolo and the ZED in Python and C++
Python
159
star
5

zed-ros2-wrapper

ROS 2 wrapper for the ZED SDK
C++
158
star
6

zed-opencv

ZED SDK interface sample for OpenCV
C++
137
star
7

zed-open-capture

Low level Linux camera driver for the ZED USB3 stereo cameras. API docs available here:
C++
101
star
8

zed-ros-examples

Examples for the ZED SDK ROS wrapper
C++
85
star
9

zed-unreal-examples

Stereolabs ZED - UE4 Examples
C++
77
star
10

zed-tensorflow

3D Object detection using the ZED and Tensorflow
Python
77
star
11

zed-UE5

ZED plugin and examples for Unreal Engine 5 (Standard Engine)
C++
65
star
12

zed-gstreamer

Package of GStreamer elements to interface with ZED Cameras
C++
62
star
13

zed-pcl

ZED SDK interface sample for PCL, the Point Cloud Library
C++
58
star
14

zed-multi-camera

ZED SDK sample with multiple ZEDs
C++
52
star
15

zed-docker

Docker images for the ZED SDK
Dockerfile
51
star
16

zed-pytorch

3D Object detection using the ZED and Pytorch
Jupyter Notebook
48
star
17

zed-openpose

Real-time 3D multi-person with OpenPose and the ZED
C++
42
star
18

zed-unreal-plugin

Stereolabs ZED - UE4 Plugin
C++
41
star
19

zed-opencv-native

Native stereo capture with OpenCV
C++
38
star
20

zed-ros2-examples

A collection of examples and tutorials to illustrate how to better use the ZED cameras in the ROS2 framework
C++
33
star
21

zed-livelink

ZED LiveLink Plugin for Unreal
C++
32
star
22

zed-matlab

ZED SDK interface sample for Matlab
C++
28
star
23

zed-oculus

ZED Viewer for Oculus Rift
C++
27
star
24

zed-aruco

ZED SDK samples using ArUco tag detection
C++
21
star
25

zed-tracking-viewer

[DEPRECATED] ZED SDK sample to show the tracking capability
C++
17
star
26

zed-csharp-api

C# API for the ZED SDK
C#
10
star
27

zed-3d-social-distancing

Using 3D Cameras to Monitor Social Distancing
C++
10
star
28

zed-ros-interfaces

ROS interfaces for the ZED ROS Wrapper
CMake
9
star
29

zed-ros2-interfaces

ROS2 interfaces for the ZED ROS2 Wrapper
CMake
5
star
30

zed-hub-examples

ZEDHub app tutorials
Python
5
star
31

zed-isaac-sim

NVIDIA Isaac Sim integration for ZED SDK
Python
5
star
32

zed-unity-livelink

ZED Livelink plugin for Unity
C++
5
star
33

zed-opengl

ZED SDK interface sample for OpenGL
C++
2
star
34

zed-openni

C
2
star
35

zedx-one-capture

Camera control API for ZED X One GMSL2 cameras from Stereolabs
C++
2
star