Skip to content

CaettoGattowski/OpenGL_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an openGL project where i showcase a full series of commits that resolve around me learning about the openGL libraries of GLEW,GLFW and SDL, firstly how to set them up. Secondly I use the rendering pipeling to create with shaders my first triangle and then set up the GLM openGL Maths Library to learn about the transformations of Translation, Rotation and Scaling. I then used Interpolation and Indexed Draws with projections and I continued with the camera set up to be moved when keys are pressed but also control it with mouse movements adding in the end two triangles. Later I researched about texture and image loading where I added the textures of brick and dirt on the two triangles as show in picture 1. Afterwards I go on using Ambient Lighting to dim a red coloured directional lighting to the two triangles as shown in picture 2.

picture 1. Texture Loaded Triangles

picture 2. Red Ambient Lighting with fade

I proceed in adding directional diffuse lightning as shown in the following pictures but with the difference that picture 3 has phong shading whereas picture 4 has flat shading.

picture 3 Screenshot 2025-09-30 115240

picture 4 Screenshot 2025-09-30 115423

Added Specular Lighting on both triangles one with dull one with shiny material as shown in picture 5.

picture 5 Screenshot 2025-09-30 175035

Added two different point Lights, green and blue that shine on the two triangle pyramids and the floor as seen on picture 6. The shininess can be seen on picture 7.

picture 6

Screenshot 2025-10-27 155331

picture 7

Screenshot 2025-10-27 155718

Added a flashlight camera based position and direction that changes depending the depth as shown in pictures 8 and 9.

pciture 8

Screenshot 2025-10-29 201104

picture 9

Screenshot 2025-10-29 201115

Added a model importer with proper memory allocation and saving whilst also importing textures for each model as shown in the pictures below.

picture 10

Screenshot 2025-11-03 181315

picture 11

Screenshot 2025-11-03 181331

About

This project showcases knowledge in C++, Graphics Programming and usage of GL libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published