jit.gl.multiple texcoords

Zachrkn's icon

EDIT: For the second time running, I've somehow managed to post to the MaxMSP forum when I thought I was posting to the Jitter forum. Very sorry!

Hi. I'm trying to take control of the texcoords of a texture displayed on jit.gl.multiple objects.

A search of the forums tells me this question has been asked several times before, but there's still something missing here.

This post has Wes providing a semi-solution. However, the shader in this solution has the effect of distorting the image around the edge.
https://cycling74.com/forums/texture-mapping-not-working-with-jit-gl-multiple

Jasch asked a number of years ago the same thing I'm asking now - how can we do this without distortion?

The reference materials indicate that the message tex_plane_s_matrix and tex_plane_t_matrix should allow me to specify what named matrix to use for these texcoords, but either I'm not doing it right, or the reference materials is incorrect. If these *are* supposed to work, could someone post an example patch of how it works, please?

Thanks!
Zach

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

here's an example of using tex_plane_s/t matrices.
if you still need more help, post what you have so far.

Zachrkn's icon

That's wonderful, thank you so much Rob!