Field 23+ has support for old-school Microsoft Kinect sensors, which, among other things, produce a depth map. Support is two-fold. First, there’s support in the Stage for a layer that happens to have the depth-map as a texture. Secondly there’s support for interrogating the depth map at various points directly.
Installation — Mac
Install Homebrewfrom here if you have not already done so — you’ll need the root password of the machine you are on (for the Logan center lab machines just ask). Then ask Homebrew, in a terminal, to go install the latest version of “FreeNect” for you:
Depth-map as texture
The Stage already supports textured layers with texture material from a variety of sources — images, ‘videos’, a ‘webcam’ etc. To that growing list, we’ll add the Kinect:
Option-up to begin this box yields:
Depth-map as data source
The code above is good for quickly putting something on the screen. More handy is writing code that accesses the depth map directly, and draws it in a different way: