slivers of video, how to reassemble all of the matrices?

dappertutto's icon

The patch below is for a projection mapping project, so i need to individually position each sliver/slice of video. That rules out submatrix, right? Its crucial i retain the original dimensions of the original video in every sliver/slice, as seen in my attached example patch.

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

Any thoughts? I must be missing something.

Rob Ramirez's icon

strongly recommend you use GL for this.

check out the brand new Videos & Graphics tutorials released with the 7.2 release for a more in depth explanation (found under Help->Reference->Documentation Home, links on the bottom of the left grey ‘Contents’ sidebar). Video and Graphics tutorials 1, 9 and 10, and the GL Texture Output guide are all relevant to this.

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

jit.gl.cornerpin will help with the mapping, and jit.gl.pix can be used to get your slices.
i've pasted a basic example that maps two slices to two cornerpin objects, and includes a custom jit.gl.pix patcher that does zooming, offsets, and cropping with gl textures: