P A03-Open GL
Deadline: Oct. 10th, 11:59pm (2016)
Your tasks in this assignment are listed below
- Setup your programming environment and compile the provided code
- Here is the code: obj-viewer.7z
- 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
- 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
- Submit two pictures of you, one with your tetrahedron and one with your 3D head, on Blackboard
- Your face should show up next to the tetrahedron/head rendering.
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,
- 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 obj-viewer\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 obj-viewer 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 obj-viewer 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