# Graphics and Visual Computing

## Graphics and Visual Computing

Graphics and Visual Computing Assignment list

INSTRUCTIONS:
• Turbo C++ NOT ALLOWED. Program preferably using OpenGL
• Codes should be well commented with header lines.
• Version and the Date of last modification should be mensioned.
• Group No, Roll No, Names, should be part of the header info.
• Problem statement should also be part of the header
• Comment the variable when defined the top of the code
• Most of the code should be as functions.
• “main();” should just call the functions (minimum code).
This list of Instruction will increase so regularly checks updates.

Assignment 1: Submission on January 23, 2009.

1. Draw a point point(x: float, y : float); .

2. Draw a Line line(x1: float, y1 : float, x2: float, y2 : float);
Use DDA and Bresenham algorithms.

3. Draw a square/rectangle
Rectangle(x1: float, y1 : float, x2: float, y2 : float);.
Here only the coordinate of the diagonal is provided.

4. Draw a Polygon with n sides : PoligonN(&X, &Y, n). Where X and Y are arrays.

Assignment 2: Submission on January 30, 2009.

5. Draw a dash and dotted line.
Dashedline(x1, y1, x2, y2, Dashsize, Dashgaps : float);
Dottedline(x1, y1, x2, y2, Dotgaps : float);
Use DDA and Bresenham algorithms.

6. Draw and Fill a Polygon n sides with (points/lines) : Fill_Polygon(&x, &y, n, Color).

7. Draw Circle with center x0, y0 and radius R sides : Circle(x0, y0, R). Use Bresenham algorithms.

8. Draw a globe Globe(x0, y0, z0, R, dTheta, dPhi) as in the figure bellow.
Assignment 3: Submission on: February 6, 2009.

9. Make your own Colour Alias Library Function using combination the fundamental colours RGB. A look up table may be constructed which could be read by your Colour function to determine the aliasing.

10. Write an Antialiasing function using weighted area filtering.
Antialiasing (x1: float, y1: float, x2:...