Unit 3 - Cga - 2021
Unit 3 - Cga - 2021
Vidyalankar School of
Information Technology
Wadala (E), Mumbai
www.vsit.edu.in
Certificate
This is to certify that the e-book titled “Computer
Graphics and Animation” comprises all elementary
learning tools for a better understating of the relevant
concepts. This e-book is comprehensively compiled as
per the predefined eight parameters and
guidelines.
Contents
Viewing in 3D
Stages in 3D viewing, Canonical View Volume (CVV), Specifying an Arbitrary 3D View, Examples of 3D
Viewing, The Mathematics of Planar Geometric Projections, Combined transformation matrices for
projections and viewing, Coordinate Systems and matrices, camera model and viewing pyramid. Light:
Radiometry, Transport, Equation, Photometry Color: Colorimetry, Color Spaces, Chromatic Adaptation,
Color Appearance
References:
Sr.
Reference Book Titles Author/s Publisher Edition Module Nos.
No
2nd
3 Computer Graphics Hearn, Baker Pearson All
D. F. Rogers, J. A. 2nd
5 Mathematical Elements for CG TMH Unit 2 & 3
Adams
Requisites III IV V
1. Three-Dimensional Viewing
- 3D descriptions of objects must be projected onto the flat viewing surface of the output device.
- The clipping boundaries enclose a volume of space.
2. Viewing Pipeline
Modelling Explanation:
Coordinates
Modelling Transformation and Viewing Transformation can be
done by 3D transformations.
Modelling
Transformations
The viewing-coordinate system is used in graphics packages as a
reference for specifying the observer viewing position and the
World position of the projection plane.
Coordinates
Projection operations convert the viewing-coordinate description
(3D) to coordinate positions on the projection plane (2D).
Viewing (Usually combined with clipping, visual-surface identification,
Transformation and surface-rendering)
Workstation transformation maps the coordinate positions on the
Viewing projection plane to the output device.
Coordinates
Projection
Transformation
Projection
Coordinates
Workstation
Transformation
Device
Coordinates
1. Translate the view reference point to the origin of the world-coordinate system.
2. Apply rotations to align the xv, yv, and zv axes (viewing coordinate system) with the world xw, yw,
zw axes, respectively.
View Volume:
View window - A rectangular area in the view plane which controls how much of the scene is viewed.
The edges of the view window are parallel to the xv and yv viewing axes.
View volume - formed by the view window and the type of projection to be used. Only those objects
within the view volume will appear in the generated display. So, we can exclude objects that are
beyond the view volume when we render the objects in the scene.
A finite view volume is obtained by bounding with front plane and back plane (or the near plane and
the far plane). Hence a view volume is bounded by 6 planes => rectangular parallelepiped or a
frustum, for parallel projection and perspective projection respectively.
The view plane is usually placed at the viewing-coordinate origin and the center of projection is
positioned to obtain the amount of perspective desired.
'Viewing' an animation sequence:
Usually the center of projection point is placed at the viewing-coordinate origin and the view plane is
placed in front of the scene. The size of the view window is adjusted to obtain the amount of scene
desired. We move through the scene by moving the viewing reference frame (ie. the viewing
coordinate system.
Fig 4: CVV
Light:
Radiometry is the science of measuring light in any portion of the electromagnetic spectrum. In practice,
the term is usually limited to the measurement of infrared, visible, and ultraviolet light using optical
instruments. Irradiance is the intensity of light and is measured in watts per square meter.
Photometry is the science of measuring visible light in units that are weighted according to the sensitivity of
the human eye. It is a quantitative science based on a statistical model of the human visual response to light -
that is, our perception of light - under carefully controlled conditions. The photometric equivalent of
Radiance is called Illuminance and is measured in Lumens per square meter (Lux).
Color:
Colorimetry: In physical and analytical chemistry, colorimetry or colorimetry is a technique "used to
determine the concentration of colored compounds in solution." A colorimeter is a device used to test the
concentration of a solution by measuring its absorbance of a specific wavelength of light (not to be confused
with the tristimulus colorimeter used to measure colors in general).
To use the colorimeter, different solutions must be made, including a control or reference of known
concentration. With a visual colorimeter, for example the Duboscq colorimeter illustrated, the length of the
light path through the solutions can be varied while filtered light transmitted through them is compared for a
visual match. The concentration times path length is taken to be equal when the colors match, so the
concentration of the unknown can be determined by simple proportions. Nessler tubes work on the same
principle.
Fig 5: Colorimetry
Color Spaces: HSV is a transformation of an RGB color space, and its components and colorimetry are
relative to the RGB color space from which it was derived. HSL (hue, saturation, lightness/luminance), also
known as HLS or HSI (hue, saturation, intensity) is quite similar to HSV, with "lightness" replacing
"brightness".
Chromatic Adaptation: It is the human visual system’s ability to adjust to changes in illumination in order
to preserve the appearance of object colors. It is responsible for the stable appearance of object colors
despite the wide variation of light which might be reflected from an object and observed by our eyes. A
Chromatic Adaptation Transform (CAT) function emulates this important aspect of color perception in
Color Appearance Model.
Color Appearance:
• Color originates in the mind of the observer; “objectively”, there is only the spectral power distribution
of the light that meets the eye. In this sense, any color perception is subjective.
• However, successful attempts have been made to map the spectral power distribution of light to human
sensory response in a quantifiable way.
• In 1931, using psychophysical measurements, the International Commission on Illumination (CIE)
created the XYZ color space which successfully models human color vision on this basic sensory level.
RGB Model:
• Based on the tristimulus theory of vision, our eyes perceive color through the stimulation of
three visual pigments in the cones of the retina.
• These visual pigments have a peak sensitivity at wavelengths of about 630 run (red), 530 nm
(green), and 450 nm (blue).
• By comparing intensities in a light source, we perceive the color of the light.
• This theory of vision is the basis for displaying color output on a video monitor using the three
color primitives, red, green, and blue, referred to as the RGB color model.
• We can represent this model with the unit cube defined on R, C, and B axes. The origin
represents black, and the vertex with coordinates (1,1,l) is white.
• Vertices of the cube on the axes represent the primary colors, and the remaining vertices
represent the complementary color for each of the primary colors.
• As with the XYZ color system, the RGB color scheme is an additive model.
• Intensities of the primary colors are added to produce other colors.
• Each color point within the bounds of the cube can be represented as the triple (R, G, B), where
values for R, G, and B are assigned in the range from 0 to 1.
• Thus, a color C, is expressed in RGB components as
Fig.: RGB Model
Camera Model:
• The Camera model simulates the capture of light from a three-dimensional scene in object space
onto a two dimensional image, or image space.
• Most models contain or approximate a system of parallel lenses such as that of a camera or the eye.
• Thin Lens Model:
• Most modern cameras use a lens to focus light onto the view plane. this is done so that one can
capture enough light in a sufficiently short period of time that the objects do not move appreciably,
and the image is bright enough to show significant detail over a wide range of intensities and
contrasts.
• Synthetic Camera model:
• In computer Graphics we use a synthetic camera model to mimic the behaviour of a real camera.
• In the synthetic camera model, we avoid the inversion by placing the film plane, called the
projection plane, in front of the lens.
• The clipping rectangle or clipping window determines the size of the image.
• Each point in the 3D model is projected onto the image plane using the pin-hole camera model.
Photometry:
• Photometry is the science of measuring visible light in units that are weighted according to the
sensitivity of the human eye.
• It is a quantitative science based on a statistical model of the human visual response to light --
that is, our perception of light -- under carefully controlled conditions.
• The human visual system is a marvellously complex and highly nonlinear detector of
electromagnetic radiation with wavelengths ranging from 380 to 770 nanometres (nm).
• We see light of different wavelengths as a continuum of color ranging through the visible
spectrum: 650 nm is red, 540 nm is green, 450 nm is blue, and so on.
• The sensitivity of the human eye to light varies with wavelength.
• A light source with a radiance of one watt/m2 -steradian of green light, for example, appears
much brighter than the same source with a radiance of one watt/m2 -steradian of red or blue
light. In photometry, we do not measure watts of radiant energy.
• Rather, we attempt to measure the subjective impression produced by stimulating the human
eye-brain visual system with radiant energy.
• This task is complicated immensely by the eye’s nonlinear response to light.
• It varies not only with wavelength but also with the amount of radiant flux, whether the light is
constant or flickering, the spatial complexity of the scene being perceived, the adaptation of the
iris and retina, the psychological and physiological state of the observer, and a host of other
variables.
a) In front of an
object,
b) Behind the
object,
c) In the middle of a group of
objects
d) All of the above
2) The __________ system is used in graphics packages as a reference for specifying the
observer viewing position and the position of the projection plane.
a) viewing-coordinate system
b) CVV
c) Viewing Transformation
d) None of the above
3) _________ A rectangular area in the view plane which controls how much of the scene is viewed.
a) View window
b) Co-ordinate Window
c) Rectangular window
d) Horizontal window
4) _____________ It is the human visual system’s ability to adjust to changes in illumination in order
to preserve the appearance of object colors.
a) Colorimetry
b) Color space
c) Chromatic Adaptation
d) None of the above
6) __________ is the science of measuring visible light in units that are weighted according to the
sensitivity of the human eye
a) Colorimetry
b) Photometry
c) Chromatic Adaptation
d) None of the above
7) _________ is the science of measuring light in any portion of the electromagnetic spectrum.
a) Colorimetry
b) Photometry
c) Chromatic Adaptation
d) Radiometry
8) After the projection matrix is applied to the view space, the view space is "normalized" so that all
the points lie within the range [-1, 1]. This is generally referred to as the "__________" or
"normalized device coordinates".
a) Colorimetry
b) Photometry
c) Viewing Window
d) Canonical view volume
10) __________ formed by the view window and the type of projection to be used.
a) view plane
b) CVV
c) Viewing Window
d) View Volume