Assignment 1 (Codebase)

As Keenan mentioned in class, the second component of getting started is downloading the codebase and getting a sample program to run. The codebase for this course is available at

The README displayed on that page contains some instructions for getting started and running a test program, as well as some other information. If you are an experienced programmer, feel free to ignore the instructions and do as you wish, there’s nothing especially unusual going on here (just get the test program working!).

To verify your success, please email me ( a screenshot of the window displaying the bunny by Jan 21. Don’t forget to include “DDGSpring2016” in the subject line.

There will surely be some hiccups getting started with this code, don’t hesitate to contact me with issues either via email or blog comments. I will also be holding an optional help session next Tuesday (Jan 19) around 5:00 so we can get things sorted out. If you aren’t available at that time and you would like to meet, let me know.

5 thoughts on “Assignment 1 (Codebase)”

  1. FYI: In case anybody else is using Windows and prefers Cygwin to the Windows command prompt, you can just follow the instructions on Github, uninstall Python from your Cygwin environment and then add the following to your .bashrc file:

    export PATH=”/cygdrive/c/anaconda:$PATH”

    I did it earlier and haven’t had any problems crop up in Cygwin because of it (and I was able to render the mesh using Cygwin of course).

  2. For those of you on Linux, you might need to try creatively reordering the pip commands until they go through. In particular, the matplotlib didn’t want to install itself until the end.

  3. Hi, i am a beginner to Linux and try to test the code on a virtual machine of Ubuntu 14.04.1. I just followed the guidance of the instructions, however after all steps i would always get an error as :

    Traceback (most recent call last):
    File “”, line 33, in
    if __name__ == “__main__”: main()
    File “”, line 28, in main
    meshDisplay = MeshDisplay(windowTitle=winName)
    File “../core/”, line 157, in __init__
    File “../core/”, line 169, in prepareShapeProgram
    File “../core/”, line 912, in __init__
    raise RuntimeError(glGetShaderInfoLog(vertShader))
    RuntimeError: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES
    I know the problem should be with my opengl on Ubuntu,and I’ve tried googled it and it seems there is little help. May I ask for those who successfully build them on Linux, is there any advice or should I use a lower version of Ubuntu to solve this problem? Thanks!

    1. Unfortunately, this error means that your machine doesn’t think it supports a recent enough version of openGL for the code. This could be because of a driver problem with your linux VM, or because the hardware on your machine actually doesn’t support it.

      If it is a driver/VM problem, you may be able to solve this by installing the latest graphics drivers, or installing the proprietary drivers. However, installing graphics drivers on linux can be daunting if you’re new to the OS, so you might want to contact me if you get stuck.

      The other case is not so fixable. Nearly all computers made within the last 8 year should support this openGL version (3.2), but if your hardware actually doesn’t you may need to work on a different machine, or we may need to work something else out. Again, feel free to start an email thread with me.

Comments are closed.