Ch. 4 3-D Transformations
Ch. 4 3-D Transformations
= [5+0+0+30+6+0+30+0+7+20+0+0+1] = [8991]
x becomes x1=8
y becomes y1=9
z becomes z1=9
• Multiply co-ordinates of point with translation matrix
3D Scaling in Computer Graphics-
In computer graphics, scaling is a process of modifying or
altering the size of objects.
Scaling may be used to increase or reduce the size of object.
Scaling subjects the coordinate points of the original object to
change.
Scaling factor determines whether the object size is to be
increased or reduced.
If scaling factor > 1, then the object size is increased.
If scaling factor < 1, then the object size is reduced.
Consider a point object O has to be scaled in a
3D plane.
Let-
Initial coordinates of the object O = (Xold, Yold,Zold)
• Scaling factor for X-axis = Sx
• Scaling factor for Y-axis = Sy
• Scaling factor for Z-axis = Sz
• New coordinates of the object O after scaling = (Xnew, Ynew, Znew)
Let the new coordinates of corner B after reflection = (X new, Ynew, Znew).
Applying the reflection equations, we have-
• Xnew = Xold = 6
• Ynew = Yold = 4
• Znew = -Zold = -2
Thus, New coordinates of corner B after reflection = (6, 4, -2).
For any rotation, we need to specify the center, the angle and
the direction of rotation.
Cont…
Consider a point object O has to be rotated from one angle to
another in a 3D plane.
Let-
• Initial coordinates of the object O = (Xold, Yold, Zold)
• Initial angle of the object O with respect to origin = Φ
• Rotation angle = θ
• New coordinates of the object O after rotation = (Xnew, Ynew, Znew)
Solution-
Given-
Old coordinates = (Xold, Yold, Zold) = (1, 2, 3)
Rotation angle = θ = 90º
Vanishing Point
It is the point where all lines will appear to meet. There can be one point,
two point, and three point perspectives.
One Point: There is only one vanishing point as shown in fig (a)
Two Points: There are two vanishing points. One is the x-direction and
other in the y -direction as shown in fig (b)
Three Points: There are three vanishing points.
Important terms related to perspective
Oblique Projection
In oblique projection, the direction of projection is not normal to
the projection of plane. In oblique projection, we can view the
object better than orthographic projection.