|
III B.E. (Computer Engg.) V SEMESTER 5CP8
COMPUTER GRAPHICS LAB |
|
1. Simulate a 10'\' resolution raster screen and imp1emenl on it- (i) midipoint algorithm for scan converting lines at an) angle with pixies of constant and variable intensity. (ii) mid point ellipse scan conversion. (iii) midpoint circle scan conversion.
2. Draw simple geometric figures (ellipse, rectangle, triangle) and implement the fill, translation and resizing operations.
3. On a low resolution raster screen implement- (i) Thick line algorithm accommodating line style, pen style and pattern, (ii) Cohen-Southerland line clipping algorithm. (iii) Southerland- Holdgman polygon clipping algorithm.
4. Write a program to perform 2D incremental rotation with/ without shear of a geometrical object, at desired speed:
5. Program a 3D clipping algorithm for parallel and perspective projection (say of a house).
6. Write a program to accept an arbitrary geometry matrix, basis matrix and list of contro1 points, and to draw the corresponding curve.
7. Implement a procedure to draw text centered in an opaque rectangle with thin boarder. Let the user specify colours (text, boarders, tack ground),Type (Font, letter size and screen position) and text string. if can't fit in one line, break it at appropriate places to make multiline text, implement both the multiline text and multiscan text.
8. Write an interactive program allowing user to create, Interactively manipulate and refine peicewise continuous cubic curve represented as β spline and Hermite Bezier.
9. Write a program to display, on a great background distinct squares coloured as orange, red, green, blue, cyan, magenta & yellow. Each square has n x n pixels. Where n is an input, find out value of n to unambiguously identify each square - (a) from a distance of 24 inch. (b) from a distance of 48 inch. (c) study the effect of changing background colour on above.
10. Implement a ray tracer for spheres and polygons.
11. Write a program to interpolate linearly between two color in RGB:HSV and HSL schemes.
12. Write a program 10 draw a robot capable of moving in a roan) and animate it to pick, an object from one point and place at other. |