Jitter mapping question

djtoshi182's icon

Hello

I am making a jitter visual for a projection mapping.

1. I would like to make 50+ of white horizontal stripe filled on a single matrix, and control each stripes' opacity randomly and/or individually. (attached image)
2. Each stripes needs to be accurately mapped on the object. so I need to arrange each stripes pixel by pixel..

How can I make this simple as possible?

best,

j

bars.png
png
Tobias Rosenberger's icon
Max Patch
Copy patch and select New From Clipboard in Max.

this is a quick mod of a recently posted nurbs patch...

djtoshi182's icon

Thank you!!

can I mod this to control opacity for each stripes independently?
I would like to set each trigger for each stripes.

best,

Tobias Rosenberger's icon

yeah, thats easy. just fill jit.matrix 1 char 1 50 however you want (check "What is a Matrix?" and the first Jitter tutorials in the Help..

MJ's icon

like this

Max Patch
Copy patch and select New From Clipboard in Max.

maybe use syphon to port it to madmapper to do the mapping

Tobias Rosenberger's icon

mapping is already integrated in patch above (click on ctl-dots and drag them..)

djtoshi182's icon

Thank you so much Tobias and MJ,

what I was seeking is MJ's individual strip opacity control over Tobias patch's delicate arrangement of bars for mapping.

djtoshi182's icon

To Tobias,

Can I save the ctrl+dots, so I don't have to relocate those every time open the patch?

best,

Rob Ramirez's icon

send the matrix output from the phys.multiple into a jit.matrix object, and then use the "write" message to same that matrix to a file. you can then "read" the matrix back in and either output it directly to the ctlmatrix, or send as the input to the phys.multiple.

djtoshi182's icon

Thank you rob.
I tried to save and read the matrix. but it didnt work. could you show me an example patch that does?

I see the param scale from Tobias'patch

//

param scaling 0. 0.

//

but how can I change x/y position param for jit.gen?

If I change the position in jit.gl.nurbs,
I cannot contol the ctrl dots that seems not adjusted to new coordinate.

best,

J

Rob Ramirez's icon

for the matrix saving, show what you tried.

for the position, you have to modify the jit.gen.
create a param object: [param pos 0 0 0]
and create an addition object and insert it between the snorm and the multiply: [ + pos ]

you can now adjust the position using the pos parameter.