Professional Documents
Culture Documents
KANJIRAPPALLY
COMPUTER GRAPHICS
2
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Projections
❑ Parallel projection
❑ Perspective projection
3
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Parallel projection
A parallel projection is a
projection of an object in
three-dimensional space onto a
fixed plane, known as the
projection plane or image
plane, where the rays, known
as lines of sight or projection
lines, are parallel to each other.
4
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Orthographic Projection
In orthographic projection the direction of projection is normal to the
projection of the plane. There are three types of orthographic projections −
•Front Projection
•Top Projection
•Side Projection
5
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Oblique Projection
Orthographic projections that show more than one side of an object are
called axonometric orthographic projections.
9
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Perspective Projection
It is the point where all lines will appear to meet. There can be one
point, two point, and three point perspectives.
12
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
13
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
One Point: There is only one vanishing point
14
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Two Points: There are two vanishing points. One is the x-direction and
other in the y -direction
15
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Three Points: There are three vanishing points. One is x second in y
and third in two directions.
16
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Parallel Projection Perspective Projection
Parallel projection represents the Perspective projection represents
1
object in a different way like telescope. the object in three dimensional way.
The distance of the object from the The distance of the object from the
2
center of projection is infinite. center of projection is finite.
Parallel projection can give the accurate Perspective projection cannot give
3
view of object. the accurate view of object.
The lines of parallel projection are The lines of perspective projection
4
parallel. are not parallel.
Three types of perspective
Two types of parallel projection : projection:
5 1.Orthographic, 1.one point perspective,
2.Oblique 2.Two point perspective,
3. Three point perspective,
6 It does not form realistic view of object. It forms a realistic view of object.
17
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Visible surface detection methods
18
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
When we view a picture containing non-transparent objects and
surfaces, then we cannot see those objects from view which are
behind from objects closer to eye.
We must remove these hidden surfaces to get a realistic screen
image. The identification and removal of these surfaces is
called Hidden-surface problem.
19
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Classification of Visible-Surface Detection Algorithms:
20
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
1. Object-space Methods
Compare objects and parts of objects to each other within the scene
definition to determine which surfaces, as a whole, we should label as
visible:
❑ Compare each object with all other objects to determine the visibility of
the object parts.
❑If there are n objects in the scene, complexity = O(n2 )
21
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
❑ Calculations are performed at the resolution in which the objects are
defined
❑ Display is more accurate but computationally more expensive as
compared to image space methods because step 1 is typically more
complex, eg. Due to the possibility of intersection between surfaces. –
❑ Suitable for scene with small number of objects and objects with simple
relationship with each other.
22
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Image-space Methods (Mostly used)
23
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Back-Face Detection
When we project 3-D objects on a 2-D screen, we need to detect the faces
that are hidden on 2D.
Back-Face detection, also known as Plane Equation method, is an
object space method in which objects and parts of objects are compared
to find out the visible surfaces.
27
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
In a solid object, there are surfaces which are facing the viewer (front faces)
and there are surfaces which are opposite to the viewer (back faces).
28
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
29
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
30
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
31
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Depth-Buffer Method
32
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
33
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
34
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
35
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
36
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
37
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
38
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
39
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
40
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally
Advantages
•It is easy to implement.
•It reduces the speed problem if implemented in hardware.
•It processes one object at a time.
Disadvantages
•It requires large memory.
•It is time consuming process.
47
Department of Computer Science, Amaljyothi College of Engineering, Kanjirapally