My unity version is 4.6 Kinect generation KINECTSDK 1.7 before using CSDN so-called 1.8 update version How can not read the color map and depth map found Wiki Wikipedia said is 1.7 updated this bug back to download the Kinect wrapper1.7 only read it, (it is estimated that the 1.8 update is not in the 1.7 update. )
Open the kinectexample scene, read the depth map is very simple, displaydepth script is, not clear is not my generation driver a bit of a problem, sometimes show no image, the Kinect unplugged and plugged in again (OMG ... )
In the Displaydepth script
Tex. SetPixels32 (Convertdepthtocolor (dw.depthimg)); a depth map showing all scenes by default
If you want to show people alone, comment out the line of code above, using the following line
Tex. SetPixels32 (Convertplayerstocutout (dw.segmentations));
Jump to the DepthWrapper.cs script to see segmentation all references and find out that it was done with culling.
If you don't see the shadow of the first picture in the right column,
Eh In fact, the name of the letter has already hinted you-----"convertplayerstocutout, yes, is cutout, this word is a bit familiar,
Yes, that's the material. Here, choose the shader with cutout. This way, once again, the shadow will appear as soon as the first player is identified. Of course, you can also use this stripped-out pixel for image processing and play some interesting effects.
A little bit of knowledge every day 002-play Kinectwrapper Some records