1 / 17

Lighting and Illumination

Lighting and Illumination. Dr. Aree Ali Mohammed Assistant Professor 2013-2014 3 rd Stage aree.ali@univsul.net. Example 1. Find the cubic polynomial or that passes through the four points and satisfies. What is Lighting?. As a photon Metal Insulator. What is Lighting?.

reegan
Download Presentation

Lighting and Illumination

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. University of Sulaimani - School of Science - Computer Dept. Lighting and Illumination Dr. Aree Ali Mohammed Assistant Professor 2013-2014 3rd Stage aree.ali@univsul.net

  2. Example 1. Find the cubic polynomial or that passes through the four points and satisfies University of Sulaimani - School of Science - Computer Dept. What is Lighting? As a photon MetalInsulator

  3. University of Sulaimani - School of Science - Computer Dept. What is Lighting? 2. As a wave Light plays an important part in computer graphics for rendering realistic images. Using lighting models, we can simulate shading, reflection and refraction of light, comparable to what we see in the real world.

  4. Example 1. Find the cubic polynomial or that passes through the four points and satisfies University of Sulaimani - School of Science - Computer Dept. What is a Illumination? Interactions between light sources and the object surface • An “illumination model” describes inputs, assumptions, and outputs used to calculate illumination (color / brightness) of surface elements • Usually includes • Light attributes (intensity, color, position, direction, shape) • Object surface properties (color, reflectivity, transparency, etc.) • Interaction between lights and objects

  5. Example 1. Find the cubic polynomial or that passes through the four points and satisfies University of Sulaimani - School of Science - Computer Dept. Basic Light Sources • The amount that a light illuminates an object decreases with the square of the distance between them. This is known as Light Attenuation. As part of illumination models, one can specify whether the light intensity varies with the distance between the object and the light source

  6. University of Sulaimani - School of Science - Computer Dept. Illumination Models • Local Illumination • Takes only direct lighting information • refers to direct interaction between one light source and one object surface. • Global Illumination • refers to the interaction of light between all surfaces in a scene. • Most light striking a surface element comes directly from a light emitting source (direct illumination) • Sometimes light from a source is blocked by another object, resulting in shadows • However, objects in the shadow can still receive light from light bouncing off other objects (indirect illumination)

  7. University of Sulaimani - School of Science - Computer Dept. Example 1: Local Illumination • Only considers the light, the observer position, and the object’s material properties • OpenGL does this.

  8. University of Sulaimani - School of Science - Computer Dept. Example 2: Global Illumination • Takes into account of the interaction of light from all the surfaces in the scene • Recursive ray tracing is an example. It models light rays bouncing between objects

  9. University of Sulaimani - School of Science - Computer Dept. Local Illumination Model • In computer graphics, single object-light interaction is approximated through local illumination models. • Basic model used is the Phong model which breaks local illumination into 3 components: • Ambient reflection • Diffuse reflection • Specular reflection • For every point, or small surface area, of an object, we want to calculate the light due to these three components.

  10. Example 1. Find the cubic polynomial or that passes through the four points and satisfies University of Sulaimani - School of Science - Computer Dept. Ambient Reflection • Ambient light = background light, it is used to simulate indirect lighting • Ambient component • Independent of • Object’s position • Viewer’s position • Light source’s position • Dependent of • A constant factor (in each of the R, G, B channels)

  11. University of Sulaimani - School of Science - Computer Dept. Diffuse Reflection • Diffuse light = illumination that a surface receives from a light source that reflects equally in all directions • Independent of: • Viewer’s position • Dependent of: • Light’s position • Surface property (normal, reflectance property)

  12. University of Sulaimani - School of Science - Computer Dept. Lambert’s Law • Need to know how much light a point on the object receives from the light source • Solution based on Lambert’s Law Point receives less light Point receives more light Diffuse = Kd*I*cos(theta)

  13. Example 1. Find the cubic polynomial or that passes through the four points and satisfies University of Sulaimani - School of Science - Computer Dept. Specular Reflection I • Specular light = light reflection from shiny surfaces • Color depends on material and how it scatters light • Shiny surfaces (metal, mirror, etc.) reflect more light • Specular light depends on both light source position and view position

  14. Example 1. Find the cubic polynomial or that passes through the four points and satisfies University of Sulaimani - School of Science - Computer Dept. Specular Reflection II

  15. Example 1. Find the cubic polynomial or that passes through the four points and satisfies University of Sulaimani - School of Science - Computer Dept. Variation in Diffuse and Specular in Local Model • Putting Diffuse and Specular together in a local illumination model

  16. University of Sulaimani - School of Science - Computer Dept. Phong Lighting Equation

  17. Shading vs. Lighting • How is Shading different from Lighting? • Lighting evaluates the lighting equation at each point on the surface of an object • Shading is kind of a “hack” that computes only lighting equations on the vertices, and interpolates the pixels in between

More Related