assigning different textures with jit.gl.multiple
I am making multiple instances of jit.gl.videoplane using jit.gl.multiple. On each videoplane I want a different texture, and I am trying to do so with the @texture attribute of jit.gl.multiple.
In the provided code I have 3 textures saved in instances of jit.gl.texture as t0, t1, and t2.
As I understand it, the "base" texture (so t0) should be defined in the jit.gl.videoplane object, and then in jit.gl.multiple you provide a char matrix with indices for the different textures in the texture list.
However this does not work for me. I can not find any video or documentation that explains in a detailed way how to do this. Can anyone help me?
Running Max 8.6 on a MacBook Pro
You need to inform jit.gl.multiple of the name of all textures you want to use using the texture attribute or a "texture" message followed by the name of all textures you want to use. The numbers in the texture matrix will refer to the index of the texture name in that list.
@TFL Amazing, thank you!