Apply Transformation Matrix in jit.gen – object?

Apr 24, 2013 at 10:07am

Apply Transformation Matrix in jit.gen – object?

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!

#67911
May 9, 2013 at 4:33pm

Are you doing this in 2D or 3D?

#244166
May 10, 2013 at 10:15am

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!

#244167
May 10, 2013 at 4:17pm

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.

#244168

You must be logged in to reply to this topic.