Computer Graphics: Unit 3 Overview of Transformations
Computer Graphics: Unit 3 Overview of Transformations
Unit 3
Overview of transformations
Two dimensional transformations
Translation
◦ Translation is a processes of changing position of
an object in a straight line path from one
coordinate location to other.
◦ x’ = x + tx
◦ y’ = y + ty
◦
◦
translation vectors
P’ = P + T
Rotation
Homogenous coordinate system
Rotation at the arbitrary point
Composite transformation
A number of transformations or sequence of
transformations can be combined into single
one called as composition. The resulting
matrix is called as composite matrix. The
process of combining is called as
concatenation.
Suppose we want to perform rotation about
an arbitrary point, then we can perform it by
the sequence of three transformations
Translation
Rotation
Reverse Translation
The ordering sequence of these numbers of
transformations must not be changed. If a
matrix is represented in column form, then
the composite transformation is performed
by multiplying matrix in order from right to
left side. The output obtained from the
previous matrix is multiplied with the new
coming matrix.
Example
Scaling
Exercise
Given square A(0,3),B(3,3),C(3.0),D(0,0)
Scale in x direction by 2 and by 3 in y
direction
Reflection
3D Transformations
In 3D transformations Z axis represents
depth.
Homogeneous coordinates in 3D
Fig 1
Fig 3
Reflection
Projections
Types of projection –
◦ Parallel Projection
◦ Perspective Projection
Parallel projection
Parallel projection discards z-coordinate and
parallel lines from each vertex on the object
are extended until they intersect the view
plane.
In parallel projection, we specify a direction
projections
◦ Front Projection
◦ Top Projection
◦ Side Projection
Oblique projections
In orthographic projection, the direction of
projection is not normal to the projection of
plane.
In oblique projection, we can view the object
following figure –
Perspective Projection
In perspective projection, the distance from
the center of projection to project plane is
finite and the size of the object varies
inversely with distance which looks more
realistic.
The distance and angles are not preserved
◦ Isometric
◦ Diametric
◦ Triametric
Isometric projection
In isometric projection, the most commonly used form of
axonometric projection in engineering drawing, the
direction of viewing is such that the three axes of space
appear equally foreshortened, and there is a common
angle of 120° between them. As the distortion caused by
foreshortening is uniform, the proportionality between
lengths is preserved, and the axes share a common
scale; this eases one's ability to take measurements
directly from the drawing. Another advantage is that
120° angles are easily constructed using only a compass
and straightedge.
Dimetric projection
In dimetric projection, the direction of
viewing is such that two of the three axes of
space appear equally foreshortened, of which
the attendant scale and angles of
presentation are determined according to the
angle of viewing; the scale of the third
direction is determined separately.
Dimensional approximations are common in
dimetric drawings.
Trimetric projection
In trimetric projection, the direction of viewing
is such that all of the three axes of space
appear unequally foreshortened. The scale
along each of the three axes and the angles
among them are determined separately as
dictated by the angle of viewing. Dimensional
approximations in trimetric drawings are
common, and trimetric perspective is seldom
used in technical drawings.