opfic.blogg.se

Cs2405 computer graphics lab manual
Cs2405 computer graphics lab manual






cs2405 computer graphics lab manual cs2405 computer graphics lab manual

Rounding operations are done tocalculate pixel position.ĪLGORITHM:Step 1: Accept Input as two endpoint pixel It is time consuming since floating point arithmetic and Raster characteristics, soincrements are applied in x or yĭirection to step to pixel position along the line path.ĭISADVANTAGES: It drifts away from the actual line path because It eliminates the floating point multiplication by making use of (y=-1) and calculate eachsucceeding x value asĪDVANTAGES: It is a faster method than the direct use of the Than or equal to 1, at unit xintervals (x=-1) and compute eachįor lines with a positive slope (Right-left), greater than 1 Greater than 1 (y=1) and calculate eachsucceeding x value asĪ line with positive slope (Right-Left), if the slope is less Yk+1 = yk + mFor lines with a positive slope (Left-right), Intervals (x=1) and compute each successive y values asxk+1 = xk The slope is less than or equal to 1, at unit x

cs2405 computer graphics lab manual

Straight line Segment with five sampling positions along the xĪxis between x1 and x2.A line with positive slope (Left-right), if Values nearest the line path for the other coordinate. Intervals in one coordinate and determinecorresponding integer Line algorithm basedon calculation either y or x.The line at unit The digital differential analyzer (DDA) is a scan-conversion Write a Program to implement 3D Composite Transformation.14.ĪIM:To write a C program for drawing a line and to display theĭifferential Analyser (DDA) algorithm.DESCRIPTION: Program to implement the 3D transformation.ġ3. Write a simple opengl program to create a 3D scene.ġ2. Write a simple opengl program to create a 3D object.11. Develop a program to clip a polygon using Sutherland Hodgemanġ0. Develop a program to clip a line using Cohen Sutherland lineĩ. To implement the 2D Composite transformation.Ĩ. Program to implement the 2D transformation.7. Program to implement the various attributes of output Program to draw the circle using midpoint circle algorithm.4.ĭevelop a program to draw the ellipse using midpoint ellipseĪlgorithm.5. WriteĪ program to draw the line using Bresenhams algorithm.3. Write a program to draw the line using DDA algorithm.2. ANAND INSTITUTE OF HIGHER TECHNOLOGYOLD MAHABALIPURAM ROAD,ĭEPARTMENT OF COMPUTER SCIENCE ANDENGINEERINGġ.








Cs2405 computer graphics lab manual