Controlling colors with the jit.expr

alexandros's icon

Hi everyone,
Just wanted to ask how can one control colors with the jit.expr object. Just got a couple of patches published by Andrew Benson, and I'd really like to work with them, but it would be even better if I could choose the colors and their exact position. I've uploaded the specific patch. Thanks, Alex.

383.simple_shapes.maxpat
Max Patch
Rob Ramirez's icon

hi.
currently jit.gl.mesh does not support a color input matrix with lighting enabled.

also, it will ignore any input matrices other than the first input, if the first input matrix is more than three planes.

the solution is to disable lighting, and not provide a combined input matrix to the first input, but instead split the matrix and provide it for the corresponding input.

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

let me know if i should clarify further.

alexandros's icon

Thanks for the tip. I'll try to work it out.