Forums > Jitter

openGL coordinates of vertices into a matrix



t
Dec 19 2011 | 2:27 pm

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. --


t
Dec 19 2011 | 2:36 pm

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


t
Dec 19 2011 | 11:38 pm

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. --

Dec 22 2011 | 9:41 pm

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. —

t
Feb 01 2012 | 3:52 pm

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

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

Feb 02 2012 | 12:09 am

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. --

Feb 02 2012 | 12:12 am

double post.


t
Feb 02 2012 | 12:22 am

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


-- Pasted Max Patch, click to expand. --

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

Forums > Jitter