openGL coordinates of vertices into a matrix

t's icon

Hi,

I am trying to rotate a 2x2 plane in openGL and get the x,y,z coordinates of ABCD vertices into a matrix. Is that possible?

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

PS: there are two 2x2 planes in a patch below because I was trying two different methods...

t's icon

...I would like to use ABCD coordinates as 4 camera positions...

t's icon

in case anyone else is interested, i found a solution in this topic:

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

it is not exactly what i was looking for, but it does exactly the same thing that i needed

Rob Ramirez's icon

hi t, just wanted to let you know you can do this all with matrixoutput mode 2, and simple transform attributes to the gridshape:

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

t's icon

That is SOOO AWESOME!!! Thank you Robert!!!

PS: Sorry for replying so late, I missed your answer.

Wetterberg's icon
Max Patch
Copy patch and select New From Clipboard in Max.

There are fun things to be found when doing it with matrices, though - like chopping a GL structure in two, treating them differently and recombining them into one odd freak, all using basic jitter. I love that.

Wetterberg's icon

double post.

t's icon
Max Patch
Copy patch and select New From Clipboard in Max.

and here is the easy version, without scary equations, using only jit.gridshape @matrixoutput2: