op + or alphablend?

    Jitter

    Roman Thilenius
    Sep 16 2023 | 3:48 am
    redoing some old stuff of mine.
    i am using jit.op @op + in a serial array to mix still images against each other.
    but the 8 bit resolution of the + operator becomes quite inaccurate very soon (say like... layer 8 is already performing + 12% instead of + 12.5%)
    can i get op + to work in 32 bit somehow? or would you rather do that using the alphablend object?
    (i do not need the alpha layer but have it included one everywhere, so you could just mix 2 of the "char 4" images using [alphablend] without the need to artificially create any alpha layer content)

    • Roman Thilenius's icon
      Roman Thilenius
      Sep 16 2023 | 3:54 am
      no, sorry i am using xfade, not alphablend. xfade supports any type.
      Share
    • Matteo Marson's icon
      Matteo Marson's icon
      Matteo Marson
      Sep 18 2023 | 2:35 pm
      Hi Roman,
      I'd suggest to use jit.gen, because inside it the operations are floating point
      Max Patcher
      In Max, select New From Clipboard.
      Show Text
    • Roman Thilenius's icon
      Roman Thilenius's icon
      Roman Thilenius
      Sep 18 2023 | 5:14 pm
      that way of performing addition with matrixes looks intriguing.
      but can you explain why the first bang only gives me paprika?
    • Rob Ramirez's icon
      Rob Ramirez's icon
      Rob Ramirez
      Sep 18 2023 | 6:12 pm
      An unfortunate side effect of adapt mode in matrix ops. Set adapt 0 to workaround this if needed:
      Max Patcher
      In Max, select New From Clipboard.