Skip to content

DavidNg32/OpenGL-ModelViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL Model Viewer

OpenGL Model Viewer is a simple model viewer that uses OpenGL to render 3D models. It is written in C++ and uses the GLFW library for window management and the GLAD library for OpenGL function loading. The model viewer is capable of loading models in the Wavefront OBJ format and rendering them using OpenGL by utilizing the assimp library.

Getting Started

Prerequisites

The following libraries are required to build the project:

Library Info Link
GLFW Lightweight utility library for use with OpenGL Website
glad Library for OpenGL function loading Website
glm Mathematics library for graphics software based on the OpenGL Website
assimp Library to load various 3d file formats into a shared, in-memory format. Website
inih Simple .INI file parser Website

Installing

  • Clone the repository into the machine
git clone https://github.com/DavidNg32/OpenGL-ModelViewer.git
  • Build the project using CMake
  • Run the model viewer executable

Program Details

  • The program reads the configuration file config.ini to load the model file and the shader files.
  • The program has a simple camera system that allows the user to move the camera around the model.
  • There is a placeholder model available for the user to run in the assets folder.
  • If you want a custom model, you can add the obj. file to the assets folder and change the path in the main file.

Acknowledgments

  • LearnOpenGL for the great and comprehensive tutorials on OpenGL.

About

An OpenGL program to view obj. file model with orbiting cameras

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages