Unit - 5 Three Dimensional Transformations Three-Dimensional Display Methods
Unit - 5 Three Dimensional Transformations Three-Dimensional Display Methods
Perspective Projection:
Another method for generating a view of a three-dimensional scene is to
project points to the display plane along converging paths. This causes objects
farther from the viewing position to be displayed smaller than objects of the same
size that are nearer to the viewing position. In a perspective projection, parallel lines
in a scene that are not parallel to the display plane are projected into converging
lines. Scenes displayed using perspective projections appear more realistic, since
this is the way that our eyes and a camera lens form images. Parallel lines appear to
converge to a distant point in the background, and distant objects appear smaller
than objects closer to the viewing position.
Depth Cueing:
There are several ways in which we can include depth information in the twodimensional representation of solid objects. A simple method for indicating depth
with wireframe displays is to vary the intensity of objects according to their distance
from the viewing position. Figure shows a wireframe object displayed with depth
cueing. The lines closest to the viewing position are displayed with the highest
intensities, and lines farther away are displayed with decreasing intensities. Depth
cueing is applied by choosing maximum and minimum intensity (or color) values
and a range of distances over which the intensities are to vary.
3D Transform:
Similar to the 2D transform: 3D transform has 3 basic transformations
Translation
Rotation
Scaling
Translation:
3D Translation is similar to the 2D translation. We used in 2D (x, y) to
homogeneous coordinates (x, y, 1).similar to this for 3D transform also: (x, y, z) to
homogeneous coordinates (x, y, z, 1).
From the below fig: point P (x, y, z) is translated to P (x, y, z) with the
matrix operation. Translation vector for the X, Y and Z axis respectively.
tx ,
ty ,
tz )
Rotation:
3D rotation is similar to 2D rotation. Two type of rotations are available.
Rotation based on coordinate axis
1. Rotation based on x-axis
2. Rotation based on y-axis
3. Rotation based on z-axis
Rotation based on reference line which parallel to coordinate axis
1. Rotation based on reference line parallel to the x-axis
2. Rotation based on reference line parallel to the y-axis
3. Rotation based on reference line parallel to the z-axis
Rotation based on reference line which is not parallel to coordinate axis
Rotation based on z-axis:
Equation for the 3D rotation based on z axis is:
Parameter
equation is:
Transformation equations for rotations about the other two coordinate axes
can be obtained with a cyclic permutation of the coordinate parameters x, y, and z.
Parameter
equation is:
Parameter
equation is:
Scaling:
This scaling is similar to the 2d scaling. Here first we will see the scaling
based on the origin. Position P = (x, y, z) is relative to the coordinate origin. Matrix
form is:
if (
Sx
x = x.
Sx
Sy
y = y.
Sy
Sz
z = z.
x f , y f , z f ) can
Other Transformation:
Reflection:
3D reflection can be performed relative to the selected reflection axis.
Reflections with respect to the plane are equivalent to 180 degree rotation in
coordinate axis (xy, yz, zx).
Bellow the figure: its example for reflection based on xy plane:
For the below fig: This transform changes the sign of the z coordinates. Matrix
representation of the transform is below with sign change of z coordinate.
Shear:
This transform is used to modify the object shape. Similar to 2D: here also
possible to make the shear with respect to x, y and z axis. Here we will see the
shear based on the z axis:
Parameters a and b can be assigned any real values. The effect of this
transformation matrix is to alter x- and y-coordinate values by an amount that is
proportional to the z value, while leaving the z coordinate unchanged. Boundaries of
planes that are perpendicular to the z axis are thus shifted by an amount
proportional to z. An example of the effect of this shearing matrix on a unit
cube is shown in the above figure