Algorithm for scan line method
Write down the algorithm for scan line method?
Expert
Algorithms for scan line method are as follows:
For each scan line execute step 1 via step 3.
1) For all pixels on a scan line, set depth[x] = 1.0(max value) & intensity[x] = background color.
2) For each polygon in the scene, find all pixels on the present scan line (say s1) that lies in the polygon. For each of these x-values:
i). compute the depth z of the polygon at (x,y)
ii). When z < depth[x], set depth[x] = z and intensity corresponding to the polygons shading
3) Subsequent to all the polygons have been taken into consider; the values enclosed in the intensity array symbolize the solution and can be copied into a frame buffer.
The advantage of scan line algorithm is that every time, we are functioning with one dimensional array that is, x[0….x-max] for color not a 2-D array as in depth buffer algorithm.
What do you understand by the term Diffuse Reflection? Describe it with appropriate diagram?
Define: a) Persistence b) Resolution c) Aspect ratio
What is Virtual Reality? Illustrate briefly?
Describe the benefits and drawbacks of the Plasma panel display.
Write down a short note on the demerits of z-buffer technique?
Consider three different raster systems with resolutions of 640 x 480, 1280 x 1024, and 2560 x 2048? a) What size is frame buffer (in bytes) for each of these systems to store 12 bits per pixel?
What do you mean by view plane and view-plane normal vector?
What is graftals?
Explain the term aspect ratio? Describe in detail.
Differentiate between interpolation spline and approximation spline?
18,76,764
1952007 Asked
3,689
Active Tutors
1443873
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!