several videoplane and transparency

Aug 6, 2012 at 9:05pm

several videoplane and transparency

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. –
#63878
Aug 7, 2012 at 4:27pm

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. –
#230349
Aug 7, 2012 at 8:58pm

thanks once again!!!

#230350

You must be logged in to reply to this topic.