Rotate texture (x / y axis)

Garrett's icon

Hi

I'm trying to show a texture in a shape drawn in a jit.gl.sketch. The shape is rotated back on the x axis but I want the texture to be corrected in the opposite direction to that rotation so that angle of the shape is impossible to see (see attached diagram). I've tried the tex_plane manipulor demo posted here (https://cycling74.com/forums/what-is-tex_map-and-with-what-it-eat) but I'm not sure if that's possible to modify to rotate on the x (or y) axis and I've tried an alternative version with gltexcoord offsetting the mappings but that just warps the texture. There are examples of both in the attached zip.

Is this possible with ether of these ways or perhaps a third which I've yet to try, cutting up my texture image, remapping it in a matrix and then making a texture out of that (the least flexible solution - I'd imagine trying to get the angle of this right will be hell)?

Garrett

4260.Archive.zip
zip
Garrett's icon

Anyone??

MJ's icon

example 1 gives a grey plane..

i dont understand what you want to achieve

Rob Ramirez's icon

since you're already specifying texcoords in the second method, just change them so the texture is rotated however you like.