SlideShare ist ein Scribd-Unternehmen logo
1 von 43
Illumination
Model
1
• An illumination model, also called a
lighting model and sometimes referred to
as a shading model, is used to calculate
the intensity of light that we should see
at a given point on the surface of an
object.
• Surface rendering means a procedure for
applying a lighting model to obtain
pixel intensities for all the projected
surface positions in a scene.
2
• A surface-rendering algorithm uses the
intensity calculations from an
illumination model to determine the light
intensity for all projected pixel positions
for the various surfaces in a scene.
• Surface rendering can be performed by
applying the illumination model to every
visible surface point
3
LIGHT SOURCES
• light sources are referred to as light-
emitting
sources; and reflecting surfaces, such as the
walls of a room, are termed light-
reflecting sources
• A luminous object, in general, can be both
a light source and a light reflector.
• The simplest model for a light emitter is a
point source.
4
• When light is incident on an opaque
surface, part of it is reflected and part is
absorbed.
• The amount of incident light reflected by
a surface depends on the type of
material. Shiny materials reflect more
of the incident light, and dull surfaces
absorb more of the incident light.
• for an illuminated transparent surface,
some of the incident light will be
reflected and some will be transmitted
through the material 5
• Surfaces that are rough, or grainy, tend
to scatter the reflected light in all
directions.
This scattered light is called diffuse
reflection.
• In addition to diffuse reflection, light
sources create highlights, or bright spots,
called specular reflection.
• This highlighting effect is more
pronounced on shiny surfaces than on dull6
Ambient Light
• In our basic illumination model, we can set a
general level of brightness for a scene. This is a
simple way to model the combination of light
reflections from various surfaces to produce a
uniform illumination called the ambient light,
or background light.
• Ambient light has no spatial or directional
characteristics. The amount of ambient light
incident on each object is a constant for all
surfaces and over all directions.
7
Diffuse Reflection
• Diffuse reflections are constant over each
surface in a scene
• The fractional amount of the incident light
that is diffusely reflected can be set for
each surface with parameter kd, the
diffuse-reflection coefficient, or diffuse
reflectivity.
8
• Parameter kd is assigned a constant
value in the interval 0 to 1.
• we want a highly reflective surface, we
set the value of kd near 1. This produces
a bright surface with the intensity of the
reflected light near that of the incident
light.
• To simulate a surface that absorbs most
of the incident light, we set the
reflectivity to a value near 0. 9
• If a surface is exposed only to ambient
light, we can express the intensity of the
diffuse reflection at any point on the
surface as
I ambdiff = k d I a
10
• we assume that the diffuse reflections
from the surface are scattered with equal
intensity in all directions, independent of
the viewing directions.
• Such surfaces are sometimes referred to
as ideal diffuse reflectors. They are also
called Lambertian reflectors, since
radiated light energy from any point on
the surface is governed by Lambert’s
cosine law.
11
• If we denote the angle of incidence
between the incoming light direction and
the surface normal as , then theϴ
projected area of a
surface patch perpendicular to the light
direction is proportional to cos ϴ .
12
Thus, the amount of illumination (or the
"number of incident light rays" cutting across
the projected surface patch) depends on cos .ϴ
• If the incoming light from the source is
perpendicular to the surface at a particular
point, that point is fully illuminated.
• As the angle of illumination moves away from
the surface normal, the brightness of the point
drops off.
13
• If Il , is the intensity of the point light source,
then the diffuse reflection equation for a point
on the surface can be written as
I l ,diff = k d I l cos ϴ
• A surface is illuminated by a point source
only if the angle of incidence is in the
range 0° to 90 ° (cos 0 is in the interval
from 0 to 1).
• When cos ϴ is negative, the light source
14
15
• If N is the unit normal vector to a surface
and L is the unit direction vector to the
point light source from a position on the
surface, then
cos ϴ = N . L
and the diffuse reflection equation for
single point-source illumination is
I l ,diff = k d I l N. L
16
• We can combine the ambient and point
source intensity calculations to obtain an
expression for the total diffuse
reflection.
• In addition, many graphics packages
introduce an ambient-reflection
coefficient ka to modify the ambient
light intensity I, for each surface. This
simply provides us with an additional
parameter to adjust the light conditions
in a scene. 17
• Using parameter ka we can write the total
diffuse reflection equation as
I l ,diff = k a I a + k d I l ( N. L )
• where both k aand k d depend on surface
material properties and are assigned
values
in the range from 0 to 1
18
Specular Reflection and the Phong
Model
• we see a highlight, or bright spot, at
certain viewing directions. This
phenomenon, called specular reflection,
is the result of total, or near total
reflection of the incident light in a
concentrated region around the specular
reflection angle.
• The specular-reflection angle equals the
angle of the incident light.
19
20
• In this figure, we use R to represent the unit
vector in the direction of ideal specular
reflection; L to represent the unit vector
directed toward the point light source; and V as
the unit vector pointing to the viewer from the
surface position.
• Angle ϴ is the viewing angle relative to the
specular-reflection direction R.
• For an ideal reflector (perfect mirror), incident
light is reflected only in the specular-reflection
direction. In this case, we would only see
reflected light when vectors V and R coincide
(ϴ = 0).
21
• Phong model, sets the intensity of specular
reflection proportional to cos n
s ϴ.
• Angle ϴ can be assigned values in the range 0
to 90, so that cos ϴ varies from 0 to 1.
• The value assigned to specular-reflection
parameter ns is determined by the type of
surface that we want to display.
• A very shiny surface is modeled with a large
value for ns (say, 100 or more), and smaller
values (down to 1) are used for duller
surfaces.
• For a perfect reflector, ns is infinite.
22
• We can approximately model
monochromatic
specular intensity variations using a
specular-reflection coefficient, W(ϴ) for
each surface.
• In general, W(ϴ) tends to increase as
the
angle of incidence increases.
• Using the spectral-reflection function
W(ϴ), we can write the Phong specular-
reflection model as
23
• Since V and R are unit vectors in the
viewing and specular-reflection
directions,
we can calculate the value of cos ϴ with
V . R
• Assuming the specular-reflection
coefficient is a constant, we can
determine the intensity of
the specular reflection at a surface point
with the calculation
I spec = ks Il ( V. R ) ns
24
• simplified Phong model is obtained by
using the halfway vector H between L and
V to calculate the range of specular
reflections.
• If we replace V.R in the Phong model with
the dot product N . H, this simply
replaces the empirical cos ϴ calculation
with the empirical cos α calculation
25
26
Combined Diffuse and Specular
Reflections
with Multiple Light Sources
27
• If we place more than one point source in
a scene, we obtain the light reflection
at any surface point by summing the
contributions from the individual sources:
28
Warn Model
• The Warn model provides a method for
simulating studio lighting effects by
controlling light intensity in different
directions.
• Light sources are modeled as points on a
reflecting surface, using the Phong model
for the surface points.
• Then the intensity in different directions
is controlled by selecting values for the
Phong exponent
29
• In addition, light controls and
spotlighting, used by studio
photographers can be simulated in the
Warn model.
• Flaps are used to control the amount of
light emitted by a source In various
directions
30
Intensity Attenuation
• As radiant energy from a point light
source travels through space, its
amplitude is attenuated by the factor
l/d2
, where d is the distance that the
light has travelled.
• This means that a surface close to the
light source (small d) receives a higher
incident
intensity from the source than a distant
surface (large d).
31
A user can then fiddle with the coefficients ao, a1,
and a2 , to obtain a variety of lighting effects for
a scene. The value of the constant term ao can be
adjusted to
prevent f(d) from becoming too large when d is
very small.
• a general inverse quadratic attenuation
function can be set up as
32
33
Colour Considerations
• Most graphics displays of realistic scenes
are in colour. But the illumination model
discussed so far considers only
monochromatic lighting effects.
• To incorporate colour, we need to write
the intensity equation as a function of
the colour
properties of the light sources and object
surfaces. 34
• One way to set surface colors is by specifing
the reflectivity coefficients as three-element
vectors.
• The diffuse reflection coefficient vector, for
example, would then have RGB components
( kdR , kdG , kdB )
• If we want an object to have a blue surface,
we select a nonzero value in the range from
0 to 1 for the blue reflectivity component, kdB
, while the red and green reflectivity
components are set to zero ( kdR =0, kdG =0)
35
• Any nonzero red or green components in
the incident light are absorbed, and only
the blue component is reflected. The
intensity calculation for this example
reduces to the single expression
36
• Surfaces typically are illuminated with white light
sources, and in general we can set surface color so
that the reflected light has nonzero values for all
three RGB components.
• Calculated intensity levels for each color
component can be used to adjust the
corresponding electron gun in an RGB monitor.
• In his original specular-reflection model, Phong set
parameter ks to a constant value independent of
the surface color. This produces specular
reflections that are the same color as the incident
light (usually white),
37
Transparency
• A transparent surface, in general,
produces both reflected and transmitted
light.
• The relative contribution of the
transmitted light depends on the degree
of transparency of the surface and
whether any light sources or illuminated
surfaces are behind the transparent
surface 38
• We can combine the transmitted intensity
Itrans through a surface from a background
object with the reflected intensity Irefl
from the transparent surface using a
transparency coefficient kt.
• We assign parameter kt , a value between
0 and 1 to specify how much of the
background light is to be transmitted.
• Total surface intensity is then calculated
as
39
40
Shadows
• By applying a hidden-surface method with a
light source at the view position, we can
determine which surface sections cannot be
"seen" from the light source.
• These are the shadow areas.
• Once we have determined the shadow
areas for all light sources, the shadows
could be treated as surface patterns and
stored in pattern arrays
41
• Surfaces that are visible from the view
position are shaded according to the
lighting
model, which can be combined with
texture patterns.
• We can display shadow areas with
ambient-light intensity only, or we can
combine the ambient light with specified
surface textures.
42
Thank
you
•
Follow
m
e
to
get update
on
engineering
,
technology, science
etc.
43

