Skip to content

roelkok/Kinect-VFX-Graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.