Phong Shading A more accurate method for rendering a polygon surface is to interpolate the normal vector and then apply the illumination…
Computer Graphics Tutorial


Input Devices The Input Devices are the hardware that is used to transfer transfers input to the computer. The data can be…

Computer Graphics Programs Write a Program to draw basic graphics construction like line, circle, arc, ellipse and rectangle. #include<graphics.h> #include<conio.h> void main()…

Output Devices It is an electromechanical device, which accepts data from a computer and translates them into form understand by users. Following…

Defining a circle using Polar Coordinates : The second method of defining a circle makes use of polar coordinates as shown in…

Interactive and Passive Graphics (a) NonInteractive or Passive Computer Graphics: In noninteractive computer graphics, the picture is produced on the monitor, and…

Defining a circle using Polynomial Method: The first method defines a circle with the secondorder polynomial equation as shown in fig: Â …

Matrix Representation of 2D Transformation Program to implement 2D Transformations: #include<iostream.h> #include<conio.h> #include<math.h> #include<stdlib.h> #include<conio.h> class trans { float x[20],y[20],xm,ym,ref[2][2],shx,shy; int i,j,k,n;…

Random Scan and Raster Scan Display: Random Scan Display: Random Scan System uses an electron beam which operates like a pencil to…
 B.Tech / MCAComputer Graphics Tutorial
Computer Graphics  Midpoint Subdivision Line Clipping Algorithm
Mid Point Subdivision Line Clipping Algorithm: It is used for clipping line. The line is divided in two parts. Mid points of…