problems adding chromakey to movie over

    Mar 07 2013 | 6:38 pm
    Hi - I'm trying to composite two videoplanes in jitter with chromakey, but I'm getting a stack underflow error: 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

    • Mar 07 2013 | 6:59 pm
      As I've been reworking the patch, I've also seen this error:
      jit.chromakey: doesn't understand "jit_gl_texture"
    • Mar 07 2013 | 8:06 pm
      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 object (which can take matrices and textures as input) to perform the chromakey.
      here's a patch to get you started.
    • Mar 07 2013 | 9:20 pm
      Such a big help Rob, thanks.
    • Feb 07 2014 | 7:47 pm
      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.