The following ae the some sample program example for practicle:
Write a program to draw the front face of clock by using midpoint ellipse generationalgorithm .draw minitue and hour hand of the clock by DDA line generation algorithm.
Write a program to move a ball along the spiral circle.
A. Implement line drawing algorithm that uses generic logic for all the lines irrespective of slope of line. Implement it in a 4-quadrant system
B. Use built-in functions to draw lines in different style.
1. Implement Bresenham’s algorithm for line drawing with following stylesA. Dotted line(Accept dot ratio from user)B. Thick line(Accept thickness from user)
2. Use built-in functions to do the same
A. Implement mid-point circle drawing algorithm
B.Use any built-in function to fill the circle with different patterns
A. Implement line clipping algorithm that makes use of region code.Implement it in a 4-Quadrant systemB. Draw the clipped line in different styles using built-in functions
A. Implement Liang-Barsky line clipping algorithm
B. Draw the clipped line in different styles using built-in functions
A. Implement Sutherland-Hodgeman polygon clipping algorithm.
B. Mention various built-in functions in graphics.h to draw and fill various objects
A.Implement any 2 curve generating algorithms.
B.Explain the advantage-disadvantage of both
.Draw the following figure using built-in functions1. Use polygon filling algorithm for repainting Red region with Green color
A. Implement any 4 2-D transformations on a hexagon/square /triange(Translation, Pivot point rotation, Pivot point scaling, Reflection, Scaling)
B. Implement composite transformation
A. Implement boundry fill and flood fill polygon filling algorithm.
B. Optimize the above algorithm to reduce computations
A. Implement following 3-D transformations on a cube(Translation, Rotation about X, Y, Z axis, Pivot point Scaling, Reflection aboutX, Y, Z axis)
Implement midpoint ellipse generating algorithm.Use any built-in function for drawing ellipse in Graphics.
A.Clip a line using cohen Sutherland algorithm against rectangular window .
B.Let line be fixed then show the clip line as rectangle is moving.
Showing posts with label CG. Show all posts
Showing posts with label CG. Show all posts
Wednesday, May 5, 2010
Wednesday, February 17, 2010
Assignment 1
Subject : Computer Graphics
1. State the application of computer graphics .explain any five.
2. Explain DDA algorithm .Solve(1,1) to (5,3) using DDA algorithm
3. Derive Bresenham’s line drawing algorithm .plot line(20,10)(30,18)
4. Consider the line from (0,0) to (6,7).use bresenham’s algorithm to rasterize aline.
5. Differentiate between DDA and Bresenham’s algorithm
6. Derive midpoint ellipse algorithm hence state the algorithm.Solve rx=8 and ry=6
7. Derive midpoint circle algorithm .state the algorithm.
8. Derive Bresenham’s circle algorithms
last date :22 /2/10
1. State the application of computer graphics .explain any five.
2. Explain DDA algorithm .Solve(1,1) to (5,3) using DDA algorithm
3. Derive Bresenham’s line drawing algorithm .plot line(20,10)(30,18)
4. Consider the line from (0,0) to (6,7).use bresenham’s algorithm to rasterize aline.
5. Differentiate between DDA and Bresenham’s algorithm
6. Derive midpoint ellipse algorithm hence state the algorithm.Solve rx=8 and ry=6
7. Derive midpoint circle algorithm .state the algorithm.
8. Derive Bresenham’s circle algorithms
last date :22 /2/10
Subscribe to:
Posts (Atom)