Original Post
Ok, I have a cloud texture mapped over my players head. I am trying to get the texture to move over the surface of the quad, without affecting the other textures of course. I cannot get it to work. Here's an idea of what I'm trying.
anyone know how to do this?
[edited by - xg0blin on December 27, 2002 3:02:10 AM]
static float trantex = 0.0f; ... glMatrixMode(GL_TEXTURE); glLoadIdentity(); glTranslatef(0.0f, 0.0f, trantex); glMatrixMode(GL_MODELVIEW); glBindTexture(GL_TEXTURE_2D, textures[2]); glBegin(GL_POLYGON); glTexCoord2i(0, 0); glVertex3f(-128, 32, -128); glTexCoord2i(1, 0); glVertex3f(128, 32, -128); glTexCoord2i(1, 1); glVertex3f(128, 32, 128); glTexCoord2i(0, 1); glVertex3f(-128, 32, 128); glEnd(); trantex += 0.01; glMatrixMode(GL_TEXTURE); glLoadIdentity(); glMatrixMode(GL_MODELVIEW);