need some help with image shatter

ćwiek's icon

Hi!
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.

ćwiek's icon

and the attachment :)

3417.169.jpg
jpg
Wesley Smith's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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:

ćwiek's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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.

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 (:

ćwiek's icon

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

Andrew Benson's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Something like this might be better then.

ćwiek's icon

thank you so much guys!

ćwiek's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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!

3954.16na9.jpg
jpg
akee-rf's icon

found a solution?

Rob Ramirez's icon

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