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.
- Unity version that support the VFX Graph
- The Unity package relies on the Kinect for Windows Unity package that can be downloaded separately here.
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.
- Improve the positional accuracy of the mapped points.