about glLookAt

Could anyone be so kind to specify the way to find the equivalent commands to glLookAt(1.0,1.0,1.0,1.0,0.0,1.0,1.0,0.0,1.0)?
Thank you for your help!

check mesa’s source code prolly www.mesa.org or someit like that

No, but http://mesa3d.sourceforge.net/

I assume you mean the gluLookAt() function.

The first three coordinates are the position of the eye in the world. The second three coordinates are the center which the eye is looking at in the world. The final three coordinates are the up vector. Like so:

gluLookAt(0.0, 10.0, 10.0,
0.0, 0.0, 0.0,
0.0, 1.0, 0.0);

This would position the camera to a point at 0x, 10y, 10z and be looking “down” at the origin of the scene (0x, 0y, 0z), and be situated so that positive along the y axis (0x, 1y, 0z) was the “up” direction.

Hope that helps. By the way, bookmark this page for any questions about function specifics. I find it very helpful. http://www.iro.umontreal.ca/~dift3730/docs/GL/



[This message has been edited by Glossifah (edited 11-27-2000).]