Computer Graphics: Semester 5
Computer Graphics: Semester 5
GRAPHICS
SEMESTER 5
UNIT - 4
HI COLLEGE
SYLLABUS
UNIT - 4
HI COLLEGE
THREE DIMENSIONAL VIEWING
INTRODUCTION
Three-dimensional (3D) viewing is a technique used in computer graphics to
create the illusion of depth and spatial relationships between objects in a
virtual environment. This is achieved by projecting a 3D scene onto a 2D display,
such as a computer monitor or virtual reality headset.
To create a 3D object, these primitives are combined into more complex shapes
using techniques such as extrusion, rotation, and scaling. For example, an
extruded polygon is created by extending its sides into a third dimension, while
a rotated polygon is created by rotating it around one or more axes.
1. ORTHOGRAPHIC PROJECTIONS:
Orthographic projections are parallel projections in which the projection plane is
perpendicular to the viewer's line of sight. This results in a flat, rectangular image that
is easy to read and interpret. Orthographic projections preserve the true size and
shape of objects, making them useful for technical drawings and engineering
applications. There are three types of orthographic projections:
a) Front view: In this projection, the object is viewed from the front, with the
projection plane parallel to the back of the object. This projection is useful for showing
details of the front face of an object.
b) Top view: In this projection, the object is viewed from the top, with the projection
plane parallel to the bottom of the object. This projection is useful for showing details
of the top face of an object.
c) Side view: In this projection, the object is viewed from one side, with the projection
plane parallel to the opposite side of the object. This projection is useful for showing
details of one side of an object.
2. OBLIQUE PROJECTIONS:
Oblique projections are parallel projections in which the projection plane is not
perpendicular to the viewer's line of sight. This results in a more natural and realistic
image, but can also introduce distortion and perspective effects that may be
undesirable for certain applications. Oblique projections can be useful for illustrating
objects from a specific viewpoint or perspective, such as a bird's-eye view or a worm's-
eye view. There are several types of oblique projections, including:
PERSPECTIVE PROJECTION
Perspective projection is a type of projection used in computer graphics and
photography to create a more realistic and immersive image of a 3D scene. In
perspective projection, the projection plane is tilted relative to the viewer's line
of sight, creating a more natural and realistic image that preserves some sense
of depth and spatial relationships.
In perspective projection, parallel lines that are far away from the viewer appear
to converge at a single point on the horizon, known as the vanishing point. This
creates the illusion of depth and perspective in the image, making it more
realistic and immersive.
In the depth-buffer method, each pixel in the image is assigned a depth value,
which represents the distance of that pixel from the viewer's perspective. The
depth value is stored in a buffer, known as the depth-buffer or z-buffer, which is
used to keep track of the relative positions of objects in the scene.
However, the depth-buffer method can also introduce some limitations and
trade-offs, such as increased memory usage due to the storage of additional
depth values, and potential issues with aliasing or artifacts at object boundaries
due to quantization errors in the depth buffer. As a result, alternative
techniques, such as stencil shadows or alpha blending, may be used in certain
applications to address these limitations.