how to animate a texture !?

hello eveybody!
I want to move a sky’s texture, as if I am a tower in the sky, but for now I do not know how to animate a texture, if you know how to post your answer! it’s really urgen

Hi,

You can move/animate texture coordinates into a spheric or 3D texture for example.

For to animate the clouds on the sky, you can update the content of the texture on each frame or use slices in a 3D texture (where each slice can be mapped to a sphere for to have a spherical map for example)

You can find a tutorial for clouds generation on http://www.gamedev.net/reference/articles/article2085.asp

And/or use multiple textures and bind/interlace sequentially each texture one after the other (in a PAL/SECAM video, we use 25 even fields and 25 odd fields per seconds for to display a video at 50 fps)

If you want to move, rotate, scale your texture then u can use the texture matrix http://www.tar.hu/gamealgorithms/app02lev1sec4.html

thanks for your answers !
My idea is to fly a robot, why I want to move the sky like fate as the animation gives the impression that the robot flies! So if you can, give me the code to animat sky ! PLZ

It would be something like
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glTranslatef(x, y, z);

It isn’t difficult.