PA 1 Open GL Basics
Deadline: September 9th, 11:59pm (2014)
Your tasks in this assignment are listed below
- Setup your programming environment and compile the provided code
- Here is the code:
cs451-PA1.7zΔ - Here is a newer version of the code: cs451-PA1-new.7z Δ
- Here is the code:
- Create a random tetrahedron in obj file format
What and How to submit
- email a picture of you with your tetrahedron to jmlien@cs.gmu.edu
How to set up your programming environment for OpenGL on Windows
Things that you need for this assignment should be inside cs451-PA1\lib and cs451-PA1\GL However,
- If you want to install your own glut (freeglut), you can download it here: http://freeglut.sourceforge.net/
- If you are using Visual C++ 2013, a solution file is already provided in cs451-PA1\vc_files
- If you are using older versions of Visual C++, such as VC 2010, or if you would like to use Eclips with Cygwin or MingGW, this link provides you a detailed description on how you can do it: https://www3.ntu.edu.sg/home/ehchua/programming/opengl/HowTo_OpenGL_C.html
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
- sudo apt-get update
- sudo apt-get install build-essential
- sudo apt-get install freeglut3-dev
- make (in cs451-PA1 directory)
You might want to setup an IDE for your future assignments.
- If you would like to use Eclipse, you can install eclipse by saying
- Then the easiest way is to use the provided makefile in eclipse by creating a makefile (empty) project
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
- make (in cs451-PA1 directory)
However, you might want to setup an IDE for your future assignments.
- If you would like to use Eclipse, then the easiest way is to use the make file in eclipse by creating a makefile project
- If you would like to use XCode, here is a link http://web.eecs.umich.edu/~sugih/courses/eecs487/glut-howto/#mac