Forums > Jitter

several videoplane and transparency


Per
August 6, 2012 | 9:05 pm

hi!

I have a question about transparency when using texture in opengl through videoplane. as in this case Im using several videoplanes. im trying to make the uppermost videoplane transparent so only the green dot is visual.

(you can see whats behind changing the layer from 2 to 0)

how can I make the background of the jit.gl.sketch and jit.texture dissapear?

Im a bit counfused about this transparency thing ,,,

thanks

– Pasted Max Patch, click to expand. –

August 7, 2012 | 4:27 pm

you want to capture with a gl.node and set it’s @erase_color alpha value to 0.

then, on your gl.videoplanes set @depth_enable 0, @blend_enable 1, and use the @layer attribute to control the draw order.
the key point of overlaying videoplanes (or any gl object) with transparency is to set @depth_enable 0 @blend_enable 1 and use @layer.

– Pasted Max Patch, click to expand. –


Per
August 7, 2012 | 8:58 pm

thanks once again!!!


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