|
III B.E. (Information Technology) VI SEMESTER 6 IT 8 GRAPHICS LAB |
|
1 Simulate a low resolution raster screen and implement on it (i) Midpoint algorithm for scan converting lines at any angle with pixels 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 accommodation line style, pen style and pattern. (ii) Cohen Sutherland line clipping algorithm. (iii) Sutherland Holdgram polygon clipping algorithm. 4 Write a program to perform 2 D 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 control points and to draw the corresponding curve. 7 Implement a procedure to draw text centered in a opaque rectangle with thin boarder. Let the user specify colors (test, boarders, background). Type (Front, letter size and screen position) and Text string cant fit in one line; break it at appropriate places to make multi line text. Implement both the multilane text and multi scan text. 8 Write an interactive program allowing user to create, interactively manipulate and refine piecewise continuous cubic curve represented as splice and Hermit Busier. 9 Write a program to display on a grey background distinct squares colored 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 color on above. 10 Implement a ray tracer for sphere and polygons. 11 Write a program to interpolate linearly between tow colors in RGB. HSV and HSL. Schemes. 12 Write a program to draw a robot capable of moving in a room and animate it to pick an object form one point and place at other. |