Weitere ähnliche Inhalte

Was ist angesagt?

Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithmsKumar
 
Ray Tracing in Computer Graphics
Ray Tracing in Computer GraphicsRay Tracing in Computer Graphics
Ray Tracing in Computer GraphicsKABILESH RAMAR
 
Chapter 5 Image Processing: Fourier Transformation
Chapter 5 Image Processing: Fourier TransformationChapter 5 Image Processing: Fourier Transformation
Chapter 5 Image Processing: Fourier TransformationVarun Ojha
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filtersA B Shinde
 
Concept of basic illumination model
Concept of basic illumination modelConcept of basic illumination model
Concept of basic illumination modelAnkit Garg
 
3 d display-methods-in-computer-graphics(For DIU)
3 d display-methods-in-computer-graphics(For DIU)3 d display-methods-in-computer-graphics(For DIU)
3 d display-methods-in-computer-graphics(For DIU)Rajon rdx
 
Polygon filling
Polygon fillingPolygon filling
Polygon fillingAnkit Garg
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: BasicsA B Shinde
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extractionRishabh shah
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image FundamentalsA B Shinde
 
Hidden lines & surfaces
Hidden lines & surfacesHidden lines & surfaces
Hidden lines & surfacesAnkur Kumar
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphicanku2266
 

