shifting row > jit.expr <

Dec 8, 2007 at 12:46pm

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

#34937
Dec 8, 2007 at 6:54pm

Hi kM,

There’s no way to know exactly what is happening without an example patch.

Zachary

#118499
Dec 9, 2007 at 2:15am

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

#118500
Dec 9, 2007 at 2:22am

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

#118501

You must be logged in to reply to this topic.