9
C O M P U T E R G R A P H I C S CMSC 435 / 634 August 2013 lighting and shading Lighting and Shading

Lighting and Shading - Inspiring Innovation · Lighting and Shading • Phong illumination model (this lecture) – Approximate only interaction light, surface, viewer – Relatively

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lighting and Shading - Inspiring Innovation · Lighting and Shading • Phong illumination model (this lecture) – Approximate only interaction light, surface, viewer – Relatively

C O M P U T E R G R A P H I C S

CMSC 435 / 634 August 2013 lighting and shading

Lighting and Shading

Page 2: Lighting and Shading - Inspiring Innovation · Lighting and Shading • Phong illumination model (this lecture) – Approximate only interaction light, surface, viewer – Relatively

C O M P U T E R G R A P H I C S

CMSC 435 / 634 August 2013 lighting and shading

Motivations Approximate physical reality

Radiosity: Restaurant interior: Guillermo Leal, Evolution visual

Page 3: Lighting and Shading - Inspiring Innovation · Lighting and Shading • Phong illumination model (this lecture) – Approximate only interaction light, surface, viewer – Relatively

C O M P U T E R G R A P H I C S

CMSC 435 / 634 August 2013 lighting and shading

Lighting and Shading

•  Phong illumination model (this lecture) –  Approximate only interaction light, surface,

viewer –  Relatively fast (online), supported in

OpenGL

•  Ray tracing (later this semester) –  Follow light rays through a scene –  Accurate, but expensive (off-line)

•  Radiosity (advance CG) –  Calculate surface inter-reflection

approximately –  Accurate, especially interiors, but expensive

(off-line)

Page 4: Lighting and Shading - Inspiring Innovation · Lighting and Shading • Phong illumination model (this lecture) – Approximate only interaction light, surface, viewer – Relatively

C O M P U T E R G R A P H I C S

CMSC 435 / 634 August 2013 lighting and shading

Raytracing example

Martin Moeck, Siemens Lighting

Page 5: Lighting and Shading - Inspiring Innovation · Lighting and Shading • Phong illumination model (this lecture) – Approximate only interaction light, surface, viewer – Relatively

C O M P U T E R G R A P H I C S

CMSC 435 / 634 August 2013 lighting and shading

Shading •  Variation in observed color across an

object – Strong affected by lighting – Present even for homogeneous

material •  Caused by how a material reflects

lights – Geometry – Light source, locations, and

properties – Material properties

Page 6: Lighting and Shading - Inspiring Innovation · Lighting and Shading • Phong illumination model (this lecture) – Approximate only interaction light, surface, viewer – Relatively

C O M P U T E R G R A P H I C S

CMSC 435 / 634 August 2013 lighting and shading

Shading for Computer Graphics

• Need to compute shading – Of particular geometry – Under particular illumination – From a particular viewpoint

• Basic question: how much light reflects from an object toward the viewer?

Page 7: Lighting and Shading - Inspiring Innovation · Lighting and Shading • Phong illumination model (this lecture) – Approximate only interaction light, surface, viewer – Relatively

C O M P U T E R G R A P H I C S

CMSC 435 / 634 August 2013 lighting and shading

Simple materials

Smooth surfaces of pure materials have ideal specular reflection Reflectance (fraction of light reflected) depends on angle)

Page 8: Lighting and Shading - Inspiring Innovation · Lighting and Shading • Phong illumination model (this lecture) – Approximate only interaction light, surface, viewer – Relatively

C O M P U T E R G R A P H I C S

CMSC 435 / 634 August 2013 lighting and shading

Classic reflection behavior

Page 9: Lighting and Shading - Inspiring Innovation · Lighting and Shading • Phong illumination model (this lecture) – Approximate only interaction light, surface, viewer – Relatively

C O M P U T E R G R A P H I C S

CMSC 435 / 634 August 2013 lighting and shading

Adding microgeometry