Display multiple images

opt out's icon

Hey folks,

First time poster and total max newbie.

I have a project I'd like to develop and a friend suggested Max might be the best way of achieving it.

I have a very large amount of images (50, 000 +). I would like to project images from this batch randomly in a 10x10 'way'.

So 10 images across X 10 images down, randomly selected and updated every couple of seconds.

Do you think this is doable with Max and if so could you point me in the right direction?

Thanks,

Opt out.

Rob Ramirez's icon

i think Max is a perfect tool for this, as long as you're willing to put some time in.

for displaying images and video you first need a jit.world object. this manages the display window, as well as something called a render context (the thing that actually draws). next you need an object to draw the image, jit.gl.videoplane is a good choice. to load the image you can use jit.matrix, and for randomly selecting images from a folder you can use the umenu object and one of several random number generators objects (random, drunk, urn, urn-jb).

here's a very basic start showing 2 rows of a 4x4 grid. to calculate scale and position attributes you divide 1 by the gridsize to get the scale, and multiply that by 2 to get the position offsets.

search the forum for examples of using umenu to load a folder for files and randomly select them.

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

opt out's icon

Hey Rob,

Thanks so much for your reply and the information. Hoping to purchase Max over the weekend :)

I'll probably be back with more questions...but you've definitely put me on the right track.

Thanks again,

OptOut

proppjones's icon

Hi Opt Out
first off, I am not an expert. But have cobbled together a patch that might point you in a direction. Disclaimer I have built this for my personal use and am constantly playing with it. Perhaps you can make some improvements on it. Best of Luck . When you get MAX/MSP I have found the tutorials to be invaluable.

image_flow_8_23C.maxpat
Max Patch
Image flow with urn