Forums > Gen

Apply Transformation Matrix in jit.gen – object?

April 24, 2013 | 10:07 am

Hello, fellow Maxicans

Just one quick question.
Perhaps I am too tired right now, but is there any way to apply a transformation matrix within the jit.gen domain, other than doing it "manually"? E.g. some kind of "apply-matrix-to-to-vector object" I’ve overlooked?

Thanks a million!


May 9, 2013 | 4:33 pm

Are you doing this in 2D or 3D?


May 10, 2013 | 10:15 am

In 3D

What I am doing (or trying to do) is to "un-perspective" my particle system coordinates using a inverted projection Matrix.
This because, I want to select particles with the mouse (or any other 2d input device).

Right now I am doing this "by hand" and it kinda seems to work, I think. ^^ (e.g. x’ = x*x1 + x*x2 + …)

Thank you!


May 10, 2013 | 4:17 pm

I think it would help to see an example patcher. Aren’t your particles already in world coordinates? Usually for mouse interaction, you unproject the mouse coordinate into world coordinates and then do any mouse-particle interactions, so I’m not sure I understand why you’d need to unproject the particle coordinates.


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