compositing matrices per pixel

    Jul 26 2007 | 9:46 pm
    Hello all,
    I have several matrices, and would like to composite them per pixel.
    I.E. Say I have 10 matricies, and one control matrix of values 1-10.
    If the value of a control pixel is 1, it pulls that pixel from source
    matrix #1.
    Is there an easy way to do this via standard jitter, would the best
    way be javascript, or is the easiest way to mask all of the 10 source
    matrices and then composite them, or some shit I haven't thought of?
    Barry Threw
    Media Art and Technology
    San Francisco, CA Work: 857-544-3967
    IM: captogreadmore (AIM)

    • Jul 26 2007 | 11:56 pm
      Hi Barry,
      I hacked together the following example as one way of doing it. I had
      another thing worked out using a series of jit.peek~ and jit.poke~
      referencing a 3D matrix, but I figured this would make more sense.
      Welcome to the vortex...
      Andrew B.
    • Jul 27 2007 | 12:00 am
      Oh crap, forgot to attach...
    • Jul 27 2007 | 12:01 am
      ah heck, here's the really geeky version too...
    • Jul 27 2007 | 5:38 am
      I used to do it this way, but then jkc showed me the light: glue
      matrices in one wide matrix and use jit.repos.
      I have an old example of this, but won't be able to post it until
      later tonight.
    • Jul 28 2007 | 10:52 am
      And here's the example, the main stuff is in 'parts' subpatch.
      The 'control' matrix comes into right inlet of jit.repos. The
      'control' matrix is created in main patch, by simplifying input from
      Each color (red,green,blue,yellow) represents one layer. Instead of
      color matrices, 4 jit.qt.movies can be used as layers, creating a
      sort of collage...