shifting row > jit.expr <
hi,
it drives me crazy... i shortly droped into the jit.expr thing
specialy because of the jit.gl.multiple object.
now i want to set up a grid of videoplanes and control the position and color ...
i managed to arrange the planes in normal grid (8 x 3) but i need to shift the second row a little (have a look on the picture)
does anyone know the expression to get this done or any other easy solution.
thanks kM
Hi kM,
There's no way to know exactly what is happening without an example patch.
Zachary
sorry for my weird explanation ...
what i'm trying to come up with is quite simple ...
i tryed the expression
>jit.expr @expr "snorm[0]*9" "snorm[1]*2.5" "sin(smorm[0]*TOPI)"<
and filled the position matrix
to get my videoplanes arranged with jit.gl.multiple like this
o o o o
o o o o
o o o o
but i'm searching for an arrangement like this
o o o o
o o o o
o o o o
is there a way to do this with jit.expr, or do i need to use a jit.scissor >> jit.unpack >> jit.op >> etc hack
greetings kM
if you want to displace a row of objects in 3D like that, then you
could turn snorm[0]*0.9 to snorm[0]*0.9+cos(norm[1]*PI)
wes