Scan Conversion Flashcards
How does Bresenham’s Algorithm approximate a line?
Y = mX + c
For every increment in X
Work out the real Y-Value
Round Y to the nearest integer
How might we Scan Convert a triangle?
Start at the intersection of two edges
Increment the Y-Value, and figure out how the X Value for each of the edges changes by doing this
Fill in the pixels between the two X Values for each edge
How can we perform Hidden Surface Removal using a Depth Buffer?
The Depth Buffer is used to keep track of how far each pixel is from the observer
This means when we generate a new pixel we can check if it is closer to us, than some previous pixel and only render it if it is closer
What is Z Fighting in the Z Buffer?
This is when two surfaces are fairly close to each other,
and so bleed into each other when being rendered
because both surfaces are “fighting” to be in the Z-buffer