Some question about jitter Matrix expressions??

kdcl's icon

Hi all,

I have some question in jitter ,like two video operation or matrix expressions?I read jitter recipe book and tutorials ,I can't understand the mean either.even I read this post .I can't understand @expr norm[1] how to used and how to work?
https://cycling74.com/tutorials/demystifying-expressions-in-jitter/

Should I read something about openGL book to understand the principle of mesh & texture on video & matrix in jitter?

Give me some suggestion
Thanks.

Brecht's icon

Hey there,

The expression norm[0] 'normalizes' the incoming matrix of the left entrance of the jit.expr object. In other words, if you have a matrix, say created by jit.noise 1 float32 3, and you run that through jit.expr @expr norm[0], the values will be 0. 0.5 and 1.
Try experimenting with small matrices and jit.print to see the result of the operations in the max window.

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

A small example (watch the values in the max window):