moving camera after calling a display list

Hi,
I am new to OGL, and am having a hard time understanding why I can’t get the camera to move and look at my objects from different spots, angles etc…

my (simplified code looks something like this):

display() {

gluLookAt(0, 0, 10, 0, 0, 0, 0, 1, 0);
glCallList(theTorus);

}

Whatever values I enter into the gluLookAt command, the object always displays in the same spot. If I replace the glCallList() with direct drawing commands, I am able to change the viewpoint. Is there something about display lists that is preventing me from moving? Thanks.

Just a guess here, but do you call glLoadIdentity() when you build your display list?

Yes, I use glLoadIdentity()…

This is what I am building my display lists out of:

glLoadIdentity();
glTranslatef(tx,ty,tz);
glRotatef(ra,rx,ry,rz);
glBegin(GL_QUADS);

glEnd();

The translations and rotations here specify the initial position of the object. The pupose of the glLookAt() is the view the object from different positions.

actually I just took out the glLoadIdentity() and it works now. Thanks for your help!