10CSL67 icon indicating copy to clipboard operation
10CSL67 copied to clipboard

Computer Graphics and Visualization Lab (VTU)

Index

  1. 3D Sierpinski
  2. Liang-Barsky
  3. Color Cube with OpenGLTransformation
  4. House
  5. Cohen-Sutherland
  6. Cylinder and Parallelepiped
  7. Tea pot
  8. Color cube with perspective viewing
  9. Polygon using scan-line area filling
  10. Rectangular mesh

Installing on Linux

You can install the required dependencies using the following commands

On Debian based systems

sudo apt-get update
sudo apt-get install freeglut3
sudo apt-get install freeglut3-dev
sudo apt-get install binutils-gold
sudo apt-get install g++ cmake
sudo apt-get install libglew-dev
sudo apt-get install g++
sudo apt-get install mesa-common-dev
sudo apt-get install build-essential
sudo apt-get install libglew1.5-dev libglm-dev
    

On Fedora/RedHat based systems

sudo dnf group install c-development
sudo dnf install freeglut-devel

On Arch based systems

pacman -S mesa glu freeglut

On MacOS/OSX

 add OPENGL.framework and GLUT.framework to project properties in XCode

Compiling the code

sh compile.sh file

Executing the code

./file.o