Jit.gl.syphonclient - manipulating the output / blending sources

DocJones's icon

Hi guys ! I'm new to posting on the forum and very new to Max in general. I've hit a bit of a roadblock on my project, i've tried searching the forum and reverse engineering other patches but no dice, and i need a bit of a push in the right direction.

I'm working on a project that involves capturing video from my screen and sending that video feed to a small display, (i'm using ScreenCaptureSyphon and sending it to a Raspberry Pi with TCPSClient) .

I have my patch working to receive the capture in Max and send the video to the Pi just fine.
However, I'd like to manipulate the video in Max before sending it to the Pi. Say for example blend in another source, like putting the video through jit.robcross-pixels from the Jitter examples.


Is jit.op what I need ? How would I implement that in my patch ? What do I need to change so I can work with the Syphonclient output ?

Thank you very much for your help in advance, and I hope I'm not making you cringe with my stupid questions.

Here is a short video to help explain :

Here is the patch :

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

Rob Ramirez's icon

hi docjones.

syphonclient passes OpenGL textures (images processed on your GPU), as opposed to the jit.matrix family of objects (jit.op, jit.xfade, etc) which process image data on the CPU.

there are texture operator objects that can replace most common matrix operators, and they will usually take the form of jit.gl.slab or jit.gl.pix.

open a Reference window (Help -> Reference) and search for "Video and Graphics Tutorials" to learn more about working with video and textures in Jitter.

i've modified your patch to add some common texture operator objects:

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

DocJones's icon

Thank you so much ! This is a big help