Was ist angesagt? (20)

Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithms
 
Ray Tracing in Computer Graphics
Ray Tracing in Computer GraphicsRay Tracing in Computer Graphics
Ray Tracing in Computer Graphics
 
Chapter 5 Image Processing: Fourier Transformation
Chapter 5 Image Processing: Fourier TransformationChapter 5 Image Processing: Fourier Transformation
Chapter 5 Image Processing: Fourier Transformation
 
Depth Buffer Method
Depth Buffer MethodDepth Buffer Method
Depth Buffer Method
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
Properties of light
Properties of lightProperties of light
Properties of light
 
Concept of basic illumination model
Concept of basic illumination modelConcept of basic illumination model
Concept of basic illumination model
 
Three dimensional concepts - Computer Graphics
Three dimensional concepts - Computer GraphicsThree dimensional concepts - Computer Graphics
Three dimensional concepts - Computer Graphics
 
3 d display-methods-in-computer-graphics(For DIU)
3 d display-methods-in-computer-graphics(For DIU)3 d display-methods-in-computer-graphics(For DIU)
3 d display-methods-in-computer-graphics(For DIU)
 
Lighting and shading
Lighting and shadingLighting and shading
Lighting and shading
 
Polygon filling
Polygon fillingPolygon filling
Polygon filling
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extraction
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Illumination Model
Illumination ModelIllumination Model
Illumination Model
 
