strech texCoords

Mar 17, 2012 at 9:48am

strech texCoords

i have a texture like

i would like to stretch(?) it without affecting its edge coordinates
like so

Mar 17, 2012 at 10:12am


– Pasted Max Patch, click to expand. –
Mar 17, 2012 at 10:14am

you should make a mesh feed by a 3 3 matrix to setcell and make any distortions you want, texturize it, et voilà.
here’s a dirty patch, sorry but I think it does what you want.
Ask if any questions.

– Pasted Max Patch, click to expand. –


  1. screenshot.png
Mar 17, 2012 at 10:29am

i had the feeling i shouldn’t mess with the texcoords but manipulate the mesh matrix instead.
would like to use jit.vexpr to get more precision, but your method is sound. keepin’ it simple



You must be logged in to reply to this topic.