I created an OpenGL scene based on the Spider-Man PS2 video game, but using the characters from Spider-Man: Into the Spider-Verse. Within this scene, I implemented three .obj files with their corresponding textures. I also implemented a fragment and vertex shader that incorporated point lighting, directional illumination and spotlight lighting.
Navigating through the scene, showing the rendered obj's including a Spider-man figure and a new-york city environment.
As it is quite difficult to showcase an entire graphics project within a few clips and images, I've included some screenshots below to showcase some of the code:
Here is a screenshot of the Fragment Shader. Two functions are shown - Point Light and Directional Illumination. These lights can both be toggled at the click of a button.
Fragment Shader - Point and Directional light code
.obj loader
Here is a screenshot of the .obj loader. This function is responsible for loading an .obj file and processing its vertex data for rendering.
The New York City environment is a relatively complex .obj model, but with some adjustments, I was able to successfully integrate and render it within the project.