I have many objects on scene:
glPushMatrix();
glTranslatef(10, 30, -135);
glRotatef(90, 0, 0, 1);
glScaled(0.2, 1, 0.2);
glutSolidCube(30);
glPopMatrix();
glPushMatrix();
glTranslatef(40, 10, -100);
glRotatef(90, 0, 0, 1);
glScaled(0.2, 1, 0.2);
glutSolidCube(30);
glPopMatrix();
........
And I have that code but this cause that scene circle camera :/ Screen what I want: http://img861.images....us/i/camk.jpg/
//rotateValueX is a value which I am changing using keyboyard to rotate scene
float ray = 20;
float xCircle = ray * cos(PI * rotateValueX / 180);
float zCircle = ray * sin(PI * rotateValueX / 180);
gluLookAt(xCircle, 0, zCircle, 0, 0, 0, 0, 1, 0);