Algorithm scan-line, Computer Graphics

Algorithm (scan-line):

For each scan line perform from step (1) to (3).

1) For all pixels on a scan-line, arrange depth [x]=1.0 i.e. max value and Intensity [x] = background-color.

2) For each polygon means, get all pixels on the current scan-line as S1 that lies inside the polygon. For all of these x-values:

a) Compute the depth z of the polygon at (x,y)

b) If z < depth [x], set depth [x] =z and intensity consequent to the polygon's shading.

3) When all polygons have been identified; the values comprised in the intensity array present the solution and can be a duplicate in the frame-buffer.

 

Posted Date: 3/22/2013 8:46:58 AM | Location : United States







Related Discussions:- Algorithm scan-line, Assignment Help, Ask Question on Algorithm scan-line, Get Answer, Expert's Help, Algorithm scan-line Discussions

Write discussion on Algorithm scan-line
Your posts are moderated
Related Questions
Question: Explain how computer graphics would play a useful role in education and training. Answer: Computer graphics has occupied an important role in education and training.


Functioning of hardcopy devices and Output primitives 1.  Functioning of hardcopy devices-laser printers and dot matrix printers, plotters.  2.  Output primitives: Graphics

Web Design and Editing To edit and make a website, the big three softwares are use: 1)   DreamWeaver (MacroMedia) 2)   Frontpage (MicroSoft) 3)   Go Live (Adobe) 4)

Consider at line segment AB in the Figure k, parallel to the z-axis along with end points A (3, 2, 4) and B (3, 2, 8). Perform a perspective projection on the z = 0 plane from the

Education, Training, Entertainment and Computer Aided Design CAD or CADD is an acronym which depending upon who you ask, can stand for: I. Computer Assisted Design. II.

High level techniques (motion generalized) Techniques utilized to explain general motion behavior of any of graphic object, such techniques are algorithms or models utilized to

Adavantage and disadvantages of DDA and Bresenhams line drawing algorithm

Merits -Phong shading or Normal Vector Interpolation Shading Hence by finding intensities at various points across the edge we determine the intensity that is varying across t

Event Driven Devices - Polling Polling: The status of all devices is periodically checked in a repetitive manner through a polling loop. While an event happens, the loop is