Author: HE PEILIN 10078, CHEN YUXUAN 10011
The core of project is to be familiar with transformations, texture mapping, lighting and window event handling, so that general animation of solar system which consists of the Sun, eight planets (Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, and Neptune) and the Moon can be realized.
The corresponding libraries are documented below:
Library | Description | Related Files | |
---|---|---|---|
Core Library | OpenGL | Provided by Visual Studio 2019 SDK | opengl32.lib |
Supporting Libraries | GLFW | Window management | glfw3.lib |
GLEW | Extension library | glew32.lib, glew32.dll | |
GLM | Math library | source codes in the folder glm | |
SOIL2 | Texture management | soil2-debug.lib |
Also, you can choose other libraries. It is generally preferable to use texture loading library. Some examples are FreeImage, DevIL, GLI, GLUT and Glraw.
The framework of these libraries can refer picture below:
How to using Visual Studio 2019 for OpenGL can refer our course slide Basic Drawing in OpenGL
The main model objects to animate asters are sphere and torus respectively. And we choose stack in C++ STL relatively straightforward to adapt as a matrix stack.
W,S,A and D in keyboard to adjust the position of camera as your view.
Keyboard | Function |
---|---|
W | translate forward |
S | translate backward |
A | translate left |
D | translate right |
The output in window can be seen in figure below:
You can download the files openGL_Project.exe and glew32.dll to realize output.
More specific information can be seen in our submission of final report Project in CS104 – Animation of the Solar.