Bonjour a tous,
voila le code d´une fonction que j´utilise pour faire une translation suivant z:
void anim_translatez(double zdebut, double zfin, double pas, int idtexture)
{
while(zdebut ! = zfin)
{
glBindTexture(GL_TEXTURE_2D, 00); / / texture noir
// efface image precedent
glBegin(GL_QUADS);
glTexCoord2f(0, 0); glVertex3i(-1, -1, zdebut);
glTexCoord2f(0, 1); glVertex3i(-1, 1, zdebut);
glTexCoord2f(1, 1); glVertex3i(1, 1, zdebut);
glTexCoord2f(1, 0); glVertex3i(1, -1, zdebut);
glEnd();
zdebut += pas; / / on avance l´image
glBindTexture(GL_TEXTURE_2D, idtexture); / / texture choisi
// dessine un carre
glBegin(GL_QUADS);
glTexCoord2f(0, 0); glVertex3i(-1, -1, zdebut);
glTexCoord2f(0, 1); glVertex3i(-1, 1, zdebut);
glTexCoord2f(1, 1); glVertex3i(1, 1, zdebut);
glTexCoord2f(1, 0); glVertex3i(1, -1, zdebut);
glEnd();
glFlush(); / / force l´affichage
glutSwapBuffers(); / / on inverse les buffers
glutPostRedisplay(); / / fenetre redessiné
}
}
en fait j´essai de faire la meme chose sur x, mais je n´y arrive pas ! !! 
Merci par avance...
Bob