Professional Documents
Culture Documents
Vicky
Vicky
1 Computer Graphics
SEMESTER - 5TH
Graphics All
Ans 1
First, we construct the scene in world coordinate using the output primitives and
attributes.
To obtain a particular orientation, we can set up a 2-D viewing coordinate system
in the window coordinate plane and define a window in viewing coordinates
system.
Once the viewing frame is established, are then transform description in world
coordinates to viewing coordinates.
a) Scaling
b) Shearing
Ans 3
Shearing deals with changing the shape and size of the 2D object along x-axis and
y-axis.
Q 4 Explore the use of homogenous coordinate matrix? Write a standard form to
which all 2D transformations can be arranged?
Ans 4 The rotation of a point, straight line or an entire image on the screen, about
a point other than origin, is achieved by first moving the image until the point of
rotation occupies the origin, then performing rotation, then finally moving the
image to its original position.
1) translation {1 0 0}
{0 1 0}
{tx ty 1)
2) scailing {sx 0 0}
{ 0 sy 0}
{ 0 0 1}
Xnew = Xold x Sx
Ynew = Yold x Sy