Project Overview
This repository is for the Graphics assessment for Year 2. It contains multiple compiled programs for each required part of the assessment. Check the releases tab for an easy way to find a compiled and zipped version of each program.
Each is implemented as an application class derived from BaseApplication. To run a certain example simply change the application being created within main.cpp.
Current working examples are:
-
Intro To OpenGL ReadMe
Demonstrates setting up and OpenGL context window using GLFW as the wrangler
-
Rendering Geometry ReadMe
Demonstrates drawing a plane using a custom vertex and fragment shade
-
Cameras and Projections ReadMe
Demonstrates creating a base camera class, and then deriving a Fly Camera from that
-
Direct Lighting ReadMe
Demonstrates Phong lighting on a generated sphere
-
Texturing ReadMe
Texture applied across a quad using GL VAO, VBO and IBO
-
Procedural Generation ReadMe
Demonstrates using Perlin Noise to populate a texture and displacement mapping in a vertex shader
Putting it all Together
This is the final product. After putting all of the pieces together using a component based archetecture, we get this as the result. It contains a basic scene editor modeled after Unity complete with a transform hierachy and inspector. The first .exe provides a basic solar system of a sun, earth and moon to show transform parenting. The second one provides an example of texturing.