gl.multiple objects with different textures

Ste's icon

Hello everybody,

What I am trying to achieve is multiple circles with different textures and after that move them with phys object.
I started thinking in a way that I can map a texture over all shapes and simply make the texture from different pieces. A am attaching my try, however this way I can not move the spheres because they are going out of the texture.

Can anyone provide me an advice, or is there other way to achieve this?

Thanks in advance!

Archive.zip
zip
antialias's icon

here's a way to assign textures to jit.gl.multiple:

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

Matth's icon

here's a way to do & assign multiple textures with poly resample one one input, but there is one bug.

Archive-2.zip
zip
Ste's icon

Thanks for a replay!

Okay there are 3 different texture objects here. Is it an easier way if I have 100 different jpg's for example? Maybe I am misunderstanding something, but can I use an array for textures or something similar?

Ste's icon

Thanks Matthieu, looks promising!

Matth's icon

A new version!! all textures are in poly~, if you want 100 textures its depend how many & what you put inside about interations

Matth's icon

oops!!

Archive-2-2.zip
zip
Matth's icon

ooups!!

Ste's icon

It would not occurred to me :). Thank you very much!