top of page

OpenGL Viewer (C++, OpenGL)

Spring 2022

I developed an OpenGL Viewer program to view object files using two different shaders.

For my second project in my Computer Graphics class, I had to develop an OpenGL program that reads in vertex information from .obj files and display those objects using Gouraud and Phong shaders. The two shaders are implemented by modifying the vertex and fragment shader code files .vs and .fs.


Camera movement and rotation around an axis is implemented where you can rotate the object around a certain axis. You can also scale the size of the object. We also learned OpenGL's functions

glEnable(GL_DEPTH_TEST) and glDepthFunc(GL_LESS) / glDepthFunc(GL_ALWAYS)

to show the contents of the z-buffer. More information is in the project report.


Details about how to run the project, as well as the controls, are all listed in the report and readme on GitHub.

Project Gallery

bottom of page