Forums > Jitter

strech texCoords


March 17, 2012 | 9:48 am

i have a texture like
http://i.imgur.com/x0Aov.jpg

i would like to stretch(?) it without affecting its edge coordinates
like so
http://i.imgur.com/e5d8D.jpg

March 17, 2012 | 10:12 am

close?

— Pasted Max Patch, click to expand. —

Ad.
March 17, 2012 | 10:14 am

Hi,
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.
Ad

— Pasted Max Patch, click to expand. —

[attachment=188628,3557]

Attachments:
  1. screenshot.png

    screenshot.png

March 17, 2012 | 10:29 am

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

thanks

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter