I REALLY need to start refreshing before i post
hopefully we're talking about 2d textures cos i dont know anything 3d textures. so we have our texture coordinates (a, b, c, d) i assume that your not trying freaky perspectuve effects so d=1 and c is irrelevant.
i am quite confused as to what effect your trying to achieve by rotating about the x and y axes, surely if you want to spin the texture you want to rotate it about the Z axis??
anyway, if you want to spin the texture about its center then first we have to move to the the center of the texture, then rotate, then move back, just like we would normally
glTranslatef(0.5, 0.5, 0);
glRotatef(angle, 0, 0, 1);
glTranslatef(-0.5, -0.5, 0);
make sure all required coordinates lie in the texture or you might include garbage data
Last edited by kev82; 09-03-2004 at 11:08 AM.