blending textures on jit.gl.mesh

romainv's icon

Hi all,

i want to blend 2 textures on a same shape.
I use jit.gl.mesh to have my specific shape.
I have an image and a text to blend together.
I can select one or the other texture to be displayed on my shape but i cannot have both...

Any idea?

Moreover, i want to have my text black and controlle by alpha...

Thanks for your help

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

here is a little patch to understand...

romainv's icon

Hi, my problem is not solved, do you know where i can found some documentation on blending methods with Jitter?

Thanks

Rob Ramirez's icon

you can apply more than one texture with gl.mesh, however what you can't currently do is set the texcoords for more than one texture.

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

a solution is to use slabs to blend your textures prior to applying them to the gl.mesh. this has the benefit of giving you many more options and control over the compositing.

romainv's icon

Yes thank you very much !
But i want to mix a matrix with a text.
Your patch mix 2 matrixes...
How can i connect my jit.gl.text2d to jit.gl.slab ?