What is OpenGL® projection?

OpenGL® projection is a process and image resulting from translation of three -dimensional (3D) objects on a balanced two -dimensional (2D) image that can be displayed on the screen. The word "projection" in computer graphics programming concerns the fact that 3D objects in the scene must be moved or projected on a virtual 2D surface, so it can be displayed on a flat display on the device. Although the entire sequence of events taking a 3D object and portraying it on a 2D surface can be called a projection, the term is also more closely applied to a specific set of geometric transformations in the graphics pipe, which occurs as a step between other sads of transformations. Two specific types of OpenGL® design modes available for programmers are perspectives and orthographic.

challenge to create an OpenGL® projection is to take away that contains all objects in a given scene and adjust them by displaying when displayingOn the screen, the objects are in accordance with the projection mode, the volume display and the virtual camera settings. The monitoring volume is a visible area of ​​the scene from the location of the viewer on the scene or the position of the eye. Six numbers are defined by the observation bundle, including the right, upper, upper, upper and lower distance from the virtual center of the observation frame. In addition, two values ​​known as near and distant planes define the depth of the observation volume. This bundle defines what objects will be projected while all other objects out of volume will be ignored or cropped so that non -sitting parts are not evaluated.

The first OpenGL® projection mode that can be used is called orthographic projection. In this mode, the coordinates of the objects in the scene are not modified for their distance from the viewer or perspective. This means that all objects are drawn in the same brewing regardless of the distance from the viewer. This OpenGL® projection mode is most commonly used in 3D modeling programs, utilitiesOwl and applications that use 3D polygons to create 2D composite images and do not require accurate perspective.

Usually used screen mode OpenGL® is known as projection of perspective. In the perspective projection mode, objects in the scene are modified and placed according to their distance from the viewer. This means that objects that are more distant seem to be smaller. It also means that the objects in the scene are modified so that they slowly converge at the point on the horizon of observation known as a disappearing point. Perspective projection closely model how the real world appears and is used to create realistic rendering, unlike technical.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?