PDA

View Full Version : how can i use similar gluLookAt in openGL|ES 2.0?



balladry
07-31-2012, 09:02 AM
As i know, gluLookAt API is not exist in GL|ES 2.0.
so i had found a way to replace the API like below.
http://iphonedevelopment.blogspot.com/2 ... ookat.html (http://iphonedevelopment.blogspot.com/2008/12/glulookat.html)

but when i use the way, the result also seemed wrong.
Especially, i could not use as following functions in GL|ES 2.0.
glMultMatrixf(m);
/* Translate Eye to Origin */
glTranslatef(-eyex, -eyey, -eyez);

Of cause, i have tried to use another way to replace the two functions.
but the result also seemed wrong.

Please, Do you have any idea to fix this problem?