problems adding chromakey to movie over jit.gl.videoplane
Hi - I'm trying to composite two videoplanes in jitter with chromakey, but I'm getting a stack underflow error:
jit.gl.texture: error disabling transform: GL Error: Stack underflow
I followed the chromakey example in Jitter (#10), and already had a working patch with blending of alpha video and the videoplane, but I can't get it working with a selectable chromakey. I feel like there must be something small I'm missing. I've attached my patch. If anybody knows what I'm doing wrong, I'd love the help.
The first (left) videoplane is pulled in from openFrameworks with syphon
As I've been reworking the patch, I've also seen this error:
jit.chromakey: doesn't understand "jit_gl_texture"
hi. the problem is you are trying to use a jitter-matrix operator (jit.chromakey) to operate on gl-textures (the output of syphon is a texture, not a matrix).
the solution is to use a jit.gl.slab object (which can take matrices and textures as input) to perform the chromakey.
here's a patch to get you started.
Such a big help Rob, thanks.
this is really a helpful patch, thank you Rob Ramirez. I for some reason foot that the output of syphon is a texture and was making myself crazy. I went ahead and added the syphon part if anyone is interested in this.