simple transparent background

Beep's icon

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?

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

Heres where I am at the moment

Thanks in advance! :)

Tobias Rosenberger's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

Beep's icon

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! :)

4961.ScreenShot20130128at17.01.32.jpg
jpg
Tobias Rosenberger's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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...

Beep's icon

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

paulie_h3's icon

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