Camera To Open Gl Helper
Helper class to convert a pinhole camera into arrays used as matrices when drawing projective 3D scenes with OpenGL.
Typically, when using OpenGL, a projective matrix defines the projective geometry (i.e. frustum) of the scene, using parameters such as field of view, near and far planes. This kind of information is partially encoded in pinhole camera intrinsic parameters.
OpenGL typically also uses a model-view matrix, which defines the amount of translation and rotation between the camera and vertices to be drawn in the scene. This information is contained in a pinhole camera as its extrinsic parameters (i.e. rotation and camera center).
Finally, OpenGL uses the model-view projection matrix, which is the combination of both the projection and the model-view matrices to draw the scene.
Properties
Functions
Obtains the camera center for provided pinhole camera.
Computes model-view matrix using provided pinhole camera.
Computes model-view matrix using provided camera rotation and center.
Computes model-view matrix using provided pinhole camera.
Computes model-view matrix using provided camera rotation and center.
Computes model-view projection matrix using provided projection and model-view matrices.
Computes model-view projection matrix using provided pinhole camera, viewport size expressed in pixels, near and far planes and field of view.
Computes model-view projection matrix using provided intrinsic pinhole camera parameters, viewport size expressed in pixels, near and far planes and field of view.
Computes model-view projection matrix using provided projection and model-view matrices.
Computes model-view projection matrix using provided pinhole camera, viewport size expressed in pixels, near and far planes and field of view.
Computes model-view projection matrix using provided intrinsic pinhole camera parameters, viewport size expressed in pixels, near and far planes and field of view.
Computes projection matrix using provided pinhole camera, viewport size expressed in pixels, near and far planes and field of view.
Computes projection matrix using provided intrinsic pinhole camera parameters, viewport size expressed in pixels, near and far planes and field of view.
Computes projection matrix using provided pinhole camera, viewport size expressed in pixels, near and far planes and field of view.
Computes projection matrix using provided intrinsic pinhole camera parameters, viewport size expressed in pixels, near and far planes and field of view.
Obtains the intrinsic parameters contained within provided pinhole camera.
Obtains the camera rotation for provided pinhole camera.