July 27, 2020 - category: graphics
I was doing this OpenGL course on Udemy a while ago and here is the progress so far.
Got a window open.
Had to setup first:
- Microsoft Visual Studio 2019
- GLEW ( OpenGL Extension Wrangler )
- GLFW ( OpenGL FrameWork )
- Code to init GLEW and GLFW
Got a triangle to the screen 😀
Triangle got some color and a z axis. The GIF looks a bit weird on this one.
Camera, keyboard and mouse control added.
Texture loading done using stb_image.h loader. Also forgot to mention earlier that I’m using math library called glm.
Got some lights going on.
- Directional lights
- Ambient lighting
- Diffuse lighting
- Specular lighting
- Point lights
Spotlight following a camera.
Random models from https://free3d.com
Orgrimmar from World of Warcraft