Yepeichu——《计算机图形学编程》笔记
-
background
-
draw a point with changing size
-
detectException
-
readShaderSource
-
drawTriangle
-
triangleMoving
To run the code, we should install the two library:
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libglew-dev
sudo apt-get install libglfw3-dev
if you want to run the test code, maybe you should install GLUT:
if you want to save the image, maybe you should install OpenCV 3:
you should compile from source code.
There are some problems about glew, which can visit the website.
- transformPoint
Note that we need glm to define the data type.
-
drawCube
-
drawCubeColor
-
drawCubeRotate
-
drawMultipleCubes
-
drawMultipleCubesInstance
-
drawMultipleGeometries
-
drawPlanets
Note that we can modify the camera position(bigger z) to see more things.