API:
Generally speaking, an application programming interface specifies how some software components should interact with each other. In practice in most of the cases
an API is a library that usually includes specification for routines, data structures, object classes, and variables. An API specification
can take many forms, including an International Standard such as POSIX, vendor documentation such as the Microsoft Windows
API, the libraries of a programming language,
for example Standard Template Library in C++ or Java API.
Direct3D:
Microsoft
Direct3D is a low-level graphics application programming interface that enables
you to manipulate visual models of 3-dimensional objects and take advantage of
hardware acceleration, such as video graphics cards.
OpenGL
OpenGL or Open Graphics Library is a cross-language, multi-platform API for rendering 2D and 3D
computer graphics. The API is typically used to
interact with a GPU, to achieve hardware-accelerated rendering. OpenGL was developed by Silicon Graphics Inc. from 1991 and released in January 1992 and is widely used in CAD, virtual reality, scientific visualization, information visualization, flight simulation, and video
games. OpenGL is managed by the non-profit technology consortium Khronos
Group.
Graphics
pipeline
In 3D computer
graphics, the terms graphics
pipeline or rendering pipeline most commonly refers to the current
state of the art method of rasterization-based rendering as supported by commodity graphics
hardware. The graphics pipeline typically accepts
some representation of a three-dimensional primitive as input and results in a
2D raster image as output. OpenGL and Direct3D are two notable 3d graphic standards, both describing very
similar graphic pipelines.
Per-vertex
lighting and shading
In computer
graphics, per-pixel
lighting refers to any
technique for lighting an image or scene that calculates illumination for each
pixel on a rendered image. This is in contrast to other popular methods of
lighting such as vertex
lighting, which calculates illumination at each
vertex of a 3D model and then interpolates the resulting values over the model's faces to calculate
the final per-pixel color values.
Clipping
In 3D graphics, in a city street scene the computer may have model,
texture, and shader data in memory for every building in the city; but since
the camera viewing the scene only sees things within, say, a 90° angle, or field of view, the computer does not need to transform, texture, and
shade the buildings that are behind the camera, nor those which are far enough
to the side that they are off the screen. The clipping algorithm lets the
rendering code skip all consideration of those buildings, and the program runs
faster.
Projection
Transformation
3D projection is any method of mapping three-dimensional points
to a two-dimensional plane. As most current methods for displaying graphical
data are based on planar two-dimensional media, the use of this type of
projection is widespread, especially in computer graphics, engineering and drafting.
Viewport
Transformation
The post-clip vertices are transformed once again to be in window space.
In practice, this transform is very simple: applying a scale (multiplying by
the width of the window) and a bias (adding to the offset from the screen
origin). At this point, the vertices have coordinates which directly relate to
pixels in a raster.
Scan
Conversion or Rasterisation
In normal usage, the term refers
to the popular rendering algorithm for displaying
three-dimensional shapes on a computer. Rasterization is currently the most
popular technique for producing real time 3D computer graphics. Real-time applications
need to respond immediately to user input, and generally need to produce frame
rates of at least 24 frames per second to achieve smooth animation.
Texturing,
Fragment Shading
At this stage
of the pipeline individual fragments (or pre-pixels) are assigned a colour
based on values interpolated from the vertices during rasterization, from a
texture in memory, or from a shader program.
Display
The final colour pixels can then be displayed on a computer monitor or
other display.
No comments:
Post a Comment