Rotate texture (x / y axis)

Jul 30, 2012 at 2:28pm

Rotate texture (x / y axis)

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 (http://cycling74.com/forums/topic.php?id=12402) 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

[attachment=200515,4259]

Attachments:
  1. Archive.zip
#63784
Jul 31, 2012 at 11:51am

Anyone??

#230030
Jul 31, 2013 at 6:01am

example 1 gives a grey plane..

i dont understand what you want to achieve

#257661
Jul 31, 2013 at 9:03am

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

#257687

You must be logged in to reply to this topic.