You are on page 1of 1

Assignment – 2

Computer Graphics and Visualization (18CS62)

1. Explain OpenGL 2D viewing function.


2. What is Clipping? Explain Cohen-Sutherland Line Clipping algorithm, with suitable
example.
3. Explain Cohen Sutherland line clipping. Clip the lines with coordinates (x0, y0) = (60, 20),
(x1, y1) = (80, 120) given the window boundaries (xwmin, ywmin) = (50, 50) and (xwmax,
ywmax) = (100, 100).
4. Explain Sutherland-Hodgman polygon clipping algorithm. Find the final clipping polygon
for the following figure.

5. Explain Basic Illumination Model and explain Phong’s Lighting model.


6. Write an OpenGL program to rotate a cube in all directions.
7. Explain RGB and CMY color models with examples. Explain the transformation between
CMY and RGB color spaces.
8. Explain the different types of light sources supported by OpenGL.

You might also like