kinect depth image mask

Aaron Sherwood's icon

Hi,

I'm using alphaglue to create a mask from the Kinect's depth image and apply that mask to it's RGB image. The problem is the mask is grey, I need it to be black. I've experimented around in the cc.alphaglue.jxs file without much luck. Can anyone let me know how to do this? The patch is below.

Thanks!

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

Aaron

jobbernaul's icon

im not getting any grey mask. Not sure if its not working or im being an idiot

thanks
G

Andrew Benson's icon

The background color of OpenGL scenes are gray by default. You are seeing that color because the videoplane is transparent in the masked areas. If you'd rather see black, just change the jit.gl.render @erase_color to 0 0 0 1

Aaron Sherwood's icon

andrew, thanks, that worked great! i didn't see your response for a long time and was searching for the answer again and stumbled across your reply to my own post. i used it in a performance, here is an image from the system.

jobbernaul, just give a bang to the loadbang and then it should work. i don't think loadbang sends a bang when pasting the patch.

4288.oil.png
png