written 7.8 years ago by | • modified 7.7 years ago |
Mumbai University > Computer Engineering > Sem 4 > Computer Graphics
Marks: 10 Marks
Year: May 2016
written 7.8 years ago by | • modified 7.7 years ago |
Mumbai University > Computer Engineering > Sem 4 > Computer Graphics
Marks: 10 Marks
Year: May 2016
written 7.8 years ago by |
Shearing:
A transformation that slants the shape of an object is called the shear transformation. There are two shear transformations X-Shear and Y-Shear. One shifts X coordinates values and other shifts Y coordinate values. However; in both the cases only one coordinate changes its coordinates and other preserves its values. Shearing is also termed as Skewing.
X-Shear:
The X-Shear preserves the Y coordinate and changes are made to X coordinates, which causes the vertical lines to tilt right or left as shown in below figure.
The transformation matrix for X-Shear can be represented as:
Y-Shear:
The Y-Shear preserves the X coordinates and changes the Y coordinates which causes the horizontal lines to transform into lines which slopes up or down as shown in the following figure.
The Y-Shear can be represented in matrix from as:
Viewing Transformation:
One of the most important operations in rendering is the projection of a a three-dimensional scene onto a two-dimensional screen from an arbitrary camera position. A fundamental part of this operation is the specification of a viewing transformation, a $ 4 \times 4$ matrix that transforms a region of space into image space.
The viewing transformation can be broken down into two pieces, the camera-to-screen projection and the screen-to-raster projection.
i. The camera-to-screen projection flattens the 3-D world onto the 2-D screen.
ii. The screen-to-raster projection maps every point on the screen onto some output pixel.
The Viewing Transformation Matrix:
Given the specification of the parameters $ (\alpha,n,f)$, we define a transformation that can be applied to all elements of a scene and takes the truncated viewing volume (bounded by the viewing pyramid and the planes $ z=-n$ and $ z=-f$) to the cube $ -1 \leq u,v,w \leq 1$. This transformation is given by
The transformation $ A _{\alpha, n, f}$ is commonly referred to as the viewing transformation