• Stars
    star
    207
  • Rank 188,934 (Top 4 %)
  • Language
    C#
  • Created over 5 years ago
  • Updated almost 4 years ago

Reviews

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

Repository Details

Use Kinect's depth feed with Unity's VFX Graph

Kinect VFX Graph

kinect-vfx-graph

This is an example of how to use the depth camera feed from the Kinect with Unity's VFX Graph. The code in this project is heavily inspired by Rsvfx by Keijiro Takahashi.

Requirements

  • Unity version that support the VFX Graph
  • The Unity package relies on the Kinect for Windows Unity package that can be downloaded separately here.

How to use

Add the Kinect VFX prefab to your scene. In your VFX Graph, use the KinectPointCloudMap render texture as input for a 'Set Position From Map' node. The color data for each depth point is available in the KinectColorMap render texture.

Alternatively you can use the Kinect VFX Mapped prefab instead. This does also depth mapping like the Kinect VFX prefab but the internal workings are different. The positional accurancy should be slightly better but I had better performance with the Kinect VFX prefab.

TODO

  • Improve the positional accuracy of the mapped points.