Depth Buffer Method
Depth Buffer Method
Depth Buffer Method
• The depth values for a pixel are compared and the closest surface
determines the color to be displayed in the frame buffer.
• Depth buffer is used to store depth values for position, as surfaces are
processed
• The frame buffer is used to store the intensity value of color value at
each position
Depth Buffer Method
Algorithm:
• Step-1 − Set the buffer values −
• Depthbuffer = 0
• Framebuffer = background color
Disadvantages:
• It requires large memory.
• It is time consuming process.
A Buffer Method
A Buffer Method
• A buffer is used in transparent objects.
• Different surface colors can be correctly composed using it.
• Each position in the buffer can reference a linked list of surfaces.
• The key data structure in the A buffer is the accumulation buffer.
• The 2nd field, i.e, the intensity field then stores the RGB components
of the surface color at that point and the percent of pixel coverage.
A Buffer Method
• The 2nd field, i.e, the intensity field then stores a pointer to a
linked list of surface data.
A Buffer Method
A Buffer Method
• In A-buffer method, each pixel is made
up of a group of sub-pixels.