Thursday, April 23, 2015

Class 12: How 3D Computer Graphics Work


Class 12:  How 3D Computer Graphics Work

How do 3D graphics work? This is a great question and in the following paragraphs I will attempt to shed some light on the matter.  The first question we have to ask ourselves is why do these graphics appear 3D when they are 2D? This is because of 3D Geometry and its ability to construct three-dimensional shapes. This works because the geometry takes into account the length, width, and height of the object in question giving it the shape. Once the basic shape is created we look at the volume, or, how much the shape could hold inside it. We lastly look at the out side of the shape, in the sense of a cube we would have the four sides, top, and bottom, add these up and you have found your surface area.
Now that we know how the shape is constructed lets dig a little deeper and see what creates those shapes. As much as we would like to think that the shapes just exist within our 3D experience the truth it they do not. Every square, circle, rectangle, is made up of many different vertices. These vertices are mini triangles that are merge together at vertex points, or the points at which the edges of the triangle meet and create a polygon. Once those polygons are connected together they are molded into a model or character, which reflects the world we are in (a videogame, simulation, etc.), this connection of polygons is known as a polygonal mesh. Once the polygonal mesh has created the shape we then go about put detail to that shape. If it is a person then we attached a face, some hair, clothes and mapping these features to the polygonal mesh. This is a process known as texture mapping and is widely use to add the detail to the object or character.

Now that we understand how the shapes, or “prims” are created we can address how they are used. Vector graphics is the process of using these “prims” and adhering them to an x and y axes within a given space. This gives the viewer a feeling of a 3D object in a 3D world. But while prims are the base plate for building in 3D worlds, we as viewers want to see the characters in these games. The polygonal mesh that creates these characters is fine but what truly makes the game believable is the interaction of that character with the environment.

A character that walks through an environment and isn’t affected by simple things as light affects the experience.  This is where lighting and shading aids in 3D experience. Shadows can help show depth and position of the characters or objects and this is done by the use of normals. Normals are lines (that we do not see) that protrude from the character and help judge light and how it would be perceived. This process helps create light and shading by allowing the mathematical functions in the background to functionally bounce the light of the character. All of these functions are essential to the process of how 3D graphics and I hope that this write-up has helped answer exactly how 3D graphics work.

No comments:

Post a Comment