| Graphics Pipeline |
Article Index for Graphics |
Website Links For Graphics |
Information AboutGraphics Pipeline |
| CATEGORIES ABOUT GRAPHICS PIPELINE | |
| computer graphics | |
| 3d computer graphics | |
|
STAGES OF THE GRAPHICS PIPELINE:
Modeling transformation In this stage the 3D Geometry provided as input is established in what is known as 3D world-space—a conceptual orientation and arrangement in 3D space. This could include transformations on the local object-space of Geometric Primitive s such as translation, rotation, Lighting Geometry in the complete 3D scene is lit according to the defined locations of light sources and reflectance and other surface properties. Current hardware implementations of the graphics pipeline compute lighting only at the vertices of the polygons being rendered. The lighting values between vertices are then interpolated during Rasterization . Per-pixel lighting can be done on modern graphics hardware as a post- Rasterization process by means of a fragment Shader program. Viewing transformation Objects are transformed from 3D world-space coordinates into a 3D coordinate system based on the position and orientation of a virtual camera. This results in the original 3D scene as seen from the camera’s point of view, defined in what it called eye-space or camera-space. Projection transformation In this stage of the graphics pipeline, geometry is transformed from the eye-space of the rendering camera into 2D image-space, mapping the 3D scene onto a plane as seen from the virtual camera. Clipping Geometric primitives that now fall outside of the Viewing Frustum will not be visible and are discarded at this stage. Clipping is not necessary to achieve a correct image output, but it accelerates the rendering process by eliminating the unneeded Rasterization and post-processing on primitives that will not appear anyway. Scan conversion or Rasterization Rasterization is the process by which the 2D image-space representation of the scene is converted into raster format and the correct resulting Pixel values are determined. Texturing or shading At this stage of the pipeline individual fragments (or pre-pixels) are assigned a color based on values interpolated from the vertices during Rasterization or from a texture in memory. Display The final colored pixels can then be displayed on a computer monitor or other display. THE GRAPHICS PIPELINE IN HARDWARE The rendering pipeline is mapped onto current graphics acceleration hardware such that the input to the Graphics Card (GPU) is in the form of vertices. These vertices then undergo transformation and per-vertex lighting. At this point in modern GPU pipelines a custom vertex Shader program can be used to manipulate the 3D vertices prior to Rasterization . Once transformed and lit, the vertices undergo clipping and Rasterization resulting in fragments. A second custom shader program can then be run on each fragment before the final pixel values are output to the Frame Buffer for display. The graphics pipeline is well suited to the rendering process because it allows the GPU to function as a Stream Processor since all vertices and fragments can be thought of as independent. This allows all stages of the pipeline to be used simultaneously for different vertices or fragments as they work their way through the pipe. In addition to pipelining vertices and fragments, their independence allows graphics processors to use parallel processing units to Process Multiple Vertices or fragments in a single stage of the pipeline at the same time. REFERENCES |
|
|