Hi guys,
I have got a quite special problem with gluLookat.
I work on an program that has got an opengl window as child window in an WINAPI window.
My proglem is that the gluLookAt routine has no influence on the shown image!
I have got implemented following code in the routine which is called at WM_SIZE messages:
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(60.0f,GLfloat)width/(GLfloat)height,5.0f,1000.0f);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
gluLookAt(LEN_Z*2., LEN_Y*2.+1000., LEN_X*2.,
LEN_Z*2., LEN_Y*2., LEN_X*2.,
0.0, 0.0, 1.0);
LEN_X/Y/Z are constants.
I wondered why dont see anything and found out that the camera is still looking at the old origin. I also tried to tilt the camera by using 1.0, 0.0, 1.0 as last vector but there was no difference in the shown image(which consists of simple geometric forms).
I wonder because the gluPerspectiv function works perfect and it is in the same routine…
I would be very happy if you could tell me any guesses why this dont works.
Thank you!