Make a zoom

Hello, i want to make a zoom on an object and my code don’t work. Here is what I wrote in my loopback fonction when the mouse moves and the right button is pressed and after I recalculate my zoom variable.
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective((GLfloat)45.0f*(1.0+zoom),(GLfloat)largeur/(GLfloat)hauteur,0.1f,100.0f);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();

I think you would find it much easier if you just translated the object closer to the camera rather than messing with the projection matrix. Reading about glPushMatrix() and glPopMatrix() would probably be very beneficial as well.

Christopher Oat
ATI Research, Inc.
3D Application Research Group