/Python3-PyOpenGL-Tutorial

A 10-stage tutorial on developing OpenGL (PyOpenGL) in Python 3

Primary LanguagePython

Python3 PyOpenGL tutorial

This is updated to Python 3.10. Tested on Ubuntu 22.04 with OpenGL 4.6.

Updated from this Python2 project

Implemented in Python based on the original C++ tutorial from here. You also can find C implementation here

中文说明可以看这里

table of content

  1. tu_00_glfw_window_sample : GLFW Version Colored cube.
    original tutorial => http://www.opengl-tutorial.org/beginners-tutorials/tutorial-4-a-colored-cube/

PyOpenGL

  1. tu_01_color_cube : GLUT Version Colored cube.
    original tutorial => http://www.opengl-tutorial.org/beginners-tutorials/tutorial-4-a-colored-cube/

PyOpenGL

  1. tu_02_texture_without_normal: basic rendering with texture.
    original tutorial => http://www.opengl-tutorial.org/beginners-tutorials/tutorial-5-a-textured-cube/

PyOpenGL

  1. tu_03_loadobj : load mesh information from wavefont obj file:
    original tutorial => http://www.opengl-tutorial.org/beginners-tutorials/tutorial-7-model-loading/ PyOpenGL

  2. tu_04_vbo : use VBO
    original tutorial => http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-9-vbo-indexing/

PyOpenGL

  1. tu_05_input : add viewport control with keyboard and mouse
    original tutorial => http://www.opengl-tutorial.org/beginners-tutorials/tutorial-6-keyboard-and-mouse/ PyOpenGL

  2. tu_06_multobjs: draw multi mesh objects in same window
    PyOpenGL

  3. tu_07_basic_shading : basic shading with light and normals
    original tutorial => http://www.opengl-tutorial.org/beginners-tutorials/tutorial-8-basic-shading/ PyOpenGL

  4. tu_08_transparency : transparency
    original tutorial => http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-10-transparency/ PyOpenGL

  5. tu_09_draw_text: Draw text in openGL
    original tutorial => http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-11-2d-text/
    PyOpenGL

  6. tu_10_normal_mapping : Normal Mapping
    original tutorial => http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-13-normal-mapping/ PyOpenGL