OpenGL Basics
2022
C++, Graphics
This project is focused on learning about OpenGL and the graphics pipeline.
By following the book “OpenGL Superbible” by Graham Sellers, Nicholas Haemel and Richard S. Wright Jr. and the website https://learnopengl.com, I could quickly learn basics and go deeper into the subject.
Project still being worked on in a different repository. I will update this page when the time comes.
Basics
After rendering the basic 2D triangle, I’ve developed a scene with two texturized rotating cubes.
In this step I’ve learned to: - Render 3D objects. - Add textures and apply RGB colors in objects. - Apply the translation, rotation and scaling matrices. - Camera movement.

Taken from a scene with two rotating cubes
Ligthing
In this scene, I’ve implemented the Phong lighting model where we can clearly see the 3 algorithms in action: ambient, diffuse and specular lighting. On top of that, I’ve recalled the necessary and relevant math topics such as vectors and matrices to be able to apply this model.

A light source and an object using the phong lighting model