openGL coordinates of vertices into a matrix

Dec 19, 2011 at 2:27pm

openGL coordinates of vertices into a matrix

Hi,

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

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

– Pasted Max Patch, click to expand. –
#60754
Dec 19, 2011 at 2:36pm

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

#218648
Dec 19, 2011 at 11:38pm

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

http://cycling74.com/forums/topic.php?id=9950

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

– Pasted Max Patch, click to expand. –
#218649
Dec 22, 2011 at 9:41pm

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

– Pasted Max Patch, click to expand. –
#218650
Feb 1, 2012 at 3:52pm

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

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

#218651
Feb 2, 2012 at 12:09am

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.

– Pasted Max Patch, click to expand. –
#218652
Feb 2, 2012 at 12:12am

double post.

#218653
Feb 2, 2012 at 12:22am

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

– Pasted Max Patch, click to expand. –
#218654

You must be logged in to reply to this topic.