multiple textures layering on a single jit.gl.videoplane with blend_enable 1

phiol's icon

Hi all , this should be quick and easy.

I already (sort of ) found the solution to my problem,
but I need another method.

The patch will clearly demonstrate that
I want to layer multiple textures to a single jit.gl.videoplane.
it has a red_square frame.png image on top of a "sunset.jpb" image.

My patch will explain it better. But the problem is clearly my lack of understanding
the logics behind merging and layering multiple image inside a single jit.matrix and the use of jit.unpack. OVER using multiple planes layered one on top of another.

Thanks a lot in advance.

phiol

texture-layering-single-plane.zip
zip
phiol's icon

I found a solution using jit.gl.node @capture 1 but is there a simpler way ??
thanks everyone

phiol

texture-layering-single-plane-solution.zip
zip
Andro's icon
Max Patch
Copy patch and select New From Clipboard in Max.
Andro's icon

This method drops out 1 jit.gl.videoplane and one jit.gl.node, hope it helps, the jit.gl.slabs aren't necessary.