Done L3 Raster Algorithms
Done L3 Raster Algorithms
ME 735
Computer Graphics and Product Modeling Outline
Display Technology
Raster Graphics Algorithms Vector Graphics
Raster Graphics
Raster Frame Buffer
Prof. S. S. Pande Raster Graphics Algorithms
Computer Aided Manufacturing Laboratory DDA Algorithm
Indian Institute of Technology, Bressenham’s algorithm
Bombay
1 2
1
18-08-2024
N=8
8 bit
0 1 --- 0 1 DAC Green
Frame Buffer
24 Colors
2
Rasterization
Process of Identifying which Pixels
should be made Bright
Conflicting Criteria
Need Algorithm to decide
11
2
18-08-2024
Conflicting Requirements
14
15 16
=𝑚 m=
17 18
3
18-08-2024
Compute slope = m
Choose Increment (∆x, ∆y) based on m
Choose xT = x1 ,yT = y1
For ∆x = 1,
Loop till (xT ≤ x2)
yi+1 = yi + ∆y
Plot – Pixel (xT , Integer (yT))
= yi + m
Compute xT = xT + 1
Compute yi+1 in Real Coordinate space
y T = yT + m
Truncate to Integer Coordinate space
End loop
19 20
0 2 2 2
Steps 1 3 2.3 2
2 4 2.6 2
• Compute Δx = 10, Δy = 3, m = 0.3
3 5 2.9 2
• m Є (-1,+1), Increment in X direction.
4 6 3.2 3
• X i+1 = x i + 1 5 7 3.5 3
Y i+1 = y i + Δy 6 8 3.8 3
= y i+ m 7 9 4.1 4
8 10 4.4 4
9 11 4.7 4
10 12 5.0 5
21 22
Limitations
23 24
4
18-08-2024
Comparison of Algorithms
DDA Bressenham