A little bit of knowledge every day 002-play Kinectwrapper Some records

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.