PDA

View Full Version : Rotate a texture ?



02-22-2002, 11:18 AM
How can we rotate a texture 2D ? I rotate a GL_QUADS but the texture don't follow... Is there a function for the texture ?

FoxDie
02-22-2002, 11:28 AM
You must transform texture coordinates.

zed
02-22-2002, 11:40 AM
have u disabled texgen?
are u specifying texture coordinates for each vertice eg glTexCoord2f(0,0)

02-22-2002, 11:30 PM
Yes, I use the glTexCoord2f but the QUAD have a rotate of 45 (I don't use GenTex) and the texture is at 0... Is there a solution ?