Sunday 19 April 2015

HA7 - Displaying 3D Polygon Animations

What is API:

An API is an application programming interface and is a set of routines for creating software applications.API specifies how software should interface which each other.API helps to create a program easily.
  1. ''In computer programming, an application programming interface(API) is a set of routines, protocols, and tools for building softwareapplications. An API expresses a software component in terms of its operations, inputs, outputs, and underlying types.''


Direct 3D:

 Direct 3D is used to render three dimensional graphics in applications ,this is Developed by Microsoft, Direct3D provides programmers with a way to develop 3D programs that can utilize whatever graphics acceleration device is installed in the machine.



Open GL:

''OpenGL (Open Graphics Library) is a cross-languagemulti-platform application programming interface (API) for rendering 2D and 3D vector graphics''With OpenGL, an application can create the same effects in any operating system using any OpenGL-adhering graphics adapter.


Graphic Pipeline:

In 3D graphics rendering, the stages required to transform a three-dimensional image into a two-dimensional screen. The stages are responsible for processing information initially provided just as properties at the end points or control points of the geometric primitives used to describe what is to be rendered.






geometric primitive:
First, the scene is created out of geometric primitives. Traditionally this is done using triangles, which are particularly well suited to this as they always exist on a single plane.




Modelling and Transformation:

Modelling and transformation is when you transform from the local coordinate system to which is 2D (X,Y) to the 3d world coordinate system(X,Y,Z).


Camera Transformation:


This is when when you view through a camera and see a flat 2D image and when you transform it you move around the camera and view it from another angle but the camera does not move.


Lighting:


If you are taking an image of an object and you are in a dark room in order to take a picture of this object and not come out with a blank image a set of lighting is placed and moved to increase the effect of the image.


Projection Transformation:


This is when you transform 3D word coordinates into a 2D view when taking a image when objects are different distances apart the objects look different sizes but are round about the same size This is achieved by dividing the X and Y coordinates of each vertex of each primitive by its Z coordinate .


Clipping:


Clipping s a method to selectively enable or disable rendering operations within a defined region of interest .A rendering algorithm can only draw pixels in the intersection between the clip region and the scene model.

Scan Conversion or Rasterisation:


Rasterisation is when the 2D image space representation of the scene is converted into raster format and now all operations will be carried out on each single pixel.Rasterisation is simply the process of computing the mapping from scene geometry to pixels and does not prescribe a particular way to compute the color of those pixels.The last step in rasterisation process is to fill in the 2D triangles that are now in the image plane ,this is scan conversion.

Texturing, Fragment Shading:
The stage of the pipeline individual fragments are assigned a color based on values interpolated from the vertices during rasterisation, from a texture in memory, or from a shadier program.

Display:

The final pixels can be shown on a computer monitor or other digital display:
















No comments:

Post a Comment