Skip to content

imitablerabbit/opengl-3d-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL 3D Engine

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.

Libraries:

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.

Example:

Setup steps:

In order to use an example of the program that is shown in the screenshots below follow these steps:

  1. Download the zip file from the download link
  2. Unzip the file to any convenient directory
  3. Locate and open the Debug folder from the main directory
  4. Run the ALL.exe file (This should open in a fullscreen window)

Controls:

  • 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'.

Screenshots:

Basic Models: Basic Models

Multiple Models: Multiple Models

About

A basic 3D engine to render a model into an openGL context

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published