3 d viewing
3 d viewing3 d viewing
3 d viewing
 
Hidden lines & surfaces
Hidden lines & surfacesHidden lines & surfaces
Hidden lines & surfaces
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphic
 
Graphics a buffer
Graphics a bufferGraphics a buffer
Graphics a buffer
 

Andere mochten auch

3D Graphics & Rendering in Computer Graphics
3D Graphics & Rendering in Computer Graphics3D Graphics & Rendering in Computer Graphics
3D Graphics & Rendering in Computer GraphicsFaraz Akhtar
 
Shading and two type of shading flat shading and gauraud shading with coding ...
Shading and two type of shading flat shading and gauraud shading with coding ...Shading and two type of shading flat shading and gauraud shading with coding ...
Shading and two type of shading flat shading and gauraud shading with coding ...Adil Mehmoood
 
Phong Shading over any Polygonal Surface
Phong Shading over any Polygonal Surface Phong Shading over any Polygonal Surface
Phong Shading over any Polygonal Surface Bhuvnesh Pratap
 
ILLUMINATION & LIGHTING
ILLUMINATION & LIGHTINGILLUMINATION & LIGHTING
ILLUMINATION & LIGHTINGHemant Suthar
 

Andere mochten auch (6)

Shading
ShadingShading
Shading
 
Ray tracing
 Ray tracing Ray tracing
Ray tracing
 
3D Graphics & Rendering in Computer Graphics
3D Graphics & Rendering in Computer Graphics3D Graphics & Rendering in Computer Graphics
3D Graphics & Rendering in Computer Graphics
 
Shading and two type of shading flat shading and gauraud shading with coding ...
Shading and two type of shading flat shading and gauraud shading with coding ...Shading and two type of shading flat shading and gauraud shading with coding ...
Shading and two type of shading flat shading and gauraud shading with coding ...
 
Phong Shading over any Polygonal Surface
Phong Shading over any Polygonal Surface Phong Shading over any Polygonal Surface
Phong Shading over any Polygonal Surface
 
ILLUMINATION & LIGHTING
ILLUMINATION & LIGHTINGILLUMINATION & LIGHTING
ILLUMINATION & LIGHTING
 

Ähnlich wie Illumination model

illuminationmodelsshading-200501081735 (1).pdf
illuminationmodelsshading-200501081735 (1).pdfilluminationmodelsshading-200501081735 (1).pdf
illuminationmodelsshading-200501081735 (1).pdfSayantanMajhi2
 
UNIT-6-Illumination-Models-and-Surface-Rendering-Methods.pdf
UNIT-6-Illumination-Models-and-Surface-Rendering-Methods.pdfUNIT-6-Illumination-Models-and-Surface-Rendering-Methods.pdf
UNIT-6-Illumination-Models-and-Surface-Rendering-Methods.pdfSayantanMajhi2
 
reflectionoflight-100829070425-phpapp02 (1).pdf
reflectionoflight-100829070425-phpapp02 (1).pdfreflectionoflight-100829070425-phpapp02 (1).pdf
reflectionoflight-100829070425-phpapp02 (1).pdfGretchenJavier1
 
Lighting terminlologyand their units
Lighting terminlologyand their unitsLighting terminlologyand their units
Lighting terminlologyand their unitsSafdar Ali
 
Lecture 1. Lighting Design.pptx
Lecture 1. Lighting Design.pptxLecture 1. Lighting Design.pptx
Lecture 1. Lighting Design.pptxNisthaPathak2
 
3340903-UEE- UNIT-1.pptx
3340903-UEE- UNIT-1.pptx3340903-UEE- UNIT-1.pptx
3340903-UEE- UNIT-1.pptxJigsPatel37
 
Reflection and refraction at home & curved surfaces
Reflection and refraction at home & curved surfacesReflection and refraction at home & curved surfaces
Reflection and refraction at home & curved surfacesMohammad Arman Bin Aziz
 
reflectionoflight-100829070425-phpapp02.pptx
reflectionoflight-100829070425-phpapp02.pptxreflectionoflight-100829070425-phpapp02.pptx
reflectionoflight-100829070425-phpapp02.pptxSapnaPatiye
 
Graphics Lecture 7
Graphics Lecture 7Graphics Lecture 7
Graphics Lecture 7Saiful Islam
 
LIGHT_final.pptx
LIGHT_final.pptxLIGHT_final.pptx
LIGHT_final.pptxyourmo
 
33-LIGHT-AND-ILLUMINATION.pptx
33-LIGHT-AND-ILLUMINATION.pptx33-LIGHT-AND-ILLUMINATION.pptx
33-LIGHT-AND-ILLUMINATION.pptxROLENCEMAERACSA
 
Computer Vision: Shape from Specularities and Motion
Computer Vision: Shape from Specularities and MotionComputer Vision: Shape from Specularities and Motion
Computer Vision: Shape from Specularities and MotionDamian T. Gordon
 

Ähnlich wie Illumination model (20)

graphics notes
graphics notesgraphics notes
graphics notes
 
illuminationmodelsshading-200501081735 (1).pdf
illuminationmodelsshading-200501081735 (1).pdfilluminationmodelsshading-200501081735 (1).pdf
illuminationmodelsshading-200501081735 (1).pdf
 
UNIT-6-Illumination-Models-and-Surface-Rendering-Methods.pdf
UNIT-6-Illumination-Models-and-Surface-Rendering-Methods.pdfUNIT-6-Illumination-Models-and-Surface-Rendering-Methods.pdf
UNIT-6-Illumination-Models-and-Surface-Rendering-Methods.pdf
 
Shading methods
Shading methodsShading methods
Shading methods
 
CS 354 Lighting
CS 354 LightingCS 354 Lighting
CS 354 Lighting
 
reflectionoflight-100829070425-phpapp02 (1).pdf
reflectionoflight-100829070425-phpapp02 (1).pdfreflectionoflight-100829070425-phpapp02 (1).pdf
reflectionoflight-100829070425-phpapp02 (1).pdf
 
Lighting terminlologyand their units
Lighting terminlologyand their unitsLighting terminlologyand their units
Lighting terminlologyand their units
 
RAY OPTICS.pdf
RAY OPTICS.pdfRAY OPTICS.pdf
RAY OPTICS.pdf
 
Lecture 1. Lighting Design.pptx
Lecture 1. Lighting Design.pptxLecture 1. Lighting Design.pptx
Lecture 1. Lighting Design.pptx
 
3340903-UEE- UNIT-1.pptx
3340903-UEE- UNIT-1.pptx3340903-UEE- UNIT-1.pptx
3340903-UEE- UNIT-1.pptx
 
Reflection and refraction at home & curved surfaces
Reflection and refraction at home & curved surfacesReflection and refraction at home & curved surfaces
Reflection and refraction at home & curved surfaces
 
Shading
ShadingShading
Shading
 
reflectionoflight-100829070425-phpapp02.pptx
reflectionoflight-100829070425-phpapp02.pptxreflectionoflight-100829070425-phpapp02.pptx
reflectionoflight-100829070425-phpapp02.pptx
 
Graphics Lecture 7
Graphics Lecture 7Graphics Lecture 7
Graphics Lecture 7
 
Light effect
Light effectLight effect
Light effect
 
Unit 2 ppt.pdf
Unit 2 ppt.pdfUnit 2 ppt.pdf
Unit 2 ppt.pdf
 
LIGHT_final.pptx
LIGHT_final.pptxLIGHT_final.pptx
LIGHT_final.pptx
 
3.2 form 4 light
3.2 form 4 light3.2 form 4 light
3.2 form 4 light
 
33-LIGHT-AND-ILLUMINATION.pptx
33-LIGHT-AND-ILLUMINATION.pptx33-LIGHT-AND-ILLUMINATION.pptx
33-LIGHT-AND-ILLUMINATION.pptx
 
Computer Vision: Shape from Specularities and Motion
Computer Vision: Shape from Specularities and MotionComputer Vision: Shape from Specularities and Motion
Computer Vision: Shape from Specularities and Motion
 

Mehr von Ankur Kumar

Mobile Computing (Part-2)
Mobile Computing (Part-2)Mobile Computing (Part-2)
Mobile Computing (Part-2)Ankur Kumar
 
Mobile Computing (Part-1)
Mobile Computing (Part-1)Mobile Computing (Part-1)
Mobile Computing (Part-1)Ankur Kumar
 
Digital modulation
Digital modulationDigital modulation
Digital modulationAnkur Kumar
 
Fundamentals of Computers
Fundamentals of ComputersFundamentals of Computers
Fundamentals of ComputersAnkur Kumar
 
Computer , Internet and physical security.
Computer , Internet and physical security.Computer , Internet and physical security.
Computer , Internet and physical security.Ankur Kumar
 
Mobile Phone and SIM card cloning
Mobile Phone and SIM card cloningMobile Phone and SIM card cloning
Mobile Phone and SIM card cloningAnkur Kumar
 
Termes - Termite inspired robots that can build for us.
Termes - Termite inspired robots that can build for us.Termes - Termite inspired robots that can build for us.
Termes - Termite inspired robots that can build for us.Ankur Kumar
 
Tracking positioning-of-mobiles
Tracking positioning-of-mobilesTracking positioning-of-mobiles
Tracking positioning-of-mobilesAnkur Kumar
 
Tracking and positioning_of_mobile_systems_in_telecom_network
Tracking and positioning_of_mobile_systems_in_telecom_networkTracking and positioning_of_mobile_systems_in_telecom_network
Tracking and positioning_of_mobile_systems_in_telecom_networkAnkur Kumar
 

Mehr von Ankur Kumar (14)

Mobile Computing (Part-2)
Mobile Computing (Part-2)Mobile Computing (Part-2)
Mobile Computing (Part-2)
 
Mobile Computing (Part-1)
Mobile Computing (Part-1)Mobile Computing (Part-1)
Mobile Computing (Part-1)
 
Be Creative
Be CreativeBe Creative
Be Creative
 
Tcp IP Model
Tcp IP ModelTcp IP Model
Tcp IP Model
 
Trade Mark
Trade MarkTrade Mark
Trade Mark
 
E commerce
E commerceE commerce
E commerce
 
Gsm network
Gsm networkGsm network
Gsm network
 
Digital modulation
Digital modulationDigital modulation
Digital modulation
 
Fundamentals of Computers
Fundamentals of ComputersFundamentals of Computers
Fundamentals of Computers
 
Computer , Internet and physical security.
Computer , Internet and physical security.Computer , Internet and physical security.
Computer , Internet and physical security.
 
Mobile Phone and SIM card cloning
Mobile Phone and SIM card cloningMobile Phone and SIM card cloning
Mobile Phone and SIM card cloning
 
Termes - Termite inspired robots that can build for us.
Termes - Termite inspired robots that can build for us.Termes - Termite inspired robots that can build for us.
Termes - Termite inspired robots that can build for us.
 
Tracking positioning-of-mobiles
Tracking positioning-of-mobilesTracking positioning-of-mobiles
Tracking positioning-of-mobiles
 
Tracking and positioning_of_mobile_systems_in_telecom_network
Tracking and positioning_of_mobile_systems_in_telecom_networkTracking and positioning_of_mobile_systems_in_telecom_network
Tracking and positioning_of_mobile_systems_in_telecom_network
 

Kürzlich hochgeladen

VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 

Kürzlich hochgeladen (20)

VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 

