Computer Graphics
Class Notes:
Compiling OpenGL Programs for Windows Using Visual Studio
(.html)
glut-3.7.6-bin Library files
(.7zip)
Introduction to Computer Graphics
Introduction to OpenGL: Part 1
Introduction to OpenGL: Part 2 (not complete)
Line Drawing Algorithms
Circle Drawing Algorithms
Filled Area Primitives
Two Dimensional Geometric Transformations.
Two Dimensional Viewing and Clipping.
Introduction to 3D Graphics & 3D Geometric Transformations.
3D Viewing
How to create a fractal tree.
C Time Library
3D Object Representations
Hidden Surface Elimination Techniques
Lab Sheets:
Lab Sheet 1
Lab Sheet 2
Lab Sheet 3
Lab Sheet 4
Lab Sheet 5
Lab Sheet 6
Lab Sheet 7
Animations/Videos:
.wmv: First Digital 3D Rendered film (Catmull & Parke; 1972).
.wmv: Sketchpad: By Ivan Sutherland (the first CAD System).
.wmv: Spacewar: The first computer game.
.wmv: 3D Printing.
.gif: Constructing a Regular Icosagon.
.wmv: Warnock algorithm - 1
.wmv: Warnock algorithm - 2
.gif: Torus
.gif: Torus & Mug morphing.
.gif: Sierpinski triangle with dots.
.gif: Sierpinski Triangle with triangles.
.gif: Circle Radians.
.gif: Cube (Regular hexahedron).
.gif: Dodecahedron.
.gif: Euler's rotation angles (Alpha, Beta, Gamma).
.gif: Icosahedron.
.gif: NURBS.
.gif: Octahedron.
.gif: Robot Arm.
.gif: Rotation followed by Translation.
.gif: Translation followed by rotation.
.gif: Smiley Fill using scan-line fill.
.gif: Torus to Sphere.
.gif: Torus from Rectangle.
.gif: Tower of Hanoi with 4 discs.
.gif: Flood fill using queue.
.gif: Flood fill using stack.
.gif: Z-fighting in Z-buffer technique.
.gif: Boundary fill failure example.
.gif: Circle construction.
.gif: Circle mid-point algorithm.
.gif: Creating two windows in OpenGL.
.gif: Fill area using bucket fill tool.
.gif: Flood fill using recursion.
.gif: Flood Fill failure - 1.
.gif: Flood Fill failure - 2.
.gif: Flood fill using queue - same colored boundary.
.gif: Flood fill using queue - difference coloured boundary.
.gif: Flood fill using stack - 1.
.gif: Flood fill with stack - 2.
.gif: Changing cursor shapes using GLUT.
.gif: Polygon in Circle.
.gif: Polygon rotation using homogeneous matrix.
.gif: Polygon with rotation and scaling combination.
.gif: Polygon rotation.
.gif: Polygon rotation using homogeneous matrix.
.gif: Polygon scaling using fixed point.
.gif: Polygon scaling using homogeneous matrix.
.gif: Polyhedrons with gluLookAt() and glFrustum().
.gif: Raster Scan.
.gif: Scan line fill 1 (program output).
.gif: Scan line fill 2 (program output).
.gif: Scan line fill 3.
.gif: Shear along x-direction.
.gif: Shear along x with y reference - 1.
.gif: Shear along x with y reference axis.
.gif: Shear along y with x reference axis.
.gif: Simple scaling.
.gif: Spinning line with double buffering.
.gif: Spinning rectangle with double buffering.
.gif: Spinning rectangle with single buffering.
.gif: Rotating Rectangle with slower speed (using glutTimerFunc()).
.gif: Spinning rectangle without pushMatrix and popMatrix.
.gif: Spline control points.
.gif: Tetrahedron 1.
.gif: Tetrahedron 2.
.gif: Translation of Polygon
.gif: Painter's algorithm.
.gif: Sword Fighter - animation
Code (OpenGL):
Big Dipper Constellation
Changing window color using keyboard
Bird-head using polyline.
Dinosaur using polyline.
Dino.dat input file
House using polyline.
Dragon using polyline.
Drawing dots using mouse clicks
Two dots with two colors.
Sierpinski Triangle (using infinite points)
Sierpinski Triangle using Mouse Clicks
x-sin(x) graph plot
Color shaded rectangles.
Poly-line using mouse clicks
DDA Line Drawing Algorithm
Bresenham Line Drawing Algorithm.
Circle using Polygons
Circle using triangle-fan
Mid-point line drawing function (not proper)
Boundary Fill & Flood Fill using Stack & Queue.
Scan-line polygon fill algorithm.
Free-hand drawing with colors.
Free-hand drawing program
Filling polygons with flies pattern
Quick-Brown-Fox using bitmaps glut font
Basic OpenGL rotation, scaling & translation pgm.
Translation of polygon using clicks
Polygon rotation using mouse clicks
Shearing and other functions
Fractal Tree (with Windows.h) in C++
3D Cube.
Cohen-Sutherland line clipping algorithm.
Liang-Barsky line clipping algorithm.
Fractal Tree creation.
Polyhedron using gluLookAt() and glFrustrum().
Rotating rectangle at slow speed (using glutTimerFunc()).
Spinning rectangle using double buffering.
View on Mobile