gluLookAt and the modelview matrix

I posted this message in the beginners forum and didn’t get a reply. So, I guess this is the next best place.

I am struggling with gluLookAt(…). Could someone please give me an indepth explanation
of it? For example, say I am given the
eye point, the at point and the up direction,
how do I formulate the modelview matrix?

                 Thanks for your time.

Sorry but I do not know the answer.

The thing is, if nobody answers you, you should try to download the source code of MESA or the reference OpenGL implementation by SGI and look at their gluLookAt function…

Hope it helps !