Visible Surface Detection Methods
Visible Surface Detection Methods
of
28
A( x 1) By D A
z' z' z
C C
13
of
28
Iterative Calculations
The depth-buffer algorithm proceeds by
starting at the top vertex of the polygon
Then we recursively calculate the x-
coordinate values down a left edge of the
polygon
The x value for the beginning position on
each scan line can be calculated from the
previous one
1
x' x where m is the slope
m
14
of
28
Iterative Calculations (cont…)
Depth values along the edge being
considered are calculated using
A B
z' z m
C
15
of
28
16
of
28
Iterative Calculations (cont…)
y scan line
y - 1 scan line
x x’
17
of
28
A-Buffer Method
The A-buffer method is an extension of the
depth-buffer method
The A-buffer method is visibility detection
method developed at Lucasfilm Studios for
the rendering system REYES (Renders
Everything You Ever Saw)
18
of
28
A-Buffer Method (cont…)
The A-buffer expands on the depth buffer
method to allow transparencies
The key data structure in the A-buffer is the
accumulation buffer
19
of
28
A-Buffer Method (cont…)
of
28
27
Scan Line Method Example
28
of
28
Scan-Line Method Limitations
The scan-line method runs into trouble when
Images taken from Hearn & Baker, “Computer Graphics with OpenGL” (2004)