So week 3, things are starting to get really interesting. In the lectures we started going over the importance of lighting, and the major differences it can make in scenes. We were shown some examples of how by just using lighting alone, it could add direction for the player, as well change the mood of an scene.
We learnt that in OpenGL there are 4 different components of light; emission, ambient, diffuse, and specular.
Example of Emission |
Ambient: A non directional light source; light that doesn't have an origin. All vertices in the scene are affected by this light component.When a light ray hits a surface, it is scattered equally in call directions.
Diffuse: Light ray that comes from a light source and hits directly on different parts of an surface, changes depend on the vertex positions, and its orientation in relation to the light source.
Specular: Specular is the light component that creates highlights on a surface like mirror and metals, and changes in brightness depending on where it is viewed from. This component is usually used with materials.
Toon/Cel Shading was also covered covered in class which I was really looking forward to previously mentioned. From what I understood from cel shading, it still does make use of the 4 components of the light, but unlike how diffuse and specular lighting normally uses a continuous function, it uses a step function for lighting, giving it a more 'blocky" feeling. It was also explained that there are many ways to achieve this effect, some more efficient/less costly then others, but all generally the same concept.
FrameBuffer Object |
- Jonathan S.