Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Graphics Lecture 19 PROJECTIONS I Taqdees A. Siddiqi

Similar presentations


Presentation on theme: "Computer Graphics Lecture 19 PROJECTIONS I Taqdees A. Siddiqi"— Presentation transcript:

1 Computer Graphics Lecture 19 PROJECTIONS I Taqdees A. Siddiqi cs602@vu.edu.pk

2 PROJECTIONS I Taqdees A. Siddiqi cs602@vu.edu.pk

3 Reflection A reflection can be performed relative to a selected reflection axis or with respect to a selected reflection plane.

4 In general, three-dimensional reflection matrices are set up similarly to those for two dimensions. Reflections relative to a given axis are equivalent to 180 degree rotations.

5 Reflection of points relative to the X axis

6 Reflection of points relative to the Y axis

7 Reflection of points relative to the xy plane

8  Shearing transformations can be used to modify object shapes

9  As an example of three-dimensional shearing, the following transformation produces a z-axis shear:

10 Y-axis shear

11 X-axis shear

12 How can we display 3D point on 2D Screen?

13 PROJECTION Projection can be defined as a mapping of points p(x,y,z) onto its image p`(x`,y`,z`) in the projection plane or view plane, which sonstitutes the display surface

14 What is mapping? The mapping is determined by a projection line called the projector that passes through P and intersects the view plane

15 What is mapping?

16 Methods of Projection 1.Parallel Projection 2.Perspective Projection

17 These methods areused to solve the basic problems of pictorial representations

18  We can construct different projections according to the view that is desired

19

20 Parallel Projection

21 In parallel projection, image points are found as the intersection of the view plane with a projector drawn from the object point and having fixed direction. The direction of projection is the prescribed direction for all projections

22 Parallel projection methods are used by drafters and engineers to create working drawings of an object which preserve its scale and shape

23 Mathematical Description of a Parallel Projection

24 Projection rays (projectors) emanate from a point called Center of Projection (COP) and intersect Projection Plane(PP). The COP for parallel projectors is at infinity. The length of a line on the projection plane is the same as the “true Lenght”

25

26 These are two different types of parallel projections

27 1.Orthographic 2.Oblique

28 If the direction of projection is (at 90 ) perpendicular to the projection plane then it is an orthographic projection. o

29 Projection plane Orthographic Projection Vp

30 Axonometric Orthographic Projection Orthographic projections that show more than one side of an object are called axonometric orthographic projections.

31

32

33 There are three axonometric projections 1.Isometric 2.Dimetric 3.Trimetric

34 Isometric The projection plane intersects each coordinate axis in the model coordinate system at an equal distance or the direction of projection makes equal angles with all of the three principal axes

35

36 2. Dimetric The direction of projection make equal angles with exactly two of the principal axis

37 3. Trimetric The direction of projection makes unequal angles with the three principal axes

38 Oblique Projection If the direction of projection is not perpendicular to the projection plane then it is an oblique projection

39 Projection Plane Oblique Projection Vp

40 The projectors are not perpendicular to the projection plane but are parallel from the object to the projection plane

41 Transformation equations for an orthographic prallel projection

42  If the view plane is placed at position Zvp along the Z axis. Then any point (x,y,z) in viewing coordinates is transformed to projection coordinates as :  Xp = x  Yp = y

43  Where the original Z-coordinate value is preserved for the depth information needed in depth cueing and visible surface determination procedures.

44  Point (x,y,p) is projected to position (Xp, Yp) on the view plane  Orthographic projectin coordinates on the plane are (x, y)

45

46  The oblique projection line from (x,y,z) to (Xp, Yp) makes an angle ‘ ’ with the line on the projection plane that joins(Xp, Yp) and (x, y).  This line, of lengh L, is at an angle with the horizontal direction in the projection plane

47

48  We can express the projection coordinates in terms of x,y, L, and

49  cos ( ) = Xp – x / L  sin ( ) = Yp – y / L

50  Xp = x + L cos ( )  Yp = y + L sin ( )

51  Length L depends on the angle ‘ ’ and the z coordinate of the point to be projected:  Tan ( ) = z / L thus, L = z * 1/ tan ( )

52  L = z * L1  Where L1 is the inverse of tan, which is also the value of L when z = 1

53  We can then write the oblique projection equations as:

54  Xp = x + z (L1 cos ( ) )  Yp = y + z (L1 sin ( ) )

55 The transformation matrix for parallel projection

56  The transformation matrix for producing any parallel projection onto the xy plane can be written as

57

58  Now if = 90 (projection line is perpendicular to Projection Plane) then  Tan ( ) = infinity  L1 = 0, so we have an orthographic projection

59 Two special cases of oblique projection: 1.Cavalier 2.Cabinet

60 1. Cavalier  = 45  tan ( ) = 1  L1 = 1  This is a Cavalier projection such that all lines perpendicular to the projection plane are projected with no change in length.

61

62  Tan (Alpha) = 2  Alpha = 63.40, L1 = ½  Lines which are perpendicular to the projection plane are projected at 1 / 2 length. This is a Cabinet projection. 0

63

64

65


Download ppt "Computer Graphics Lecture 19 PROJECTIONS I Taqdees A. Siddiqi"

Similar presentations


Ads by Google