issue converting second jit.pworld into a matrix

Tommy Scannell's icon

Hello, I'm sending visuals from touch designer via spout to access them in Max. I'm using jit.gl.spoutreceiver and sending that from a jit.pworld into some matrix objects to sonify the original texture. It works when I do one jit.pworld and matrix, but when I add a second instance for another spout stream, it won't convert, even though I can see the texture being rendered in the jit.pworld.

I thought it could be an issue with the naming of the matrix and world objects but that doesn't seem to be working.

I'm not super experienced with jitter so not sure if I'm missing something obvious, or whether it's an issue with having multiple spout streams.

Any tips in the right direction would be greatly appreciated :)

Thanks!

Max Patch
Copy patch and select New From Clipboard in Max.

Tommy Scannell's icon

Solved! Randomly opening and closing max seemed to fix :)

Rob Ramirez's icon

The recommended and more efficient approach for converting a texture to a matrix is to use jit.gl.asyncread (with an optional texture downsample prior to the readback)

Max Patch
Copy patch and select New From Clipboard in Max.