What is Polygon OpenGL®?

Polygon Open Graphics Library® (OpenGL®) is any object that is produced in OpenGL®, which consists of more than two peaks. Basically, any object that is not a point or line is considered a polygon. OpenGL®, like most graphics cards, usually have special optimizations that are mainly engaged in triangles or three -sided polygons, because triangles are the simplest type of polygon that can be made with the smallest peaks and sides. In some cases, four -sided or four -sided polygons can be processed by OpenGL®, especially in two -dimensional (2D) drawing modes. With the exception of the convex, simple OpenGL® polygon, most of the shapes with more than three peaks will eventually be divided into triangles by a process called Teselation, which can have dramatic side effects on the scene. This type follows very simple rules. The hips must be convex, which means that they do not create angles to the tops of less than 90 °. No edges can do each otherEm through and all only two lines can meet at a given peak. This limits a simple polygon to a 2D separate shape, such as a square or octagon, because if it were three -dimensional (3D), then some peaks would meet more than two lines.

In the construction of a very complex OpenGL® polygon, it is often easier to create an object in an external 3D modeling program. This not only allows a more convenient, visual environment in which an object can be created, but has another advantage that it provides a designer control over how tessel shapes are, so they do not cause problems when they are portrayed. Algorithms that portray the peaks according to the pattern can be created by polygon procedure.iral pattern.

Each polygon opengl® has a face, a solid area inside the shape lines. Although this behavior can be changed in general, each polygon is only visible only when its face is heading towards observationKamera. If the polygon is directed in the wrong way, it may become invisible, depending on the rendering regime.

Each polygon OpenGL® also has a value known as normal. Normal is used to define a direction that is facing the surface of the polygon. Although the polygon is clearly at a certain angle and in a certain position the normal surface can help create special texture effects or imitate physical properties that are not uniform. Normal for OpenGL® polygon can be set to any value, even negative values, although the results can be unpredictable.

IN OTHER LANGUAGES

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

How can we help? How can we help?