Currently in our game we only have the simple OpenGL lighting implemented. We do plan on adding better lighting and shadows to our game and what we learned this week will help us do that .
Dr.Hogue talked about the importance of light in video games. Lighting creates mood and emotion, it can also make things look more realistic.
Another important thing to note is that lighting is additive and is made up of 4 different components; emissive light, diffuse light, specular light, and ambient light.
emissive: Self-illumination which equally radiates in all directions from a surface.
diffuse: Reflection of light from a surface
specular: Bright highlight on an object caused by direct reflection
ambient: Light that affects all objects in a scene equally.
Dr.Hogue also showed us some of the shader code required to do these lighting techniques. I was surprised at how little code is actually required to compute lighting which seems so complicated.
Finally we looked at toon shading. I really like toon shading and I didn't think it was as simple as Dr.Hogue showed us. Toon shading is done by taking the max dot product of N and L and that value is used to determine what amount of light or what colour the pixel is. The results can be really beautiful.
In terms of the progress of our game we are currently working on modifying our model loader to use vbo's and vao's. After this is complete we can start working on creating some really cool lighting and shader effects to make our game look awesome.
- Mark Henry