Slice an image in 4 rows and translate each row independantly
Hello, here is what I would like to do and I don't know how to do it...
I want to "slice" an image in 4 horizontal bands (4 rows) and have those rows move horizontally independantly one of each other. Of course using openGL...
I tried to use :
[jit.gl.bgf @basis noise.checker @scale 0. 4.]
I have 4 rows/bands, but can't move each of them horizontally.
Thanks !
Not sure what you want exactly.
Here's an example giving you 1 layer for each horizontal slice that you can move, rotate, scale, etc. individually, based on [jit.gl.subtexture] and simple math to get the dim and offset of each slice.
Max Patch
Copy patch and select New From Clipboard in Max.
Or if you want to strictly displace bands horizontally, you can use [jit.fx.repos]:
Max Patch
Copy patch and select New From Clipboard in Max.