SlideShare a Scribd company logo
An Introduction to the Lighting
Model
Lecture 23
Wed, Oct 22, 2003
Types of Light Source
Ambient
 No position in space.
Point Source
 At a point in space.
 Equal intensity in all directions.
Directional Source
 Source is “at infinity.”
 Has direction only.
Calculation of Lighting
We will look at the details of how
lighting is calculated later.
For now, we just want to be familiar
with the kinds of lighting and how it
relates to a polygonal mesh.
Ambient Light
Ambient light illuminates objects equally
in all directions.
In real life, ambient light is light that
has been reflected off so many surfaces
that it is impossible to identify the
source.
Computing Ambient Reflection
The ambient reflection depends on
 The ambient light inherent in the scene.
 The ambient light given off by the light
sources.
 The ambient property of the surface.
Point and Directional Sources
At each point of a surface, the light has
a direction.
 Point source – direction varies with position
on surface.
 Directional source – direction does not vary
with position on surface.
With a point source, the intensity may
also depend on distance from the
source.
Computing Diffuse Reflection
Intensity of reflected light
 Depends on angle of incidence.
 Is equal in all directions, i.e., does not
depend on the viewing angle.
It can be computed more efficiently if
the light is directional, since there is
one less variable.
Specular Reflection
Intensity of reflected light varies with
viewing direction.
Maximum intensity is in the direction
pointing directly back to the light
source.
Specular Reflection
Specular reflection creates the
appearance of “shininess.”
Surfaces with a high specular reflection
appear very shiny.
Surfaces with a low specular reflection
appear matte.
Computing Specular Reflection
Computing specular reflection is less
efficient than computing diffuse
reflection, since it depends on the
direction to the light source and the
direction to the viewer.
The calculations can be speeded up if
the viewer is “at infinity.”
Emissive Lighting
Emissive lighting is light that emitted by
the surface itself.
It is used for objects that are meant to
glow.
It is independent of all light sources and
directions.
Lighting in OpenGL
Since the ambient, diffuse, and specular
reflections depend on light sources,
there is a separate contribution for each
light source.
Furthermore, there is a separate color
component for each type of light.
 Red, green, blue.
Finding the Shade of a Surface
The total reflection from a point, both
color and brightness, is the sum of the
ambient, diffuse, and specular
reflections and the emissive light.
This is a combination of properties that
are intrinsic to the surface and
properties that are intrinsic to the light
source.
Shading a Mesh
To shade a mesh, the program must
shade each polygon in the mesh
independently.
For large meshes (between 1 million
and 1 billion polygons), this can
consume a significant amount of time.
Animations are out the window.
Example: Lighting a Sphere
LightingDemo.cpp

More Related Content

Similar to 23 Introduction to the Lighting Model.ppt

Light - 8th standard Science Notes .pptx
Light - 8th standard Science Notes .pptxLight - 8th standard Science Notes .pptx
Light - 8th standard Science Notes .pptx
handmadecreation200
 
Light & optics
Light & opticsLight & optics
Light & optics
itutor
 
3Ds Max lighting
3Ds Max lighting 3Ds Max lighting
3Ds Max lighting
B. Randhir Prasad Yadav
 
Light rays
Light raysLight rays
Light & acoustics
Light & acousticsLight & acoustics
Light & acoustics
Nikita Loknathan
 
Light introduction (3)
Light introduction (3)Light introduction (3)
Light introduction (3)
PrateekSharma525
 
Pin Hole Imaging, Reflection & Refraction
Pin Hole Imaging, Reflection & RefractionPin Hole Imaging, Reflection & Refraction
Pin Hole Imaging, Reflection & Refraction
Rabia Ammer
 
Day lighting final
Day lighting   finalDay lighting   final
Day lighting final
Shardul Sangle
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
Mary Haas
 
02 properties of light
02 properties of light02 properties of light
02 properties of light
Anisur Rahman
 
Manmohan optics
Manmohan opticsManmohan optics
Manmohan optics
Manmohan Kumar Singh
 
presentation phys.pptx
presentation phys.pptxpresentation phys.pptx
presentation phys.pptx
MoinYaqoob
 
Sight and wave option a review
Sight and wave option a reviewSight and wave option a review
Sight and wave option a review
jsawyer3434
 
Lecture 1. Lighting Design.pptx
Lecture 1. Lighting Design.pptxLecture 1. Lighting Design.pptx
Lecture 1. Lighting Design.pptx
NisthaPathak2
 
lightppt-210114154630 (1).pdf
lightppt-210114154630 (1).pdflightppt-210114154630 (1).pdf
lightppt-210114154630 (1).pdf
NayanaLathiya
 
Light
LightLight
illumination model in Computer Graphics by irru pychukar
illumination model in Computer Graphics by irru pychukarillumination model in Computer Graphics by irru pychukar
illumination model in Computer Graphics by irru pychukar
syedArr
 
Light ppt science easy
Light ppt science easy Light ppt science easy
Light ppt science easy
madhuyadav97
 
Test
TestTest
Distinguish between specualr reflection and diffuse reflection.S.pdf
Distinguish between specualr reflection and diffuse reflection.S.pdfDistinguish between specualr reflection and diffuse reflection.S.pdf
Distinguish between specualr reflection and diffuse reflection.S.pdf
arsmobiles
 

