Posts

Basic Cubemaps

Image
Cubemaps  Topic of this short blog I will talk about cubemap basics and an OpenGL program that renders a scene with cube mapped background and mirror objects which reflects both the environment and the other objects in the scene.   Tools and Resources To render the scene I will be talking about I have written a program in C++ using OpenGL graphics API and glfw , glew , glm and  stbimage libraries. I also want to thank my professor Ahmet Oğuz Akyüz for letting me share his lecture slides (CENG 469 – Computer Graphics 2) which I've used for referencing theoretical parts of this little project. What is a Cubemap? In our rendered scenes sometimes our objects may not fill the whole window and the remaining spaces can remain black or some other color which is not visually pleasing. In orders to solve that we can render a background texture that is infinitely far away from camera so that it would not overwrite any other objects pixels and it can fill the remaining unpleasant...