Texture over mesh

plem's icon

Sorry for this basic question, but I really cannot figure this out. The question is simple: how to put a texture on a mesh so that it follows the height and fills the whole mesh with the image?
Looked everywhere but alas...

Thanks
Peter

Federico-AmazingMaxStuff's icon

Hi Peter, you mean to a jit.gl.mesh?
If that's the case you need to give it texture coordinates in its second input as I do in this video at this min:
https://youtu.be/UwfFY6KTd7w?t=713

plem's icon

Great! That was it. The jit.gen with the norm to the second inlet.
Thanks.
Peter

plem's icon

Although....
Sorry for this follow-up question.
Is there a way to let texzoom and texrotate from the jit.gl.mesh do their job?

Thanks anyway,
Peter

Federico-AmazingMaxStuff's icon

I think those attributes don't really work for the jit.gl.mesh, you'll have to zoom and rotate the texture yourself. Zooming is simply a matter of multiplying the texture coordinates, for rotation you can apply a 2D rotation matrix in gen to the norm coordinates.

plem's icon

Clear.
Great.
Thanks!

Federico-AmazingMaxStuff's icon

Glad it helped! If you need practical help with the patch let me know, I also have a free patch that does exactly that here:
https://www.patreon.com/posts/resize-translate-27074348

Rob Ramirez's icon

there are also Vizzie Transform modules that make this super easy:

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