Skip to content

sam95/6th-sem-cg-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To install OpenGL on your computer, Follow the Below Instructions For Ubuntu/Fedora/Any Unix Operating systems, type these below commands on the terminal

sudo apt-get install freeglut3 freeglut3-dev
sudo apt-get install binutils-gold

You're Done!

For Windows users, to set up OpenGL on Codeblocks, first Install codeblocks on your machine and follow the below steps

  1. copy the glut32.dll to c:\windows\system
  2. copy the glut32.lib to c:\program files\mingw\lib
  3. copy glut.h to c:\program files\mingw\include\GL
  4. Add behaviour to linker settings in codeblocks!
  5. You're done!

Advice : Use Unix operating systems to avoid complexity

To Run the file on codeblocks just click on Build and run

To run the file on the terminal(Unix) type

gcc -lGL -lGLU -lglut filename.c
./a.out

Design, develop, and implement the following programs in C / C++

  1. Program to recursively subdivide a tetrahedron to from 3DSierpinski gasket. The number of recursive steps is to be specifiedby the user.

  2. Program to implement Liang-Barsky line clipping algorithm.

  3. Program to draw a color cube and spin it using OpenGLtransformation matrices.

  4. Program to create a house like figure and rotate it about a givenfixed point using OpenGL functions.

  5. Program to implement the Cohen-Sutherland line-clippingalgorithm. Make provision to specify the input line, window forclipping and view port for displaying the clipped image.

  6. Program to create a cylinder and a parallelepiped by extruding acircle and quadrilateral respectively. Allow the user to specify thecircle and the quadrilateral.

  7. Program, using OpenGL functions, to draw a simple shaded sceneconsisting of a tea pot on a table. Define suitably the position andproperties of the light source along with the properties of theproperties of the surfaces of the solid object used in the scene.

  8. Program to draw a color cube and allow the user to move the camerasuitably to experiment with perspective viewing. Use OpenGLfunctions.

  9. Program to fill any given polygon using scan-line area fillingalgorithm. (Use appropriate data structures.)

  10. Program to display a set of values {fij} as a rectangular mesh.

About

contains 9 cg lab programs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages