Docsity

Traditional Lighting Model in Computer Graphics: Ambient, Diffuse, and Specular Light, Slides of Computer Graphics

Partial preview of the text

Download Traditional Lighting Model in Computer Graphics: Ambient, Diffuse, and Specular Light and more Slides Computer Graphics in PDF only on Docsity!

Computer

Graphics

Lecture 29

Mathematics of

Lighting and

Shading - III

We will now take a look at the traditional method of calculating lighting in hardware

A method that we'll find is sufficient for most of our needs

The traditional approach in real-time computer graphics has been to calculate lighting at a vertex as a sum of the ambient, diffuse, and specular light.

we have an ambient term and then a sum of all the light from the light sources

This is called a local lighting model since the only light on a vertex is from a light source, not from other objects.

That is, lights are lights, not objects!

we've included the

reflection coefficients

for each term, k for

completeness.

This equation does fail

to take into account

any gross roughness

or anything other

than perfect isotropic

reflection

the surface is treated

as being perfectly

smooth and equally

reflective in all

directions

or a surface that doesn't really reflect light uniformly in all directions (like brushed metal, hair, or skin).

However, with liberal use of texture maps to add detail, this model has served pretty well and can still be used for a majority of the lighting processing to create a realistic environment in real time

Ambient Light

Ambient light is the light that comes from all directions — thus all surfaces are illuminated equally regardless of orientation