Skip to content

Instantly share code, notes, and snippets.

@seren
Created October 4, 2014 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seren/3e2d61fb923d2319ec2f to your computer and use it in GitHub Desktop.
Save seren/3e2d61fb923d2319ec2f to your computer and use it in GitHub Desktop.
render.py fixes
Commands:
# may or may not be necessary
brew install libtiff libjpeg webp little-cms2
# may need sudo in front
pip install pyopengl
pip install Pillow
Changes to the rendery.py file:
# comment out this:
from Image import *
# and add this:
from PIL import Image
# Comment out this:
image = open("NeHe.bmp")
# and add this:
image = Image.open("NeHe.bmp")
# Comment out this:
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_ALPHA | GLUT_DEPTH | GLUT_STEREO)
# and add this:
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment