Unit Iv - Part I
Unit Iv - Part I
MULTIMEDIA
APPLICATIONS
SCSA1503
UNIT IV – PART I
14/10/2024 1
Syllabus
Algorithm
1.Through each pixel, fire a ray to the eye:
2.Intersect the ray with each polygonal plane.
3.Reject intersections that lie outside the polygon.
4.Accept the closest remaining intersection -- that is, the intersection with
the smallest value of the parameter along the line.
• The main advantage of the ray casting algorithm for hidden surfaces is that ray
casting can be used even with non-polygonal surfaces.
• All that is needed to implement the ray casting algorithm for hidden surfaces
is a line/surface intersection algorithm for each distinct surface type.
• The main disadvantage of ray casting is that the method is slow. Ray
casting is a brute force technique that makes no use of pixel coherence.
ILLUMINATION
MODELS
ILLUMINATION MODELS
• An illumination model (lighting model) is used to calculate the color of the
illuminated positions of an object.
• The procedure for applying a lighting model to obtain a pixel colors for all
projected surface positions is called surface rendering.
• In computer graphics, illumination models are usually easy to compute
approximations of physical laws that describe surface-effect lighting.
• 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.
ILLUMINATION MODELS
• Illumination model, also known as
Shading model or Lightning model,
is used to calculate the intensity of
light that is reflected at a given
point on surface. There are three
factors on which lightning effect
depends on:
1. Light Source
2. Surface
3. Observer
1. LIGHT SOURCES
specular final
Lambert’s cosine Law
• 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.
• Lambert’s cosine Law: Radiant energy from any small surface,
in any direction say θ, relative to the surface normal is
proportional to cos θ
Reflection parameters
If the ambient light of the scene is I a and ka is a surfce ambient