10-12-2012, 06:12 PM
Z- Buffer Algorithm
z-buffer algorithm.ppt (Size: 278 KB / Downloads: 25)
Hidden Surface Removal
The goal Determine which surfaces are visible and which are not.
Z-Buffer is just one of many hidden surface removal algorithms.
Hidden surface removal is also known as :
Visible-surface detection
Hidden-surface elimination
Hidden Surface Removal
We can categorize into
Object-space methods
Image-space methods
Object space algorithms: determine which objects are in front of others
Image space algorithms: determine
which object is visible at each pixel
Z-Buffer Algorithm
It is also known as “Depth buffer algorithm” since object depth is measured along the Z-axis of a viewing plane.
It is used for elimination of hidden surfaces or visible surface detection.
Most commonly used algorithm.
Advantages
It is very simple.
Easy to implement in the object and image space.
This algorithm can be executed very quickly even with many polygons.
No sorting of objects required.
Fast with hardware support
Disadvantages
This algorithm take up a lot of memory. Additional memory is required for the z-buffer.
It can not do transparent surfaces without additional code.