A visualisation and comparison of normal and bump mapping models in OpenGL and how they alter the original appearance.
This repository contains an OpenGL environment rendering a scene consisting of 3 objects rotating around a common axis. Each of these objects shows the results of a different shading model: simple Blinn-Phong, Blinn-Phong + Normal mapping, and Blinn-Phong + Bump mapping. The scene also contains a skybox that is irrelevant to the intended purpose. This skybox has been downloaded from the humus website.
The torus and sphere models have been created using Blender. The same program also generated normals, tangents, bitangents and UV coordinates. The third object, which represents a glass, was downloaded from UPC-BarcelonaTech’s graphics repository. Finally, all the textures, level maps and normal maps have been downloaded from the site textures.com.
- Xcode 14.3.1
- OpenGL 4.1 (included in macOS)
- Glew 2.2.0
- GLFW 3.3.8
- Assimp 5.3.1
- GLM 1.0.0
- Clone this repository.
git clone https://github.com/borjagq/RTR-Normal-Bump-mapping/
-
Open the project
Lab3.xcodeproj
-
Build and run
This project is licensed under the MIT License - see the LICENSE file for details
This repository incorporates essential components from the open-source libraries stb and Dear ImGui. These libraries provide the file read/write and GUI functionalities. For further details about these libraries, visit their GitHub repositories.