How to realize gluLookAt in OpenGL ES 2.0 on Tizen
How to realize gluLookAt in OpenGL ES 2.0 on Tizen
BY 24 Aug 2015Native Application Development
In OpenGL ES 1.1, we have an convient tool gluLookAt() to set the view point in the world coordination. But this has been deprecated in OpenGL ES 2.0.
Adjust the position and direction of camera will see different faces or parts of the objects on the device screen. Below is a picture to illustrate this.
In fact, there is a transforming matrix can reprensent the camera’s position and direction and where it lookat, we could done this by ourselves, just following the algorithm in gluLookAt(). Below are fake codes for the transfroming of view.
How to realize gluLookAt in OpenGL ES 2.0 on Tizen
In OpenGL ES 1.1, we have an convient tool gluLookAt() to set the view point in the world coordination. But this has been deprecated in OpenGL ES 2.0.
Adjust the position and direction of camera will see different faces or parts of the objects on the device screen. Below is a picture to illustrate this.
In fact, there is a transforming matrix can reprensent the camera’s position and direction and where it lookat, we could done this by ourselves, just following the algorithm in gluLookAt(). Below are fake codes for the transfroming of view.
You can find the codes for Tizen in the code snippet
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio