Overlay jit.graph on top of jit.window or jit.world

leaozinho's icon

Hi, jitter newbie here :-)

I would like to somehow render the foreground elements of a jit.graph's output on top of a video that I have playing in jit.world (or it could be jit.window I guess). Is this possible? Basically:

1. somehow isolate the foreground elements of jit.graph's output (maybe make the background transparent?)
2. overlay this on top of the video already playing in jit.world (or jit.window if necessary)

TFL's icon

Convert the matrix from jit.graph to a texture, do some basic calculation to make the background transparent using jit.gl.pix, and send the result to a jit.gl.videoplane or jit.gl.layer.

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

leaozinho's icon

@TFL thank you so much. this is exactly what I wanted. "simple" things like this are hard to figure out for myself as I'm familiarizing myself with the objects, so having people that are willing to help out means a lot.