GL Shapes with Chromakey Feedback

Aug 23, 2012 at 8:33am

GL Shapes with Chromakey Feedback

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.

#64069
Aug 23, 2012 at 8:46am

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

Attachments:
  1. simplified.maxpat
#231058
Aug 23, 2012 at 6:32pm

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. –
#231059
Aug 26, 2012 at 3:53pm

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

#231060
Aug 26, 2012 at 4:37pm

Yes, but it’ll work in 6.0.5

#231061

You must be logged in to reply to this topic.