less tiny video?

Jan 11, 2012 at 12:09am

less tiny video?

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. –
#61163
Jan 11, 2012 at 1:41am
#220443
Jan 11, 2012 at 7:42pm

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?

#220444
Jan 11, 2012 at 10:52pm

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

#220445

You must be logged in to reply to this topic.