-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwriteup-A1.txt
40 lines (28 loc) · 1.25 KB
/
writeup-A1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
AndrewID:
Under each task, write 'Fully implemented.', 'Not attempted.', or explain your attempted solution and where it fails.
--- A1.0 ---
Task A1T1:
Fully implemented.
Task A1T2:
Attemmpted: use Bresenham to rasterize line. According to Discord discussion Bresenham guarantees
diamond exit rule compliance except in beginning and ending points. Therefore, I implemented diamond
exit rule check for beginning and ending points. I allow the bresenham loop to run as is, except
if a begin/end point should not be emitted, the point would be skipped. In practice, there are often
off by one errors near the beginning of the pixel due to the fact that two lines with float starting
and ending points can map to the same integer starting and ending points, but require different
pixels to be shaded according to diamond exit rule.
Task A1T3:
Attempted: use a bounding box with a half plane check to rasterize triangles. Due to an unknown bug
in the half plane coverage check, only one cube appears identical to the render shown in handout.
--- A1.5 ---
Task A1T4:
Fully implemented.
Task A1T5:
Fully implemented.
Task A1T6:
Fully implemented.
Task A1T7:
Fully implemented.
render.png:
How did you make it?
Any free model sources you need to credit?