——————————————Peichu Ye / xiaoC : peichu.ye@gmail.com
This program is constructed to writing code following the course:
English: OpenGL Step by Step - OpenGL Development
Chinese: 一步步学OpenGL
- OpenGL
- GLUT
- AntTweakBar
- ImageMagick-6
- freetype
- assimp
- bin: executable files.
- Common: Self-defined functions of course author.
- Include: Self-defined functions of course author.
- docs: Some fixed bugs when we compile the program.
- src: Project of each tutorial.
You just need to run the command:
./make_project.bash
And then you can run the executable files in the root dir:
./bin/helloDot
- tutorial_01: drawing a window.
- tutorial_02: drawing a point.
- tutorial_03: drawing a triangular.
- tutorial_04: drawing a triangular with red color.
- tutorial_05: drawing a red triangular with variable in size by using uniform type.
- tutorial_06: drawing a moving triangular with red color.
- tutorial_07: drawing a rotating triangular with red color.
- tutorial_08: drawing a scaling triangular with red color.
- tutorial_09: drawing a scaling triangular with changing color by interpolation.
- tutorial_10: drawing a rotating pyramid along y axis.
- tutorial_11: drawing a transforming pyramid with three types trasnformation including scale and rotation as well as translation.
- tutorial_12: drawing a perspective pyramid with rotation along y axis.
- tutorial_13: drawing a perspective pyramid with fixed camera position and view.
- tutorial_14: drawing a perspective pyramid which can be controled by keyboard.
- tutorial_15: drawing a perspective pyramid which can be controled by mouse.
- tutorial_16: drawing a perspective pyramid with texture.
- tutorial_17: drawing a perspective pyramid with texture and directional light.
- tutorial_18: drawing a perspective pyramid with texture and directional light as well as diffuse light.
- tutorial_19: drawing a perspective pyramid with directional light and diffuse light as well as specular light.
- tutorial_20: drawing a texture image with two point lights.
- tutorial_21: drawing a texture image with two point lights and two spot lights.
- tutorial_22: Loading a 3D model using Assimp Library.
- tutorial_23: constructing a shadow map from a 3d model.
- tutorial_24: constructing a shadow map from a 3d model and display with 3d model.
- tutorial_25: drawing a sky box.
- fix_math_3d_bug.md.
- fix_util_bug.md.
- fix_pipeline_bug.md.
- fix_cameraModel_bug.md.
- fix_newCameraObject_bug.md.
- fix_imageMagick_bug.md.
- fix_assimp_bug.md.
Pay attention to the shader file path, please change the path to your own:
const char* pVSFileName = "/home/xiaoc/xiaoc/code/opengl/stepByStep/src/tutorial_x/shader/shader.vs";
const char* pFSFileName = "/home/xiaoc/xiaoc/code/opengl/stepByStep/src/tutorial_x/shader/shader.fs";