A 3D viewer for wavefront (.obj) files using OpenGL (no immediate mode) and GLUT.
This project is at an early stage.
The GLM library written by Nate Robins is used for loading the .obj files.
The original library has been extented so that it does not use deprecated OpenGL code: the vertices and normals are loaded into VBOs and rendered using GLSL shaders.
For now the library extension only supports models with single or multiple materials. There is no support for textures yet. Part of the code provided as supporting material for "Interactive Computer Graphics" by Edward Angel was initialy used to facilitate shader loading and compiling as well as mathematical utilities. This library has been replaced with OpenGL Mathematics Library. In order to avoid potential name conflicts I renamed the original files glm.h and glm.c to libobj.h and libobj.cpp.
Install dependencies from Debina/Ubuntu packages:
sudo apt install libglew-dev libglut-dev libglm-dev
make