Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGL: Why triangles are chosen as basic building blocks?

I am starting openGL. Not able to understand why everything in graphics starts from triangles. Every article that I read says entire graphics rests on triangles.

What is the reason for choosing such a shape as a basic building block? I though square or circle would be much better and is logical because of the symmetry properties.

like image 417
user25108 Avatar asked Apr 06 '15 07:04

user25108


People also ask

Why do we use triangles rather than other polygons in rendering?

Triangles also are very memory efficient and can be sorted, and rendered extremely fast when using Triangle Strips which only need 1 point to be stored for each additional triangle after the first.

Why are triangles a popular graphics primitive?

Triangles are used in real-time computer graphics because they are planar and can be rasterized very quickly in hardware. Several triangles form a mesh. Meshes are used to represent just about anything in a 3D scene.

Why do games use triangles instead of quads?

This simple shape helps keep the number of computations needed for each detail as low as possible, allowing the player's computer to process these elaborate games.

Why are triangles used for meshes?

Many graphics software packages and hardware devices can operate more efficiently on triangles that are grouped into meshes than on a similar number of triangles that are presented individually. This is typically because computer graphics do operations on the vertices at the corners of triangles.


1 Answers

Great question. It's because triangles are the only polygons that can approximate other shapes while also being guaranteed to lie in a plane, which means they have well-defined and easy-to-compute surfaces.

like image 179
user541686 Avatar answered Oct 21 '22 07:10

user541686