Forums > Jitter

simple transparent background

January 28, 2013 | 2:37 pm

Hello all, I’m trying to do something pretty simple in Jitter and need a little help. I am tracking my head with the Kinect and I want the coordinates of my head to dictate the dimensions of the circle, when I get closer it grows, further away it shrinks, up, down, left, right as you would expect – that bit I’ve achieved. I now want the circle to be overlaid over the original video so that it covers my head but you can still see my body and the rest of the video feed from the kinect- this I need help with. At the moments the circle is being made using jit.gl.gridshape but when it gets rendered with jit.gl.render it has a black background – how can I get rid of this?

Heres where I am at the moment

– Pasted Max Patch, click to expand. –

Thanks in advance! :)


January 28, 2013 | 3:01 pm

you need blend_mode on and depth_buffering off, additionaly put the shape on a higher layer to get not confused with banging order…

– Pasted Max Patch, click to expand. –

January 28, 2013 | 5:14 pm

Thats great, thanks ever so much Tobiasros. Just a couple of things, firstly something odd has happened to the dimensions of the pwindow. After applying your changes the video output has been squashed along the x plane leaving black bars along the sides (see picture). Also is there any way of reapplying the alpha channel you removed so that I can see ghost trails behind the moving dots? Thanks for your help! :)

[attachment=213459,4961]

Attachments:
  1. ScreenShot20130128at17.01.32.jpg

January 28, 2013 | 7:15 pm

you can set the videoplane to Transform_reset 2, then it adapts its size to your window. regarding the trails, here a quick way with two render contextes…

– Pasted Max Patch, click to expand. –

January 28, 2013 | 10:01 pm

That is fantastic Tobiasros, thank you so much for your help! :)


April 9, 2013 | 6:26 pm

Cheers guys…this thread really helped me out!!!!


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