|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||
|
CS-263 Assignment #2 Scan-convert & Z-buffer Ya-Fen Chen |
|||||||||||||||||||
|
|
File Inputs: cow.d, house.d
|
|
|
|
|||||||||||||||
|
|
|
|
Description: |
|
|||||||||||||||
|
|
|
|
|||||||||||||||||
|
|
Figure 1: Intersecting cows |
|
Implement the z-buffer algorithm. Each polygon are constant colored differently. |
|
|||||||||||||||
|
|
|
|
Implemented: |
|
|||||||||||||||
|
|
|
|
|
|
|||||||||||||||
|
|
Figure 2: Intersecting cows |
|
|||||||||||||||||
|
|
Figure 3: Intersecting cow and house |
|
|||||||||||||||||
|
|
|
||||||||||||||||||