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.
Or if you want to strictly displace bands horizontally, you can use [jit.fx.repos]:
EDIT:
See this also (it's a variation of my second patch, from an old thread): https://cycling74.com/forums/jit-gl-pix-interpolation-while-sampling-texture#reply-5df25feb5ad0ad7ccae35343