Posts

Showing posts from May, 2024

Environment Mapping in OpenGL

Image
In this blog post I will go over my implementation for the second homework of CENG469 Computer Graphics II. Initial Goal vs. Progress This assignment consisted of several different concepts: E quirectangular to cubemap texture generation Environment mapping (Skybox creation, reflection and refraction) Image based lighting (Median Cut Sampling) HDR tonemapping Unfortunately, due to my slow progress and the time constraints, I wasn't able to accomplish the image based lighting and tonemapping steps which is the heart of the task. However, I believe I've improved my knowledge on some important OpenGL concepts that needed improving such as VBO generation, texture generation and utilizing shader programs. I have also learned new concepts, which include the usage and generation of HDRI textures and skybox generation. Equirectangular to cubemap texture generation The first step of my implementation was to take a spherical HDR image and accurately produce 6 cubemap faces from it that w...