PDA

View Full Version : glulookat



tigeryhong
01-28-2003, 09:49 AM
Can I find the OpenGL commands that are equivalent to
gluLookAt(0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0)? Thank you very much

Stack Overflow
01-28-2003, 10:17 AM
Can I have a more explanatory question, Thank You.

Edit: Here is a gluLookAt (http://www.cevis.uni-bremen.de/~uwe/opengl/gluLookAt.html) description, but I don't know if you are looking for that.

- VC6-OGL

[This message has been edited by VC6-OGL (edited 01-28-2003).]

nexusone
01-28-2003, 10:23 AM
I have not got time to convert, but you can replace gluLookAt with the following:

gluLookAt( eye_location, look_at_point, eye_rotation)

This is a rough idea of how the code will look, plus a few math routines not in the example.

glRotate( look_at_point )
glTranslate( eye_location )
glRotate( 0, 0, eye_rotation )


Originally posted by tigeryhong:
Can I find the OpenGL commands that are equivalent to
gluLookAt(0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0)? Thank you very much