prakharjadaun / Computer-Graphics-using-OpenGL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Computer Graphics using OpenGL

This repository contains all the files related to Computer Graphics that I have performed in UPES Dehradun. I am attaching a file which contains the basics of the Computer Graphics using OpenGL which would help you to understand the concepts in better way. The experiments that I have performed are listed below :

Experiment 1 : Introduction to OpenGL

  1. Green Window Program.

Experiment 2 : Drawing line using DDA, Bresenham’s algorithm

  1. Drawing a line using Equation of line.
  2. Drawing a line using Bresenham algorithm for m<1.
  3. Drawing a line using Bresenham algorithm for m>1.
  4. Drawing a line using DDA algorithm.

Experiment 3 : Drawing Circle and Ellipse using Mid-point algorithm

  1. Draw a circle using the polar equation.
  2. Draw a circle using midpoint circle algorithm.
  3. Draw a circle using bresenham circle algorithm.
  4. Draw an ellipse using midpoint ellipse algorithm.

Experiment 4 : Filling the objects using flood fill, boundary fill and scan line fill algorithm

  1. Boundary fill algorithm using 4 connected approach.
  2. Boundary fill algorithm using 8 connected approach.
  3. Flood fill algorithm using 4 connected approach.
  4. Flood fill algorithm using 8 connected approach.

Experiment 5-6 : Performing Clipping operation on line and polygon using Cohen Sutherland and Sutherland Hodgeman algorithms respectively.

  1. Cohensutherland algorithm.
  2. Sutherland Hodgeman algorithm.

Experiment 7 : Performing 2D transformation on objects.

  1. Reflection
  2. Rotation
  3. Scaling
  4. Shearing
  5. Translation

Experiment 8 : Performing 3D transformation on objects.

  1. Reflection
  2. Rotation
  3. Scaling
  4. Shearing
  5. Translation

Experiment 9 : Drawing Bezier curves

  1. Bezier Curves

Project : Apply animation to an assigned object

About

License:MIT License


Languages

Language:C 100.0%