Code Monkey home page Code Monkey logo

zed-examples's Introduction

Fork from the official ZED examples

This repository contains, among the ZED official examples, a TouchDesigner TOP operator for skeleton traking for the ZED 2 Camera. The template for the TOP operator comes from TouchDesigner Plugin Template

Installation

Preparation for development on Windows

Install Visual Studio Code community edition

Install CMake

Install the Zed SDK, I have tested it with 3.6.1 and CUDA 11.1.

Clone this repository and follow these instructions to build the examples.

Now in the build folder, you should have all the Zed Official examples ready to run. Open Visual Studio, open the ALL_BUILD solution. Among all the examples, select "body tracking" and set it as starting project (right click and then "set as starting project"). Right click on "build". If there are no error, set the project in Release mode (menu on the top). Run the solution pressing on the play button, if a window opens, and the application is able to detect the a skeleton, your ZED SDK is installed correctly and you can proceed further.

Custom TOP Operator

If the previous step works, open Visual Studio(2017) -> File -> Open -> Cmake and open the file "ZedTop/cpp/CMakeList.txt". Press Cmake -> Build all. In Visual Studio 2019, the Cmake menu is not there anymore. Click on the menu Build -> Build all. If you receive a message like "Build all succeed" everything went well.

If there is no "release 64" mode, click on "manage configuration" -> green button + -> Release 64, right click on the header ot the tab, right click save.

Copy the file 'zedTop/cpp/out/CustomTOP.dll' inside your TouchDesigner bin folder(usually C:/Program Files/Derivative/TouchDesigner/bin/).

Now copy to 'C:/Program Files/Derivative/TouchDesigner/bin/' all the files that are in "C:\Program Files (x86)\ZED SDK\bin"

example

Open TouchDesigner, create a new CplusPlus TOP and as dll give the path 'C:/Program Files/Derivative/TouchDesigner/bin/CustomTOP.dll'

You should be able to perform skeleton traking

example

How to edit the custom TOP operator

Open Visual Studio. Then -> File -> Open -> Cmake and open the file "ZedTop/CMakeList.txt". Make your edits. Click on "Build All". If it builds without any error, copy the file 'zedTop/cpp/out/CustomTOP.dll' inside your TouchDesigner bin folder(usually C:/Program Files/Derivative/TouchDesigner/bin/).

Troubleshooting

Sometimes, the camera does not turn on, you can see that the blue light on the front of the camera it is not on. In that case, close touchdesigner. Open the Zed Camera Viewer utility and wait until the blue light is on. Open Touch Deisgner, add a CPlusPlus top, as plugin path select C:/Program Files/Derivative/TouchDesigner/bin/CustomTOP.dll

zed-examples's People

Contributors

adujardin avatar bvallon-sl avatar edap avatar nesnes avatar obraun-sl avatar p-yver avatar qt-truong avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

m1gun0v

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.