need help with luma to aplpha shader

babette's icon

hi list,

i am trying to get a shader to work, which simulates a luma key
of an analog mixer.

i want to get the black areas of my videoplane transparent.
(scalable with tolerance)

i tryed the [jit.gl.slab foo @file co.lumakey.jxs], but i did not
get it to work and i can not find a help file for co.lumakey.jxs ...

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

here is my testpatcher.
perhaps someone can give me a hint :-)

Rob Ramirez's icon

set @blend_enable 1 on you videoplane

babette's icon

that solved the problem !
thanks a lot for the help :-)

Garrett's icon

Hi

I'm sort of doing something similar (but I think simpler) in mine I'm drawing my 'black' area using lcd so it's an known factor and it's that I want to make transparent rather than everything that is black in the videoplane - it's a set mask. I've found a few examples on the forum that do this but all the ones I've found don't seem to make the videoplane itself transparent (this example above is closer in that it does that). Anyway below is what I have combined with the above but of course if you play a video with black it's not right. Can anyone point out what I should be doing? Thanks.

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

Garrett