Forums > Jitter

GL Shapes with Chromakey Feedback

August 23, 2012 | 8:33 am

I’m still getting acclimated with GL – but I’m especially in the dark about jit.slabs/jit.gen functions…
What I’d like to do is pretty straight-forward outside of the GL realm: simply taking a matrix, chromakeying out colors, and feeding it back into itself, slightly askew.

I’ve seen the example of using jit.videoplane for feedback and seen the chromakey.jsx slab example – but I’m still pretty uncertain on how to combine these two elements, firstly…and importantly, how to expand this effect to 3-dimensional geometry, rather than flat planes.

Any direction would be greatly appreciated.


August 23, 2012 | 8:46 am

Here is where I’m at with the patch currently…

Attachments:
  1. simplified.maxpat

August 23, 2012 | 6:32 pm

The simplest way to do this kind of thing is to capture whatever geometry you want involved in the feedback process with a jit.gl.node. You can take the texture output of it and feed it into a chain of slabs. In the patch below, I’ve used an xfade for feedback. You’ll want to replace it with a chromakey. Also, I used a very simple translation in the feedback path for illustration purposes. You can do some much more complicated things there.

– Pasted Max Patch, click to expand. –

August 26, 2012 | 3:53 pm

Is that a 6.0.7 Max patch, Wesley? ;-)


August 26, 2012 | 4:37 pm

Yes, but it’ll work in 6.0.5


Viewing 5 posts - 1 through 5 (of 5 total)