CG 2019 Solution
CG 2019 Solution
i)Technology:
ii)Light Emission:
iii)Color Production:
iv)Structure:
*Plasma Panel Display: Historically known for high brightness and good
contrast ratios.
vi)Applications:
It's worth noting that both technologies have evolved over time, and
the prevalence of these technologies in the market has changed.
Plasma displays, in particular, have become less common in recent
years, with other technologies like LED and OLED gaining popularity.
Merits:
Demerits:
Limited Complexity: Punctuation techniques may struggle with complex
images or scenes.
Aliasing: They can suffer from aliasing issues, resulting in jagged edges
in the displayed image.
Ans) Convex Polygon: All line segments connecting any two points
inside the polygon lie entirely inside the polygon.
7. What is Translations?
Ans) Translations:
*Cohen-Sutherland Algorithm
*Liang-Barsky Algorithm
*Weiler-Atherton Algorithm
*Clipping: Remove any parts of the object that are outside the view
volume.
part-B
1. explain scan conversion, write bresenham's algorithm
of line m>1.
Ans) Scan Conversion and Bresenham's Algorithm for Line
>
1
m>1:
>
1
m>1: The Bresenham's algorithm for lines with slope
greater than 1 efficiently determines the pixels to be
illuminated when drawing a line. Given two points
(
0
,
0
)
(x
0
,y
0
) and
(
1
,
1
)
(x
1
,y
1
), the algorithm is as follows:
java
Copy code
dx = x1 - x0
dy = y1 - y0
d = 2 * dy - dx
incrE = 2 * dy
incrNE = 2 * (dy - dx)
x = x0
y = y0
(
40
,
80
)
P(40,80) and
(
120
,
30
)
2..Use Cohen sutherland Iine clipping algorithms to find
visible partion of the line p (40,80) q(120,30) inside the
window. The window is defined as ABCD : A(20,20),
B(60,20),C(60,40),D(20,40).
Ans) Q(120,30), and window vertices A(20,20), B(60,20),
C(60,40), D(20,40), use Cohen-Sutherland to find the
visible portion of the line inside the window.
sql
Copy code
Initial code for P: 1010 (P is outside the window)
Initial code for Q: 0010 (Q is inside the window)
Since the result is not 0000, the line needs clipping. Using
Cohen-Sutherland rules:
+
4
y=mx+4c: