POLYGON RENDERING METHODS

Views:

Category: Education

Presentation Description

POLYGON RENDERING METHODS

Presentation Transcript

PowerPoint Presentation:

POLYGON RENDERING METHODS RENDERING means giving proper intensity at each point in a graphical object to make it look like real world object. Different Rendering Methods are Constant Intensity Shading. Gouraud Shading. Phong Shading. Fast Phong Shading.

CONSTANT INTENSITY SHADING Also Called Flat Shading Fast and Simple Method A single intensity is calculated for each polygon( in the polygon-mesh) All points in the surface of polygon are displayed with the same intensity value. N1 N2 N3 N4

For Getting Good Results Through Constant Intensity Shading:

For Getting Good Results Through Constant Intensity Shading Object is a polyhedron. Light sources illuminating the object are sufficiently far from the surface The viewing position is sufficiently far from the surface.

GOURAUD SHADING Intensity interpolation scheme developed by Gouraud. Represents a polygon surface by linearly interpolating intensity across the polygon surface. Intensity values for each polygon are matched with adjacent polygon along common edges. Eliminates the intensity discontinuity that can occur in flat shading.

Polygon surface is represented by the following calculations::

Polygon surface is represented by the following calculations: Determine the average unit vector at each polygon vertex. Apply an illumination model to each vertex to calculate the vertex intensity. Linearly interpolate the vertex intensities over the polygon surface

1 2 3 4 5 p

PowerPoint Presentation:

Advantages It removes intensity discontinuities associated with flat shading. Disadvantages Highlights on the surface are sometimes displayed in irregular shapes. Linear intensity interpolation can cause intensity stripe called Mach bands , to appear on the surface.

Phong Shading Normal Vector Interpolation Shading Developed by Phong Bui Tuong Accurate method Displays more realistic highlights Reduces Mach band effect Interpolate normal vectors and then apply illumination

Polygon surface is rendered using the following steps ::

Polygon surface is rendered using the following steps : Determine the average unit normal vector at each polygon vertex Linearly interpolate the vertex normals over the surface of the polygon Apply an illumination model along each scan line to calculate projected pixel intensities for the surface points

PowerPoint Presentation:

Interpolation of surface normals along a polygon edge Scan line N1 N2 N N3

Advantages n Disadvantages Adv. Intensity calculations produce more accurate results Displays more realistic highlights on the surface Greatly reduces the Mach-band effect. [The Mach band effect exaggerates the change in intensity at any boundary where there is a discontinuity in magnitude or slope of intensity.] Dis adv. Requires more calculations 