preloader

Phong Reflection Model Simulator(PRMS)

A 3D real-time simulator which simulates phong reflection model

Project Details

  • Project Name :
    Phong Reflection Model Simulator(PRMS)
  • Type :
    Open Source
  • Completed on :
    6th March 2021
  • Tech Stack :
    Visual Studio 2019, Modern C++, OpenGL 4.5
  • Libraries :
    GLEW, GLFW, GLM, ASSIMP, STB, Dear ImGui

Phong Reflection Model Simulator(PRMS)

Phong Reflection Model Simulator is a simple 3D graphics simulator written in C++ and OpenGL.

It is a brief program that simulates how phong reflection models work.
Phong refelction model utilizes phong lighting model in order to create reflection on surface.
Phong lighting model consists of three components: ambient lighting, diffuse lighting, and specular lighting.
In this simulator, you can control ambient lighting and diffuse lighting by modifying ambient intensity and diffuse intensity of lights in the "Light" tab.
Furthermore, specular lighting can be controlled by modifying specular powers of materials that meshs have in the "Material" section under the "Mesh" tab.
Addtional features of lights and meshs as well as those of a camera and a skybox are available as well.

Tech Stack

The project was done on Windows 10, Visual Studio 2019 with Modern C++. OpenGL was used as a 3D graphics API.

Libraries

For OpenGL extension loading library, GLEW is used.
For OpenGL utility library, GLFW is used.
For mathematics library, GLM is used.
For asset importer, ASSIMP is used.
For image importer, STB(stb_image) is used.
For the graphical user interface, Dear ImGui is used.

Preview

제목 없음

Future

The work is on-going. I’m planning to use the program as a viewport for my future graphics projects.

License

MIT License

Source Code

Github repository