Apply Transformation Matrix in jit.gen - object?

mark2e's icon

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!

Wesley Smith's icon

Are you doing this in 2D or 3D?

mark2e's icon

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!

Wesley Smith's icon

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.