Forums > Jitter

need some help with image shatter

Feb 23 2012 | 7:00 pm

I read a lot about the excellent Jitter Recipe 36 TinyVideo, and jit.expr but after many failed attempts, I have to give up. I understand tutorial Demystifying Expressions in Jitter, and plunges into "jit.expr and shatter" topic, but I think I am too stupid for that… Now I am looking for another way to shatter the image consist of 16 per 9 squares. I want to randomly swap their place with a frequency of about 50 milliseconds. Do you have an idea for a simpler solution than jit.expr? As always I am extremely grateful and really appreciate your knowledge. I upload the picture in which I would like to shatter cells.

Feb 23 2012 | 7:02 pm

and the attachment :)


  1. 169.jpg


Feb 23 2012 | 9:33 pm

The mesh.shatter example can be modified to perform this task. You basically need to change the original shape to a plane and pipe in a texture coordinate matrix through the jit.gen object that calculates the shatter geometry. I was curious at how this would look, so I tried it myself:

-- Pasted Max Patch, click to expand. --

Feb 23 2012 | 10:18 pm

wow, thanks for your work! :)
maybe i didnt explain my problem well. I am dealing only with changing the coordinates of texture, leaving the position. maybe i will post my patch, showing what i have already done.

-- Pasted Max Patch, click to expand. --

in my patch i want to get rid of the black border around the squares, and dont change the size of the thumbnails from the 169.jpg image. I would like only to random the position of each cell with the others. I dont know if i explained it well, you have to forgive me (:

Feb 23 2012 | 10:19 pm

also in my patch the textures of the little squares arent mapped well..

Feb 24 2012 | 1:11 am

Something like this might be better then.

-- Pasted Max Patch, click to expand. --

Feb 24 2012 | 11:11 am

thank you so much guys!

May 25 2012 | 11:25 pm

hi! i found, that there is some problem with chosing the texture. If i am right i should be able to chose the texture, feeding texcoord inlet with float matrix, from 0 to 1. the texture change however i am loosing a lots of source textures (the small ones from jpg) – i ve got about 23 textures, from 16*9 grid of textures. i was trying to analyze the whole patch, but i am getting lost everytime.
thanks for help!

-- Pasted Max Patch, click to expand. --


  1. 16na9.jpg


May 29 2012 | 3:10 pm

found a solution?

May 29 2012 | 5:32 pm

hi napentro. can you describe what this patch is supposed to do, and what is not working for you?

Viewing 10 posts - 1 through 10 (of 10 total)

Forums > Jitter