From CS451 Fall 2016: Computer Graphics

Main: PA03-OpenGL

Deadline: Oct. 10th, 11:59pm (2016)

Your tasks in this assignment are listed below

  1. Setup your programming environment and compile the provided code
  2. Create a random tetrahedron in obj file format
    • You will need 4 vertices and therefore 12 numbers
    • Use http://www.random.org/integers/ to generate these numbers between 10 and 100
    • Use the provided code to render your tetrahedron
    • Keep trying different numbers until your tetrahedron has a positive volume
  3. Create a 3D head model using https://recap360.autodesk.com/ (it can be your own head, your friend's head, etc, but it needs to be a head).

What and How to submit


How to set up your programming environment for OpenGL on Windows

Things that you need for this assignment should be inside obj-viewer\lib and obj-viewer\GL However,

Here is another link with very detailed instruction that can help you step up your programming environment: http://web.eecs.umich.edu/~sugih/courses/eecs487/glut-howto/#win


How to set up your programming environment for OpenGL on Linux

From a terminal, follow the commands below

  1. sudo apt-get update
  2. sudo apt-get install build-essential
  3. sudo apt-get install freeglut3-dev
  4. make (in obj-viewer directory)

You might want to setup an IDE for your future assignments.

sudo apt-get install eclipse eclipse-cdt
see details here http://web.eecs.umich.edu/~sugih/courses/eecs487/glut-howto/#linux

How to set up your programming environment for OpenGL on Mac OSX

OpenGL and GLUT come with the system. Ideally, you should be able to compile the code by just typing

However, you might want to setup an IDE for your future assignments.

Here is a link to download Eclipse for C/C++ http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/heliossr2
Retrieved from https://cs.gmu.edu/~jmlien/teaching/cs451/index.php?n=Main.PA03-OpenGL
Page last modified on October 04, 2016, at 05:46 PM