kinect v2 with Jitter on windows 10

Guillaume Mercier's icon

Hi everybody, it's been years since I use Max/Msp/Jitter and it was on Mac now i'm on Windows.

I'm working on a little interactive installation.

What I want to do it's take the data from a kinect v2 (I installed the SDK and Runtime it works + I got dp.kinect2 a maxpatch for the kinect v2).

Imagine a space separates in 4 zones.
If someone come into zone 1 it trigger video 1. Let say 4 meters from the kinect.
If this someone go in the zone 2 between 3 to 4 meters from the kinect. It triggers video 2 and 3.
If this someone go in the zone 3 between 2 to 3 meters from the kinect it triggers video 3 and 4.
If this someone go in the zone 4 between 1 to 2 meters from the kinect it triggers video 4, 5 and 6.

Thanks a lot.

Capture-d’écran-1.png
png
diablodale's icon

We exchanged some emails (not sure if this post is before/after). Did the emails give you what you wanted?

Jill's icon

I have a student trying to do the same. Can we make the discussion public?

diablodale's icon

dp.kinect and dp.kinect2 can definitely provide the data you need. You could use the Z value from the user location message that they both output. The Z value in that message is the distance to/from the Kinect in real-world coordinates. Here is a link to the dp.kinect2 wiki (will be the same on dp.kinect) on this topic https://github.com/diablodale/dp.kinect2/wiki/Message-based-Data#user-location

Max Patch
Copy patch and select New From Clipboard in Max.

With that Z, you can then use Max's builtin objects to separate that Z value into ranges. You will need to use several more objects/messages to load video clips and play them. The Jitter tutorials that come with Max do a good job of guiding you on how to load and play videos. Even Tutorial #1 will show you how to load and play a movie. Below is a quick-n-dirty example using the built in (select) object.