
OpenGL Graphics Programming
This is a graphics project made within the OpenGL framework for one of my modules during my time at Abertay University. For this project I had set out to recreate the Dive to the Heart scene from the kingdom hearts series.
The scene itself has a main pillar that has characters from the game in the center. The scene is lit by a singular spotlight that can be controlled by the user to change the position along, with being able to have the lighting oscillate the RGB values at different rates to give different moods to the scene. Lastly the scene has a glass pillar that reflects the main scene 5 times when looking through it and has it orbit around the center in the opposite direction of the moon.
For the glass pillar, this makes use of the stencil buffer to give the illusion that the scene is larger than it actually was by mirroring the main scene multiple times outside of the pillar. Since these 5 pillars are only rendered to the stencil buffer, once you aren't looking through the pillar these then become not visible till you are looking through the glass again