The description of the gluLookAt is as follows:
Let
F=centerX-eyeXcenterY-eyeYcenterZ-eyeZ
Let UP be the vector upXupYupZ.
Then normalize as follows:
f=FF
UP″=UPUP
Finally, let s=f×UP″, and u=s×f.
M is then constructed as follows:
M=s0s1s20u0u1u20-f0-f1-f200001 //???
gluLookAt is equivalent to
glMultMatrixf(M);
glTranslated(-eyex, -eyey, -eyez);

Can you explain the description above?Especially the define of M,the line with ???.
Thank you very much.

It would be interesting to know what exactly the OP doesn’t get about the function. Any specific questions or are you just not understanding anything at all?

The thing is, Alfonse is right in saying you don’t need to use gluLookAt, because if you get the math behind it, you can write up a function yourself. I suspect the OP doesn’t have a sufficient mathematical basis.