Illumination model

  • 2. • An illumination model, also called a lighting model and sometimes referred to as a shading model, is used to calculate the intensity of light that we should see at a given point on the surface of an object. • Surface rendering means a procedure for applying a lighting model to obtain pixel intensities for all the projected surface positions in a scene. 2
  • 3. • A surface-rendering algorithm uses the intensity calculations from an illumination model to determine the light intensity for all projected pixel positions for the various surfaces in a scene. • Surface rendering can be performed by applying the illumination model to every visible surface point 3
  • 4. LIGHT SOURCES • light sources are referred to as light- emitting sources; and reflecting surfaces, such as the walls of a room, are termed light- reflecting sources • A luminous object, in general, can be both a light source and a light reflector. • The simplest model for a light emitter is a point source. 4
  • 5. • When light is incident on an opaque surface, part of it is reflected and part is absorbed. • The amount of incident light reflected by a surface depends on the type of material. Shiny materials reflect more of the incident light, and dull surfaces absorb more of the incident light. • for an illuminated transparent surface, some of the incident light will be reflected and some will be transmitted through the material 5
  • 6. • Surfaces that are rough, or grainy, tend to scatter the reflected light in all directions. This scattered light is called diffuse reflection. • In addition to diffuse reflection, light sources create highlights, or bright spots, called specular reflection. • This highlighting effect is more pronounced on shiny surfaces than on dull6
  • 7. Ambient Light • In our basic illumination model, we can set a general level of brightness for a scene. This is a simple way to model the combination of light reflections from various surfaces to produce a uniform illumination called the ambient light, or background light. • Ambient light has no spatial or directional characteristics. The amount of ambient light incident on each object is a constant for all surfaces and over all directions. 7
  • 8. Diffuse Reflection • Diffuse reflections are constant over each surface in a scene • The fractional amount of the incident light that is diffusely reflected can be set for each surface with parameter kd, the diffuse-reflection coefficient, or diffuse reflectivity. 8
  • 9. • Parameter kd is assigned a constant value in the interval 0 to 1. • we want a highly reflective surface, we set the value of kd near 1. This produces a bright surface with the intensity of the reflected light near that of the incident light. • To simulate a surface that absorbs most of the incident light, we set the reflectivity to a value near 0. 9
  • 10. • If a surface is exposed only to ambient light, we can express the intensity of the diffuse reflection at any point on the surface as I ambdiff = k d I a 10
  • 11. • we assume that the diffuse reflections from the surface are scattered with equal intensity in all directions, independent of the viewing directions. • Such surfaces are sometimes referred to as ideal diffuse reflectors. They are also called Lambertian reflectors, since radiated light energy from any point on the surface is governed by Lambert’s cosine law. 11
  • 12. • If we denote the angle of incidence between the incoming light direction and the surface normal as , then theϴ projected area of a surface patch perpendicular to the light direction is proportional to cos ϴ . 12
  • 13. Thus, the amount of illumination (or the "number of incident light rays" cutting across the projected surface patch) depends on cos .ϴ • If the incoming light from the source is perpendicular to the surface at a particular point, that point is fully illuminated. • As the angle of illumination moves away from the surface normal, the brightness of the point drops off. 13
  • 14. • If Il , is the intensity of the point light source, then the diffuse reflection equation for a point on the surface can be written as I l ,diff = k d I l cos ϴ • A surface is illuminated by a point source only if the angle of incidence is in the range 0° to 90 ° (cos 0 is in the interval from 0 to 1). • When cos ϴ is negative, the light source 14
  • 15. 15
  • 16. • If N is the unit normal vector to a surface and L is the unit direction vector to the point light source from a position on the surface, then cos ϴ = N . L and the diffuse reflection equation for single point-source illumination is I l ,diff = k d I l N. L 16
  • 17. • We can combine the ambient and point source intensity calculations to obtain an expression for the total diffuse reflection. • In addition, many graphics packages introduce an ambient-reflection coefficient ka to modify the ambient light intensity I, for each surface. This simply provides us with an additional parameter to adjust the light conditions in a scene. 17
  • 18. • Using parameter ka we can write the total diffuse reflection equation as I l ,diff = k a I a + k d I l ( N. L ) • where both k aand k d depend on surface material properties and are assigned values in the range from 0 to 1 18
  • 19. Specular Reflection and the Phong Model • we see a highlight, or bright spot, at certain viewing directions. This phenomenon, called specular reflection, is the result of total, or near total reflection of the incident light in a concentrated region around the specular reflection angle. • The specular-reflection angle equals the angle of the incident light. 19
  • 20. 20
  • 21. • In this figure, we use R to represent the unit vector in the direction of ideal specular reflection; L to represent the unit vector directed toward the point light source; and V as the unit vector pointing to the viewer from the surface position. • Angle ϴ is the viewing angle relative to the specular-reflection direction R. • For an ideal reflector (perfect mirror), incident light is reflected only in the specular-reflection direction. In this case, we would only see reflected light when vectors V and R coincide (ϴ = 0). 21
  • 22. • Phong model, sets the intensity of specular reflection proportional to cos n s ϴ. • Angle ϴ can be assigned values in the range 0 to 90, so that cos ϴ varies from 0 to 1. • The value assigned to specular-reflection parameter ns is determined by the type of surface that we want to display. • A very shiny surface is modeled with a large value for ns (say, 100 or more), and smaller values (down to 1) are used for duller surfaces. • For a perfect reflector, ns is infinite. 22
  • 23. • We can approximately model monochromatic specular intensity variations using a specular-reflection coefficient, W(ϴ) for each surface. • In general, W(ϴ) tends to increase as the angle of incidence increases. • Using the spectral-reflection function W(ϴ), we can write the Phong specular- reflection model as 23
  • 24. • Since V and R are unit vectors in the viewing and specular-reflection directions, we can calculate the value of cos ϴ with V . R • Assuming the specular-reflection coefficient is a constant, we can determine the intensity of the specular reflection at a surface point with the calculation I spec = ks Il ( V. R ) ns 24
  • 25. • simplified Phong model is obtained by using the halfway vector H between L and V to calculate the range of specular reflections. • If we replace V.R in the Phong model with the dot product N . H, this simply replaces the empirical cos ϴ calculation with the empirical cos α calculation 25
  • 26. 26
  • 27. Combined Diffuse and Specular Reflections with Multiple Light Sources 27
  • 28. • If we place more than one point source in a scene, we obtain the light reflection at any surface point by summing the contributions from the individual sources: 28
  • 29. Warn Model • The Warn model provides a method for simulating studio lighting effects by controlling light intensity in different directions. • Light sources are modeled as points on a reflecting surface, using the Phong model for the surface points. • Then the intensity in different directions is controlled by selecting values for the Phong exponent 29
  • 30. • In addition, light controls and spotlighting, used by studio photographers can be simulated in the Warn model. • Flaps are used to control the amount of light emitted by a source In various directions 30
  • 31. Intensity Attenuation • As radiant energy from a point light source travels through space, its amplitude is attenuated by the factor l/d2 , where d is the distance that the light has travelled. • This means that a surface close to the light source (small d) receives a higher incident intensity from the source than a distant surface (large d). 31
  • 32. A user can then fiddle with the coefficients ao, a1, and a2 , to obtain a variety of lighting effects for a scene. The value of the constant term ao can be adjusted to prevent f(d) from becoming too large when d is very small. • a general inverse quadratic attenuation function can be set up as 32
  • 33. 33
  • 34. Colour Considerations • Most graphics displays of realistic scenes are in colour. But the illumination model discussed so far considers only monochromatic lighting effects. • To incorporate colour, we need to write the intensity equation as a function of the colour properties of the light sources and object surfaces. 34
  • 35. • One way to set surface colors is by specifing the reflectivity coefficients as three-element vectors. • The diffuse reflection coefficient vector, for example, would then have RGB components ( kdR , kdG , kdB ) • If we want an object to have a blue surface, we select a nonzero value in the range from 0 to 1 for the blue reflectivity component, kdB , while the red and green reflectivity components are set to zero ( kdR =0, kdG =0) 35
  • 36. • Any nonzero red or green components in the incident light are absorbed, and only the blue component is reflected. The intensity calculation for this example reduces to the single expression 36
  • 37. • Surfaces typically are illuminated with white light sources, and in general we can set surface color so that the reflected light has nonzero values for all three RGB components. • Calculated intensity levels for each color component can be used to adjust the corresponding electron gun in an RGB monitor. • In his original specular-reflection model, Phong set parameter ks to a constant value independent of the surface color. This produces specular reflections that are the same color as the incident light (usually white), 37
  • 38. Transparency • A transparent surface, in general, produces both reflected and transmitted light. • The relative contribution of the transmitted light depends on the degree of transparency of the surface and whether any light sources or illuminated surfaces are behind the transparent surface 38
  • 39. • We can combine the transmitted intensity Itrans through a surface from a background object with the reflected intensity Irefl from the transparent surface using a transparency coefficient kt. • We assign parameter kt , a value between 0 and 1 to specify how much of the background light is to be transmitted. • Total surface intensity is then calculated as 39
  • 40. 40
  • 41. Shadows • By applying a hidden-surface method with a light source at the view position, we can determine which surface sections cannot be "seen" from the light source. • These are the shadow areas. • Once we have determined the shadow areas for all light sources, the shadows could be treated as surface patterns and stored in pattern arrays 41
  • 42. • Surfaces that are visible from the view position are shaded according to the lighting model, which can be combined with texture patterns. • We can display shadow areas with ambient-light intensity only, or we can combine the ambient light with specified surface textures. 42