Forums > Jitter

less tiny video?

January 11, 2012 | 12:09 am

I’m working from Andrew Benson’s TinyVideo patch from Jitter Recipes Book 3.

I’m trying to make the videos display as a 5 x 5 grid instead of a 10 x 10 grid in a window 800×600.

I can’t seem to figure out where the size of each grid cell is determined. I suspect it’s in the jit.expr objects, but I’m too new to this to figure it out.

Help?

– Pasted Max Patch, click to expand. –

January 11, 2012 | 1:41 am

check it out

http://www.cycling74.com/forums/topic.php?id=10000


January 11, 2012 | 7:42 pm

Eeep! I broke the first rule of forum posts (by not doing a thorough search for this question)… thanks Yair!

I sort of figured it out. I managed to get it to work how I’d like, but I’m not sure how.

Do you know how the last two parts of the jitter expression below map textures to the quad?

jit.expr @expr (cell[0]%4.>0.)*(cell[0]%4.<3.)*0.425-0.213 (cell[0]*0.5%2.>0.6)*0.31875-0.1575 0. (cell[0]%4.>0.)*(cell[0]%4.<3.)*0.2 (cell[0]*0.5%2.>0.6)*0.2

I get the fact that the first three parts assign the x,y & z vertex coordinates, and I understand that the last two parts are used to map the texture, but I’m not familiar enough with OpenGL to understand how these values work. Is it just a scaling value?


January 11, 2012 | 10:52 pm

wow uts been so long, i thinnk the c74 crew answered this in one of the threads.
best thing is to pick it apart using jit cell block and a small 10×10 dim matrix


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