Hi, is there any way to set individual texture coordinates for each instance with jit.gl.multiple? This is not what i'm trying to do, but imagine you're trying to split apart or shatter one larger image into a grid of smaller individual videoplanes.
absolutely. since max 6 gl.multiple allows setting texplane_s/t as one of the glparams matrices.
here's a silly example i made way back when. it uses this feature to utilize a font-atlas with gl.multiple.
Good afternoon. I was hoping someone on here might help. I'm trying to get a cache of frames to instance across a series of jit.gl.gridshapes using jit.gl.multiple. Even if I can get the frame index how might I apply them throughout the group in succession?
from a quick look at the source, I believe you can have up to 256 texture names as args to the texture attribute (also the limit of values you can supply to the char matrix). so you need to construct the list of texture names in some logical order, prepend it with texture, and you can then control which texture is set to which instance via the texture_matrix input. so if you have "texture tex1 tex2 tex3 ...", you set the cell val to 0 for tex1, 1 for tex2, etc.
there may be some other limitation to the number of textures supported.