A basic 3D engine to render a model into an openGL context. This engine is capable of reading both OBJ files and a plain MODEL file which only contains sets of vertices.
This project uses openGl 3.3 along side some other libraries to help create the window and reduce the amount of mathematical work:
- Glew - This is the openGL functionality in an extension format. The library can be found here.
- Glfw - This is the window handler for the openGL context. It is used to open a basic window so that the models can be rendered inside. The library can be found here.
- Glm - This is the mathematical library so that we don't have to write classes for vectors and matrices, along with the mathematical operations for them. The library can be found here.
In order to use the source files and Visual Studio solution, make sure that the libraries are linked correctly.
In order to use an example of the program that is shown in the screenshots below follow these steps:
- Download the zip file from the download link
- Unzip the file to any convenient directory
- Locate and open the Debug folder from the main directory
- Run the ALL.exe file (This should open in a fullscreen window)
- Camera (Look around) - Mouse movement
- Move forward (In the direction the camera is facing) - 'w' key
- Move backwards - 's' key
- Move left - 'a' key
- Move right - 'd' key
- Menu - 'Esc' key
Note: In order to close the program either open the menu and click on the Exit button or press 'Alt' + 'F4'.