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.
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.
Is that a 6.0.7 Max patch, Wesley? ;-)
Yes, but it'll work in 6.0.5