Forums > Jitter

Controlling colors with the jit.expr

April 15, 2010 | 8:07 am

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.


April 15, 2010 | 9:04 pm

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.

let me know if i should clarify further.

– Pasted Max Patch, click to expand. –

April 17, 2010 | 4:26 pm

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


Viewing 3 posts - 1 through 3 (of 3 total)