3D Model Viewer
A real-time renderer of my own in C++ and OpenGL that loads 3D models and draws them with lighting, normal and specular maps.
Facts
- 2023 – 2024, revised 2026 · Open Source (MIT)
- Per-pixel Phong lighting, normal and specular maps
- No engine: every draw call can be traced to the shader
What it's about
My fascination with graphics programming is what got me into programming. The model viewer was the point at which I felt competent enough to take on graphics programming myself.
It came out of the Graphics and Shader Programming lecture at SAE, together with the LearnOpenGL tutorials. There is no engine: every draw call can be traced from main.cpp to the GLSL shader.
How it works
Models are loaded through Assimp and handed to the graphics card as vertex buffers. Lighting is computed per pixel with the Phong model; normal maps give the surface structure, specular maps let leather and metal shine differently.
A point light circles the scene, and the camera moves freely and zooms with the mouse wheel. The model can be rotated around its own axis independently of the camera, and a key switches the view to wireframe.
Where it stands
Paused.