Forums > Jitter

kinect depth image mask

March 5, 2012 | 12:06 am

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!

Aaron

– Pasted Max Patch, click to expand. –

March 5, 2012 | 3:24 pm

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

thanks
G


March 5, 2012 | 6:48 pm

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


August 7, 2012 | 9:09 pm

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.

[attachment=201059,4288]

Attachments:
  1. oil.png

Viewing 4 posts - 1 through 4 (of 4 total)