Python + OpenGL
The purpose of this project is threefold:
- Do more graphics
- Learn more about OpenGL, GLFW, GLUT
- Learn more about the graphics pipeline and build a framework for 2D (3D maybe later?) rendering
Requires PyOpenGL, GLFW
Scene 1 renders 50 squares in random starting positions and gives them a random velocity vector. The squares collide with the borders of the window and velocity for each square is updated accordingly.
Scene 2 is not interesting.
Scene 3 renders 1000 points in random starting positions and gives them a random velocity vector. They collide with the window borders and also accelerate downwards due to gravity.
(You may need to open this image at full resolution to see the points!)
Scene 4 renders 100 points in random starting positions within a small area of the window. Each frame, the acceleration due to gravity between the points is calculated and the velocity vectors of each point are updated accordingly. The small number of points is indicative of the need to utilize the GPU for these calculations, which will likely be the next phase of this project.
(You may need to open this image at full resolution to see the points!)