Similar to 23 Introduction to the Lighting Model.ppt (20)

Light - 8th standard Science Notes .pptx
Light - 8th standard Science Notes .pptxLight - 8th standard Science Notes .pptx
Light - 8th standard Science Notes .pptx
 
Light & optics
Light & opticsLight & optics
Light & optics
 
3Ds Max lighting
3Ds Max lighting 3Ds Max lighting
3Ds Max lighting
 
Light rays
Light raysLight rays
Light rays
 
Light & acoustics
Light & acousticsLight & acoustics
Light & acoustics
 
Light introduction (3)
Light introduction (3)Light introduction (3)
Light introduction (3)
 
Pin Hole Imaging, Reflection & Refraction
Pin Hole Imaging, Reflection & RefractionPin Hole Imaging, Reflection & Refraction
Pin Hole Imaging, Reflection & Refraction
 
Day lighting final
Day lighting   finalDay lighting   final
Day lighting final
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
02 properties of light
02 properties of light02 properties of light
02 properties of light
 
Manmohan optics
Manmohan opticsManmohan optics
Manmohan optics
 
presentation phys.pptx
presentation phys.pptxpresentation phys.pptx
presentation phys.pptx
 
Sight and wave option a review
Sight and wave option a reviewSight and wave option a review
Sight and wave option a review
 
Lecture 1. Lighting Design.pptx
Lecture 1. Lighting Design.pptxLecture 1. Lighting Design.pptx
Lecture 1. Lighting Design.pptx
 
lightppt-210114154630 (1).pdf
lightppt-210114154630 (1).pdflightppt-210114154630 (1).pdf
lightppt-210114154630 (1).pdf
 
Light
LightLight
Light
 
illumination model in Computer Graphics by irru pychukar
illumination model in Computer Graphics by irru pychukarillumination model in Computer Graphics by irru pychukar
illumination model in Computer Graphics by irru pychukar
 
Light ppt science easy
Light ppt science easy Light ppt science easy
Light ppt science easy
 
Test
TestTest
Test
 
Distinguish between specualr reflection and diffuse reflection.S.pdf
Distinguish between specualr reflection and diffuse reflection.S.pdfDistinguish between specualr reflection and diffuse reflection.S.pdf
Distinguish between specualr reflection and diffuse reflection.S.pdf
 

Recently uploaded

What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 

Recently uploaded (20)

What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 

23 Introduction to the Lighting Model.ppt

  • 1. An Introduction to the Lighting Model Lecture 23 Wed, Oct 22, 2003
  • 2. Types of Light Source Ambient  No position in space. Point Source  At a point in space.  Equal intensity in all directions. Directional Source  Source is “at infinity.”  Has direction only.
  • 3. Calculation of Lighting We will look at the details of how lighting is calculated later. For now, we just want to be familiar with the kinds of lighting and how it relates to a polygonal mesh.
  • 4. Ambient Light Ambient light illuminates objects equally in all directions. In real life, ambient light is light that has been reflected off so many surfaces that it is impossible to identify the source.
  • 5. Computing Ambient Reflection The ambient reflection depends on  The ambient light inherent in the scene.  The ambient light given off by the light sources.  The ambient property of the surface.
  • 6. Point and Directional Sources At each point of a surface, the light has a direction.  Point source – direction varies with position on surface.  Directional source – direction does not vary with position on surface. With a point source, the intensity may also depend on distance from the source.
  • 7. Computing Diffuse Reflection Intensity of reflected light  Depends on angle of incidence.  Is equal in all directions, i.e., does not depend on the viewing angle. It can be computed more efficiently if the light is directional, since there is one less variable.
  • 8. Specular Reflection Intensity of reflected light varies with viewing direction. Maximum intensity is in the direction pointing directly back to the light source.
  • 9. Specular Reflection Specular reflection creates the appearance of “shininess.” Surfaces with a high specular reflection appear very shiny. Surfaces with a low specular reflection appear matte.
  • 10. Computing Specular Reflection Computing specular reflection is less efficient than computing diffuse reflection, since it depends on the direction to the light source and the direction to the viewer. The calculations can be speeded up if the viewer is “at infinity.”
  • 11. Emissive Lighting Emissive lighting is light that emitted by the surface itself. It is used for objects that are meant to glow. It is independent of all light sources and directions.
  • 12. Lighting in OpenGL Since the ambient, diffuse, and specular reflections depend on light sources, there is a separate contribution for each light source. Furthermore, there is a separate color component for each type of light.  Red, green, blue.
  • 13. Finding the Shade of a Surface The total reflection from a point, both color and brightness, is the sum of the ambient, diffuse, and specular reflections and the emissive light. This is a combination of properties that are intrinsic to the surface and properties that are intrinsic to the light source.
  • 14. Shading a Mesh To shade a mesh, the program must shade each polygon in the mesh independently. For large meshes (between 1 million and 1 billion polygons), this can consume a significant amount of time. Animations are out the window.
  • 15. Example: Lighting a Sphere LightingDemo.cpp