Two Dimensional Viewing

Size: px
Start display at page:

Download "Two Dimensional Viewing"

Transcription

1 Two Dimensional Viewing Dr. S.M. Malaek Assistant: M. Younesi

2 Two Dimensional Viewing Basic Interactive Programming

3 Basic Interactive Programming User controls contents, structure, and appearance of objects and their displaed images via rapid visual feedback.

4 Model Model: a pattern, plan, representation, or description designed to show the structure or working of an object, sstem, or concept.

5 Modeling Modeling is the process of creating, storing and manipulating a model of an object or a sstem.

6 Modeling In Modeling, we often use a geometric model i.e.. A description of an object that provides a numerical description of its shape, size and various other properties. Dimensions of the object are usuall given in units appropriate to the object: meters for a ship kilometres for a countr

7 Modeling The shape of the object is often described in terms of sub-parts, such as circles, lines, polgons, or cubes. Eample: Model of a house units are in meters 9 6 6

8 Instances of Objects Instances of this object ma then be placed in various positions in a scene, or world, scaled to different sizes, rotated, or deformed. Each house is created with instances of the same model, but with different parameters. 9 6

9 2D Viewing

10 2D Viewing Viewing is the process of drawing a view of a model on a 2-dimensional displa.

11 2D Viewing The geometric description of the object or scene provided b the model, is converted into a set of graphical primitives, which are displaed where desired on a 2D displa. The same abstract model ma be viewed in man different was: e.g. farawa, near, looking down, looking up

12 Real World Coordinates It is logical to use dimensions which are appropriate to the object e.g. meters for buildings nanometers or microns for molecules, cells, atoms light ears for astronom The objects are described with respect to their actual phsical size in the real world, and then mapped onto screen co-ordinates. It is therefore possible to view an object at various sizes b zooming in and out, without actuall having to change the model.

13 2D Viewing How much of the model should be drawn? Where should it appear on the displa? How do we convert Real-world coordinates into screen co-ordinates? We could have a model of a whole room, full of objects such as chairs, tablets and students. We ma want to view the whole room in one go, or zoom in on one single object in the room. We ma want to displa the object or scene on the full screen, or we ma onl want to displa it on a portion of the screen.

14 2D Viewing Once a model has been constructed, the programmer can specif a view. A 2-Dimensional view consists of two rectangles: A Window, given in real-world co-ordinates, which defines the portion of the model that is to be drawn A Viewport given in screen co-ordinates, which defines the portion of the screen on which the contents of the window will be displaed

15 Basic Interactive Programming Window: What is to be viewed Viewport: Where is to be displaed Viewport Scene Image

16 Coordinate Representations

17 Coordinate Representations General graphics packages are designed to be used with Cartesian coordinate specifications. Several different Cartesian reference frame are used to construct and displa a scene.

18 Coordinate Representations Modeling coordinates: We can construct the shape of individual objects in a scene within separate coordinate reference frames called modeling (local) coordinates.

19 Coordinate Representations World coordinates: Once individual object shapes have been specified, we can place the objects into appropriate positions within the scene using reference frame called world coordinate.

20 Coordinate Representations Device Coordinates: Finall, the world coordinates description of the scene is transferred to one or more output-device reference frames for displa, called device (screen) coordinates.

21 Coordinate Representations Normalized Coordinates: A graphic sstem first converts world coordinate positions to normalized device coordinates, in the range to.this makes the sstem independent of the output-devices.

22 Coordinate Representations Modeling coordinates: We can construct the shape of individual objects in a scene within separate coordinate reference frames called modeling (local) coordinates. ( ma, ma )

23 Coordinate Representations An initial modeling coordinate position is transferred to a device coordinate position with the sequence: ( mc, mc) ( wc, wc ) ( nc, nc ) ( dc, dc ) The modeling and world coordinate positions in this transformation can be an floating values; normalized coordinates satisf the inequalities: nc nc The device coordinates are integers within the range (,) to for a particular output device. ( ma, ) ma

24 The Viewing Pipeline

25 The Viewing Pipeline A world coordinate area selected for displa is called window. An area on a displa device to which a window is mapped a viewport. Windows and viewports are rectangular in standard position.

26 The Viewing Pipeline The mapping of a part of a world coordinate scene to device coordinate is referred to as viewing transformation or window-toviewport transformation or windowing transformation. Viewport window-to-viewport transformation

27 The Viewing Pipeline. Construct the scene in world coordinate using the output primitives. 2. Obtain a particular orientation for the window b set up a two dimensional viewing coordinate sstem in the world coordinate, and define a window in the viewing coordinate sstem. Transform descriptions in world coordinates to viewing coordinates (clipping).

28 The Viewing Pipeline 3. Define a viewport in normalized coordinate, and map the viewing coordinate description of the scene to normalized coordinate 4. (All parts lie outside the viewport are clipped), and contents of the viewport are transferred to device coordinates. Viewing Coordinate Normalized Coordinate Device Coordinate

29 The Viewing Pipeline

30 The Viewing Pipeline B Changing the position of the viewport, we can view objects at different position on the displa area of an output device.

31 The Viewing Pipeline B varing the size of viewport, we can change the size of displaed objects (zooming).

32 2D Geometric Transformations

33 2D Geometric Transformations Operations that are applied to the geometric description of an object to change its position, orientation or size. Basic transformation: Translation Rotation Scaling

34 2D Translation 2D Translation: Move a point along a straight-line path to its new location. P P T t t + +, + t t T P P +

35 2D Tranlation Rigid-bod translation: moves objects without deformation (ever point of the object is translated b the same amount) t 2 t 3 Y Note: House shifts position relative to origin X

36 2D Rotation 2D Rotation: Rotate the points a specified rotation angle about the rotation ais. Ais is perpendicular to plane; specif onl rotation point (pivot point r, )) ( r r θ r

37 2D Rotation r, r Simplif: rotate around origin: r cos( φ + θ ) r cos φ cos θ r sin φ sin r sin( φ + θ ) r cos φ sin θ + r sin φ cos r cosφ, r sin φ cos θ sin θ sin θ + cos θ θ θ r θ ( ', ') r (, ) R cosθ sinθ P R sin θ cosθ P φ

38 2D Rotation Rotation of a point about an arbitrar pivot position: r + ( r )cosθ ( r )sinθ + ( )sinθ + ( )cosθ r r The matri epression could be modified to include pivot coordinates b matri addition of a column vector whose elements contain the additive (translational) term. r

39 2D Rotation Rigid-bod translation: Rotates objects without deformation (ever point of the object is rotated through the same angle. Y π θ 6 θ X

40 2D Scaling 2D Scaling: Alters the size of an object. This operation can be carried out for polgons b multipling the coordinate values (, ) of each verte b scaling factors s and s to produce the transformed coordinates s s 2

41 2D Scaling 2 s s s s, s s P S P

42 2D Scaling An positive numeric values can be assigned to the scaling factors. Values less than reduce the size of objects, and greater than produce an enlargement. Uniform Scaling: Differential Scaling: applications. s s s s, used in modeling s s s s original Uniform scaling Differential scaling

43 2D Scaling Scale an object moving its origin (upper right)

44 2D Scaling We can control the location of a scaled object b choosing a position, called fies point Fies point can be chosen as one of the vertices, the object centroid, or an other position ), ( f f f f s + ) ( ' f f s + ) ( ' ) ( ' f s s + ) ( ' f s s +

45 2D Scaling The matri epression could be modified to include fied coordinates. Note: House shifts position relative to origin Y X s s ) ( ' f s s + ) ( ' f s s +

46 Matri Representations And Homogeneous Coordinates

47 Matri Representations In Modeling, we perform sequences of geometric transformation: translation, rotation, and scaling to model components into their proper positions. How the matri representations can be reformulated so that transformation sequences can be efficientl processed?

48 Matri Representations We have seen: ) ( ' f s s + ) ( ' f s s + )cosθ ( )sinθ ( )sinθ ( )cosθ ( r r r r r r The basic transformations can be epressed in the general matri form: M 2 P M P + Rotation: Scaling:

49 Matri Representations P M P + M 2 M is a 2 2 arra containing multiplicative factors. M 2 is a two element column matri containing translation terms. Translation: M is the identit matri. Rotation: M 2 contains the translation terms associated with the pivot point. Scaling: M 2 contains the translation terms associated with the fied point.

50 Matri Representations P M P + M 2 To produce a sequence of transformations, we must calculate the transformed coordinates one step at a time. We need to eliminate the matri addition associated with the translation terms in M 2.

51 Matri Representations We can combine the multiplicative and translation terms for 2D transformation into a single matri representation b epanding 2 2 matri to 3 3 matri.

52 Matri Representations and Homogeneous Coordinate Homogeneous Coordinate: To epress an 2D transformation as a matri multiplication, we represent each Cartesian coordinate position (,) with the homogeneous Coordinate triple ( h, h,h): h, h Simpl: h h h

53 h Matri Representations and Homogeneous Coordinate (X,Y,h)

54 Matri Representations and Homogeneous Coordinate Epressing position in homogeneous Coordinates, (,,) allows us to represent all geometric transformation as matri multiplication

55 Matri Representations and Homogeneous Coordinate Basic 2D transformations as 33 matrices: t t s s cos sin sin cos θ θ θ θ Translation Translation Rotation Rotation Scaling Scaling

56 Composite Transformation

57 Composite Transformation Combined transformations B matri multiplication Efficienc with pre-multiplication ))) ( ( ( p S R T p p S R T p ) ( w s s θ θ θ θ - t t w cos sin sin cos p ) ( t, t T ) (θ R ) ( s, s S p

58 General Pivot Point Rotation

59 General Pivot Point Rotation θ θ θ θ θ + θ θ θ θ θ θ θ sin ) cos ( cos sin sin ) cos ( sin cos cos sin sin cos r r r r r r r r ( ) ( ) ( ) ( ) θ θ,,,, r r r r r r R T R T Translation Rotation Translation ( r, r ) ( r, r ) ( r, r ) ( r, r )

60 General Fied Point Scaling

61 General Fied Point Scaling ) ( ) ( r r r r r r s s s s s s ( ) ( ) ( ) ( ) r r r r r r s s s s,,,,,, S T S T Translation Scaling Translation ( r, r ) ( r, r ) ( r, r ) ( r, r )

62 General Scaling Direction

63 General Scaling Direction + + θ cos θ sin )cosθsinθ ( )cosθsinθ ( θ sin θ cos (θ) ), ( (θ) s s s s s s s s s S s R R

64 Reflection

65 Reflection Reflection: Produces a mirror image of an object. X Ais Y Ais Origin X Ais Y Ais Origin

66 Reflection Reflection with respect to a line We can drive this matri b : Clockwise rotation of 45º Reflection about the ais Counterclockwise rotation of 45º

67 Reflection Reflection with respect to a line - - Reflection with respect to a line m+b:. Translate the line so that it passes through the origin. 2. Rotate the onto one of the coordinate aes 3. Reflect about that ais 4. Inverse rotation 5. Inverse translation

68 Shear

69 Shear Shear: A transformation that distorts the shape of an object such that transformed shape appears as if the object were composed of internal laers that had been caused to slide over each other is called a shear.

70 Shear -direction: ' + h, ' h (,) (,) h 2 (,) (,) (2,) (,) (,) (3,) -direction: ', ' + h h (,) (,) (,) (,) h 2 (,) (,) (,3) (,2)

71 Shear -direction shears relative to a reference line ( ), ' + h ' ref h h ref (,) (,) h.5 ref - (,) (2,) (,) (,) (.5,) (.5,) ref ref ref -direction shears relative to a reference line ', ' h + h h ( ) ref ref (,) (,) (,) (,) ref h.5 ref - (,.5) (,.5) ref ref (,2) (,)

72 Transformations Between Coordinates Sstems

73 Transformations Between Coordinates Sstems It is often requires the transformation of object description from one coordinate sstem to another. How do we transform between two Cartesian coordinate sstems?

74 Transformations Between Coordinates Sstems Rule: Transform one coordinate frames towards the other in the opposite direction of the representation change.

75 Transformations Between Coordinates Two Steps: Sstems. Translate so that the origin (, ) of the sstem is moved to the origin of the sstem. 2. Rotate the ais onto the ais.

76 Transformations Between Coordinates Sstems ), ( T cosθ sinθ sinθ cosθ θ) R( ), ( θ) ( T R M

77 Transformations Between Coordinates Sstems Alternative Method: Assume (u,,u ) and (v,v ) in the (,) coordinate sstems: v v u u M P MP T R M

78 Transformations Between Coordinates Eample: Sstems If V(-,) then the ais is in the positive direction and the rotation transformation matri is: R

79 Transformations Between Coordinates Sstems In an interactive application, it ma be more convenient to choose the direction for V relative to position P than it is to specif it relative to the coordinate origin. v P P P - P

80 Viewing Coordinate Reference Frame

81 Viewing Coordinate Reference Frame This coordinate sstem provides the reference frame for specifing the world coordinate window.

82 Viewing Coordinate Reference Frame Set up the viewing coordinate:. Origin is selected at some world position: (, ) 2. Established the orientation. Specif a world vector V that defines the viewing direction. 3. Obtain the matri for converting world to viewing coordinates (Translate and rotate) M WC,VC R T P

83 Window to Viewport Coordinate Transformation

84 Window to Viewport Coordinate Transformation Select the viewport in normalized coordinate, and then object description transferred to normalized device coordinate. To maintain the same relative placement in the viewport as in the window: v v vma v v v v v ma min min min min w w w ma w ma w w min w min min w min

85 Window to Viewport Coordinate v v vma v v v v v ma min min min min v v Transformation w w w ma w v ma v w w min min min w min min w min + ( w + ( w w w. Perform a scaling transformation that scales the window area to the size of the viewport. 2. Translate the scaled window area to the position of the vieport. s s min min ) s v w ) s v w ma ma ma ma v w v w min min min min

86 Clipping

87 Clipping

88 Clipping Clipping Algorithm or Clipping: An procedure that identifies those portion of a picture that are either inside or outside of a specified region of space. The region against which an object is to clipped is called a clip window.

89 Point Clipping

90 w2 Point Clipping w w min min w w ma ma (, ) w w w2

91 Line Clipping

92 Line Clipping Possible relationship between line position and a standard clipping region. Before Clipping After Clipping

93 Line Clipping A line clipping procedure involves several parts:. Determine whether line lies completel inside the clipping window. 2. Determine whether line lies completel outside the clipping window. 3. Perform intersection calculation with one or more clipping boundaries.

94 Line Clipping A line with both endpoints inside all clipping boundaries is saved ( ) P 3 P 4 Before Clipping After Clipping

95 Line Clipping A line with both endpoints outside all clipping boundaries is reject ( & PP ) 9 PP 2 Before Clipping After Clipping

96 If one or both endpoints outside the clipping rectangular, the parametric representation could be used to determine values of parameter u for intersection with the clipping boundar coordinates. Before Clipping After Clipping + + ) ( ) ( 2 2 u u u

97 Line Clipping. If the value of u is outside the range to : The line dose not enter the interior of the window at that boundar. 2. If the value of u is within the range to, the line segment does cross into the clipping area. Clipping line segments with these parametric tests requires a good deal of computation, and faster approaches to clipper are possible.

98 Cohen Sutherland Line Clipping

99 Cohen Sutherland Line Clipping The method speeds up the processing of line segments b performing initial tests that reduce the number of intersections that must be calculated.

100 Cohen Sutherland Line Clipping Ever line endpoint is assigned a four digit binar code, called region code region code, that identifies the location of the point relative to the boundaries of the clipping rectangle.

101 Each bit position in the region code is used to indicate one of the four relative coordinate positions of the point with respect to the clip window. Bit : Left Bit 2: Right Bit 3: Below Bit 4: Above

102 Bit values in the region code are determined b comparing endpoint coordinates values (,) to the clip boundaries. Bit is set to if < w min Bit : sign( w ) min Bit 2: Bit 3: Bit 4: sign( w ) ma sign( wmin ) sign ( wma )

103 Once we have established region codes for all line endpoints, we can quickl determine lines are completel outside or inside the clip window.

104 Once we have established region codes for all line endpoints, we can quickl determine lines are completel outside or inside the clip window.

105 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

106 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

107 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

108 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

109 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

110 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

111 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

112 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

113 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

114 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

115 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

116 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

117 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

118 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

119 Lines that cannot be identified as completel inside or outside a clip window are checked for intersection with boundaries.

120 Cohen Sutherland Line Clipping Intersection points with a clipping boundar can be calculated using the slope-intercept form of the line equation. m ( ) ( m( ) + m ) w w w w min ma min ma

121 Liang barsk Clipping

122 LiangbarskClipping:Faster line clippers, that are based on analsis of the parametric of a line segment: Liang barsk Clipping + + u u u 2 2

123 Liang barsk Clipping When we traverse along the etended line with u increasing from to, we first move from the outside to the inside of the clipping window s two boundar lines (bottom and left) Then move from the inside to the outside of the other two boundar lines (top and right)

124 u 2 Liang barsk Clipping u Ma, u, u ) u u Min(, u t, u ) ( b 2 r u l : intersection the window s left u b : intersection the window s bottom u l : intersection the window s right u r : intersection the window s top

125 Liang barsk Clipping Point (,) inside the clipping window w w min min + u + u w w ma ma Rewrite the four inequalities as: up k q k, k,2,3,4 p p p p 2 3 4,,,, q q q q w w ma ma min min ( left) ( right) ( bottom) ( top)

126 If, the line is parallel to the boundar: if q k < the line is completel outside (can be eliminated) if the line is completel inside (need further consideration) q k p p p p p k 2 3 4, q, q, q, q w w ma ma ( left ) ( right ) ( bottom ) ( top ) If p k < the etended line proceeds from the outside to the inside. If p k > the etended line proceeds from the inside to the outside. When, u corresponding to the intersection point is q k p k p k min min

127 A four step process for finding the visible portion of the line:. If pk and q k < for an k, eliminate the line and stop, Otherwise proceed to the net step. 2. For all k such that p k <, calculate. Let be k k k the maimum of the set containing and the calculated r values. Liang barsk Clipping p p p p 2 3 4,,,, q q q q r q p u w w ma ma min min ( left) ( right) ( bottom) ( top)

128 A four step process 3. For all k such that pk >, calculate r k qk p. Let u k 2 be the minimum of the set containing and the calculated r values. u > Liang barsk Clipping 4. If u 2, eliminate the line since it is completel outside the clipping window, Otherwise, use and to calculate the endpoints of the clipped line. p, q min ( left) p2, q2 wma ( right) p3, q3 min ( bottom) p, q w ( top) 4 4 ma u u2

What and Why Transformations?

What and Why Transformations? 2D transformations What and Wh Transformations? What? : The geometrical changes of an object from a current state to modified state. Changing an object s position (translation), orientation (rotation)

More information

Today s class. Geometric objects and transformations. Informationsteknologi. Wednesday, November 7, 2007 Computer Graphics - Class 5 1

Today s class. Geometric objects and transformations. Informationsteknologi. Wednesday, November 7, 2007 Computer Graphics - Class 5 1 Toda s class Geometric objects and transformations Wednesda, November 7, 27 Computer Graphics - Class 5 Vector operations Review of vector operations needed for working in computer graphics adding two

More information

Chap 7, 2009 Spring Yeong Gil Shin

Chap 7, 2009 Spring Yeong Gil Shin Three-Dimensional i Viewingi Chap 7, 29 Spring Yeong Gil Shin Viewing i Pipeline H d fi i d? How to define a window? How to project onto the window? Rendering "Create a picture (in a snthetic camera) Specification

More information

Image Warping : Computational Photography Alexei Efros, CMU, Fall Some slides from Steve Seitz

Image Warping : Computational Photography Alexei Efros, CMU, Fall Some slides from Steve Seitz Image Warping http://www.jeffre-martin.com Some slides from Steve Seitz 5-463: Computational Photograph Aleei Efros, CMU, Fall 2 Image Transformations image filtering: change range of image g() T(f())

More information

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI Department of Computer Science and Engineering CS6504-COMPUTER GRAPHICS Anna University 2 & 16 Mark Questions & Answers Year / Semester: III / V Regulation:

More information

UNIT 2 2D TRANSFORMATIONS

UNIT 2 2D TRANSFORMATIONS UNIT 2 2D TRANSFORMATIONS Introduction With the procedures for displaying output primitives and their attributes, we can create variety of pictures and graphs. In many applications, there is also a need

More information

4. Two Dimensional Transformations

4. Two Dimensional Transformations 4. Two Dimensional Transformations CS362 Introduction to Computer Graphics Helena Wong, 2 In man applications, changes in orientations, sizes, and shapes are accomplished with geometric transformations

More information

Image Warping. Some slides from Steve Seitz

Image Warping.   Some slides from Steve Seitz Image Warping http://www.jeffre-martin.com Some slides from Steve Seitz 5-463: Computational Photograph Aleei Efros, CMU, Fall 26 Image Warping image filtering: change range of image g() T(f()) f T f image

More information

[ ] [ ] Orthogonal Transformation of Cartesian Coordinates in 2D & 3D. φ = cos 1 1/ φ = tan 1 [ 2 /1]

[ ] [ ] Orthogonal Transformation of Cartesian Coordinates in 2D & 3D. φ = cos 1 1/ φ = tan 1 [ 2 /1] Orthogonal Transformation of Cartesian Coordinates in 2D & 3D A vector is specified b its coordinates, so it is defined relative to a reference frame. The same vector will have different coordinates in

More information

CS F-07 Objects in 2D 1

CS F-07 Objects in 2D 1 CS420-2010F-07 Objects in 2D 1 07-0: Representing Polgons We want to represent a simple polgon Triangle, rectangle, square, etc Assume for the moment our game onl uses these simple shapes No curves for

More information

Unit 3 Transformations and Clipping

Unit 3 Transformations and Clipping Transformation Unit 3 Transformations and Clipping Changes in orientation, size and shape of an object by changing the coordinate description, is known as Geometric Transformation. Translation To reposition

More information

Modeling Transformations

Modeling Transformations Modeling Transformations Michael Kazhdan (601.457/657) HB Ch. 5 FvDFH Ch. 5 Overview Ra-Tracing so far Modeling transformations Ra Tracing Image RaTrace(Camera camera, Scene scene, int width, int heigh,

More information

3-Dimensional Viewing

3-Dimensional Viewing CHAPTER 6 3-Dimensional Vieing Vieing and projection Objects in orld coordinates are projected on to the vie plane, hich is defined perpendicular to the vieing direction along the v -ais. The to main tpes

More information

Editing and Transformation

Editing and Transformation Lecture 5 Editing and Transformation Modeling Model can be produced b the combination of entities that have been edited. D: circle, arc, line, ellipse 3D: primitive bodies, etrusion and revolved of a profile

More information

CS770/870 Spring 2017 Transformations

CS770/870 Spring 2017 Transformations CS770/870 Spring 2017 Transformations Coordinate sstems 2D Transformations Homogeneous coordinates Matrices, vectors, points Coordinate Sstems Coordinate sstems used in graphics Screen coordinates: the

More information

CS Computer Graphics: Transformations & The Synthetic Camera

CS Computer Graphics: Transformations & The Synthetic Camera CS 543 - Computer Graphics: Transformations The Snthetic Camera b Robert W. Lindeman gogo@wpi.edu (with help from Emmanuel Agu ;-) Introduction to Transformations A transformation changes an objects Size

More information

GRAPHICS OUTPUT PRIMITIVES

GRAPHICS OUTPUT PRIMITIVES CHAPTER 3 GRAPHICS OUTPUT PRIMITIVES LINE DRAWING ALGORITHMS DDA Line Algorithm Bresenham Line Algorithm Midpoint Circle Algorithm Midpoint Ellipse Algorithm CG - Chapter-3 LINE DRAWING Line drawing is

More information

Chap 7, 2008 Spring Yeong Gil Shin

Chap 7, 2008 Spring Yeong Gil Shin Three-Dimensional i Viewingi Chap 7, 28 Spring Yeong Gil Shin Viewing i Pipeline H d fi i d? How to define a window? How to project onto the window? Rendering "Create a picture (in a synthetic camera)

More information

1. We ll look at: Types of geometrical transformation. Vector and matrix representations

1. We ll look at: Types of geometrical transformation. Vector and matrix representations Tob Howard COMP272 Computer Graphics and Image Processing 3: Transformations Tob.Howard@manchester.ac.uk Introduction We ll look at: Tpes of geometrical transformation Vector and matri representations

More information

Interactive Computer Graphics. Warping and morphing. Warping and Morphing. Warping and Morphing. Lecture 14+15: Warping and Morphing. What is.

Interactive Computer Graphics. Warping and morphing. Warping and Morphing. Warping and Morphing. Lecture 14+15: Warping and Morphing. What is. Interactive Computer Graphics Warping and morphing Lecture 14+15: Warping and Morphing Lecture 14: Warping and Morphing: Slide 1 Lecture 14: Warping and Morphing: Slide 2 Warping and Morphing What is Warping

More information

Computer Graphics. Modelling in 2D. 2D primitives. Lines and Polylines. OpenGL polygon primitives. Special polygons

Computer Graphics. Modelling in 2D. 2D primitives. Lines and Polylines. OpenGL polygon primitives. Special polygons Computer Graphics Modelling in D Lecture School of EECS Queen Mar, Universit of London D primitives Digital line algorithms Digital circle algorithms Polgon filling CG - p.hao@qmul.ac.uk D primitives Line

More information

Part 3: 2D Transformation

Part 3: 2D Transformation Part 3: 2D Transformation 1. What do you understand by geometric transformation? Also define the following operation performed by ita. Translation. b. Rotation. c. Scaling. d. Reflection. 2. Explain two

More information

The 3-D Graphics Rendering Pipeline

The 3-D Graphics Rendering Pipeline The 3-D Graphics Rendering Pipeline Modeling Trival Rejection Illumination Viewing Clipping Projection Almost ever discussion of 3-D graphics begins here Seldom are an two versions drawn the same wa Seldom

More information

Three-Dimensional Viewing Hearn & Baker Chapter 7

Three-Dimensional Viewing Hearn & Baker Chapter 7 Three-Dimensional Viewing Hearn & Baker Chapter 7 Overview 3D viewing involves some tasks that are not present in 2D viewing: Projection, Visibility checks, Lighting effects, etc. Overview First, set up

More information

Modeling Transformations

Modeling Transformations Modeling Transformations Michael Kazhdan (601.457/657) HB Ch. 5 FvDFH Ch. 5 Announcement Assignment 2 has been posted: Due: 10/24 ASAP: Download the code and make sure it compiles» On windows: just build

More information

Computer Graphics. Geometric Transformations

Computer Graphics. Geometric Transformations Contents coordinate sstems scalar values, points, vectors, matrices right-handed and left-handed coordinate sstems mathematical foundations transformations mathematical descriptions of geometric changes,

More information

Computer Graphics. Geometric Transformations

Computer Graphics. Geometric Transformations Computer Graphics Geometric Transformations Contents coordinate sstems scalar values, points, vectors, matrices right-handed and left-handed coordinate sstems mathematical foundations transformations mathematical

More information

OUTPUT PRIMITIVES. CEng 477 Introduction to Computer Graphics METU, 2007

OUTPUT PRIMITIVES. CEng 477 Introduction to Computer Graphics METU, 2007 OUTPUT PRIMITIVES CEng 477 Introduction to Computer Graphics METU, 007 Recap: The basic forward projection pipeline: MCS Model Model Modeling Transformations M M 3D World Scene Viewing Transformations

More information

Computer Graphics. The Two-Dimensional Viewing. Somsak Walairacht, Computer Engineering, KMITL

Computer Graphics. The Two-Dimensional Viewing. Somsak Walairacht, Computer Engineering, KMITL Computer Graphics Chapter 6 The Two-Dimensional Viewing Somsak Walairacht, Computer Engineering, KMITL Outline The Two-Dimensional Viewing Pipeline The Clipping Window Normalization and Viewport Transformations

More information

Image Warping. Some slides from Steve Seitz

Image Warping.   Some slides from Steve Seitz Image Warping http://www.jeffre-martin.com Some slides from Steve Seitz 5-463: Computational Photograph Aleei Efros, CMU, Spring 2 Image Transformations image filtering: change range of image g() = T(f())

More information

Computer Graphics Viewing Objective

Computer Graphics Viewing Objective Computer Graphics Viewing Objective The aim of this lesson is to make the student aware of the following concepts: Window Viewport Window to Viewport Transformation line clipping Polygon Clipping Introduction

More information

3D Geometry and Camera Calibration

3D Geometry and Camera Calibration 3D Geometr and Camera Calibration 3D Coordinate Sstems Right-handed vs. left-handed 2D Coordinate Sstems ais up vs. ais down Origin at center vs. corner Will often write (u, v) for image coordinates v

More information

Scene Graphs & Modeling Transformations COS 426

Scene Graphs & Modeling Transformations COS 426 Scene Graphs & Modeling Transformations COS 426 3D Object Representations Points Range image Point cloud Surfaces Polgonal mesh Subdivision Parametric Implicit Solids Voels BSP tree CSG Sweep High-level

More information

GLOBAL EDITION. Interactive Computer Graphics. A Top-Down Approach with WebGL SEVENTH EDITION. Edward Angel Dave Shreiner

GLOBAL EDITION. Interactive Computer Graphics. A Top-Down Approach with WebGL SEVENTH EDITION. Edward Angel Dave Shreiner GLOBAL EDITION Interactive Computer Graphics A Top-Down Approach with WebGL SEVENTH EDITION Edward Angel Dave Shreiner This page is intentionall left blank. 4.10 Concatenation of Transformations 219 in

More information

Computer Graphics. P04 Transformations. Aleksandra Pizurica Ghent University

Computer Graphics. P04 Transformations. Aleksandra Pizurica Ghent University Computer Graphics P4 Transformations Aleksandra Pizurica Ghent Universit Telecommunications and Information Processing Image Processing and Interpretation Group Transformations in computer graphics Goal:

More information

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo Computer Graphics Bing-Yu Chen National Taiwan Universit The Universit of Toko Viewing in 3D 3D Viewing Process Classical Viewing and Projections 3D Snthetic Camera Model Parallel Projection Perspective

More information

3D graphics rendering pipeline (1) 3D graphics rendering pipeline (3) 3D graphics rendering pipeline (2) 8/29/11

3D graphics rendering pipeline (1) 3D graphics rendering pipeline (3) 3D graphics rendering pipeline (2) 8/29/11 3D graphics rendering pipeline (1) Geometr Rasteriation 3D Coordinates & Transformations Prof. Aaron Lanterman (Based on slides b Prof. Hsien-Hsin Sean Lee) School of Electrical and Computer Engineering

More information

Lines and Their Slopes

Lines and Their Slopes 8.2 Lines and Their Slopes Linear Equations in Two Variables In the previous chapter we studied linear equations in a single variable. The solution of such an equation is a real number. A linear equation

More information

Computer Graphics. Jeng-Sheng Yeh 葉正聖 Ming Chuan University (modified from Bing-Yu Chen s slides)

Computer Graphics. Jeng-Sheng Yeh 葉正聖 Ming Chuan University (modified from Bing-Yu Chen s slides) Computer Graphics Jeng-Sheng Yeh 葉正聖 Ming Chuan Universit (modified from Bing-Yu Chen s slides) Viewing in 3D 3D Viewing Process Specification of an Arbitrar 3D View Orthographic Parallel Projection Perspective

More information

Glossary alternate interior angles absolute value function Example alternate exterior angles Example angle of rotation Example

Glossary alternate interior angles absolute value function Example alternate exterior angles Example angle of rotation Example Glossar A absolute value function An absolute value function is a function that can be written in the form, where is an number or epression. alternate eterior angles alternate interior angles Alternate

More information

Modeling Transformations Revisited

Modeling Transformations Revisited Modeling Transformations Revisited Basic 3D Transformations Translation Scale Shear Rotation 3D Transformations Same idea as 2D transformations o Homogeneous coordinates: (,,z,w) o 44 transformation matrices

More information

2D transformations and homogeneous coordinates

2D transformations and homogeneous coordinates 2D transformations and homogeneous coordinates Dr Nicolas Holzschuch Universit of Cape Ton e-mail: holzschu@cs.uct.ac.za Map of the lecture Transformations in 2D: vector/matri notation eample: translation,

More information

CS 450: COMPUTER GRAPHICS REVIEW: CLIPPING SPRING 2015 DR. MICHAEL J. REALE

CS 450: COMPUTER GRAPHICS REVIEW: CLIPPING SPRING 2015 DR. MICHAEL J. REALE CS 45: COMPUTER GRAPHICS REVIEW: CLIPPING SPRING 215 DR. MICHAEL J. REALE CLIPPING Clipping = removing part or all of the primitives otside of the clipping volme/window Clipping volme in OpenGL nit cbe

More information

Graphics Output Primitives

Graphics Output Primitives Important Graphics Output Primitives Graphics Output Primitives in 2D polgons, circles, ellipses & other curves piel arra operations in 3D triangles & other polgons Werner Purgathofer / Computergraphik

More information

3D Coordinates & Transformations

3D Coordinates & Transformations 3D Coordinates & Transformations Prof. Aaron Lanterman (Based on slides b Prof. Hsien-Hsin Sean Lee) School of Electrical and Computer Engineering Georgia Institute of Technolog 3D graphics rendering pipeline

More information

Reteaching Golden Ratio

Reteaching Golden Ratio Name Date Class Golden Ratio INV 11 You have investigated fractals. Now ou will investigate the golden ratio. The Golden Ratio in Line Segments The golden ratio is the irrational number 1 5. c On the line

More information

CSCI 4620/8626. Computer Graphics Clipping Algorithms (Chapter 8-5 )

CSCI 4620/8626. Computer Graphics Clipping Algorithms (Chapter 8-5 ) CSCI 4620/8626 Computer Graphics Clipping Algorithms (Chapter 8-5 ) Last update: 2016-03-15 Clipping Algorithms A clipping algorithm is any procedure that eliminates those portions of a picture outside

More information

Double Integrals in Polar Coordinates

Double Integrals in Polar Coordinates Double Integrals in Polar Coordinates. A flat plate is in the shape of the region in the first quadrant ling between the circles + and +. The densit of the plate at point, is + kilograms per square meter

More information

Name Class Date. subtract 3 from each side. w 5z z 5 2 w p - 9 = = 15 + k = 10m. 10. n =

Name Class Date. subtract 3 from each side. w 5z z 5 2 w p - 9 = = 15 + k = 10m. 10. n = Reteaching Solving Equations To solve an equation that contains a variable, find all of the values of the variable that make the equation true. Use the equalit properties of real numbers and inverse operations

More information

EXPANDING THE CALCULUS HORIZON. Robotics

EXPANDING THE CALCULUS HORIZON. Robotics EXPANDING THE CALCULUS HORIZON Robotics Robin designs and sells room dividers to defra college epenses. She is soon overwhelmed with orders and decides to build a robot to spra paint her dividers. As in

More information

Homogeneous Coordinates

Homogeneous Coordinates COMS W4172 3D Math 2 Steven Feiner Department of Computer Science Columbia Universit New York, NY 127 www.cs.columbia.edu/graphics/courses/csw4172 Februar 1, 218 1 Homogeneous Coordinates w X W Y X W Y

More information

Graphs and Functions

Graphs and Functions CHAPTER Graphs and Functions. Graphing Equations. Introduction to Functions. Graphing Linear Functions. The Slope of a Line. Equations of Lines Integrated Review Linear Equations in Two Variables.6 Graphing

More information

Image Warping (Szeliski Sec 2.1.2)

Image Warping (Szeliski Sec 2.1.2) Image Warping (Szeliski Sec 2..2) http://www.jeffre-martin.com CS94: Image Manipulation & Computational Photograph Aleei Efros, UC Berkele, Fall 7 Some slides from Steve Seitz Image Transformations image

More information

UNIT 2. Translation/ Scaling/ Rotation. Unit-02/Lecture-01

UNIT 2. Translation/ Scaling/ Rotation. Unit-02/Lecture-01 UNIT 2 Translation/ Scaling/ Rotation Unit-02/Lecture-01 Translation- (RGPV-2009,10,11,13,14) Translation is to move, or parallel shift, a figure. We use a simple point as a starting point. This is a simple

More information

Image Warping. Many slides from Alyosha Efros + Steve Seitz. Photo by Sean Carroll

Image Warping. Many slides from Alyosha Efros + Steve Seitz. Photo by Sean Carroll Image Warping Man slides from Alosha Efros + Steve Seitz Photo b Sean Carroll Morphing Blend from one object to other with a series of local transformations Image Transformations image filtering: change

More information

is a plane curve and the equations are parametric equations for the curve, with parameter t.

is a plane curve and the equations are parametric equations for the curve, with parameter t. MATH 2412 Sections 6.3, 6.4, and 6.5 Parametric Equations and Polar Coordinates. Plane Curves and Parametric Equations Suppose t is contained in some interval I of the real numbers, and = f( t), = gt (

More information

Matrix Transformations. Affine Transformations

Matrix Transformations. Affine Transformations Matri ransformations Basic Graphics ransforms ranslation Scaling Rotation Reflection Shear All Can be Epressed As Linear Functions of the Original Coordinates : A + B + C D + E + F ' A ' D 1 B E C F 1

More information

Computer Graphics 7: Viewing in 3-D

Computer Graphics 7: Viewing in 3-D Computer Graphics 7: Viewing in 3-D In today s lecture we are going to have a look at: Transformations in 3-D How do transformations in 3-D work? Contents 3-D homogeneous coordinates and matrix based transformations

More information

Must first specify the type of projection desired. When use parallel projections? For technical drawings, etc. Specify the viewing parameters

Must first specify the type of projection desired. When use parallel projections? For technical drawings, etc. Specify the viewing parameters walters@buffalo.edu CSE 480/580 Lecture 4 Slide 3-D Viewing Continued Eamples of 3-D Viewing Must first specif the tpe of projection desired When use parallel projections? For technical drawings, etc.

More information

CS559: Computer Graphics

CS559: Computer Graphics CS559: Computer Graphics Lecture 8: 3D Transforms Li Zhang Spring 28 Most Slides from Stephen Chenne Finish Color space Toda 3D Transforms and Coordinate sstem Reading: Shirle ch 6 RGB and HSV Green(,,)

More information

Clipping Points Consider a clip window which is rectangular in shape. P(x, y) is a point to be displayed.

Clipping Points Consider a clip window which is rectangular in shape. P(x, y) is a point to be displayed. Usually only a specified region of a picture needs to be displayed. This region is called the clip window. An algorithm which displays only those primitives (or part of the primitives) which lie inside

More information

Transformations II. Week 2, Wed Jan 17

Transformations II. Week 2, Wed Jan 17 Universit of British Columbia CPSC 34 Computer Graphics Jan-Apr 27 Tamara Munzner Transformations II Week 2, Wed Jan 7 http://www.ugrad.cs.ubc.ca/~cs34/vjan27 Readings for Jan 5-22 FCG Chap 6 Transformation

More information

Graphing Equations Case 1: The graph of x = a, where a is a constant, is a vertical line. Examples a) Graph: x = x

Graphing Equations Case 1: The graph of x = a, where a is a constant, is a vertical line. Examples a) Graph: x = x 06 CHAPTER Algebra. GRAPHING EQUATIONS AND INEQUALITIES Tetbook Reference Section 6. &6. CLAST OBJECTIVE Identif regions of the coordinate plane that correspond to specific conditions and vice-versa Graphing

More information

REMARKS. 8.2 Graphs of Quadratic Functions. A Graph of y = ax 2 + bx + c, where a > 0

REMARKS. 8.2 Graphs of Quadratic Functions. A Graph of y = ax 2 + bx + c, where a > 0 8. Graphs of Quadratic Functions In an earlier section, we have learned that the graph of the linear function = m + b, where the highest power of is 1, is a straight line. What would the shape of the graph

More information

Answers to practice questions for Midterm 1

Answers to practice questions for Midterm 1 Answers to practice questions for Midterm Paul Hacking /5/9 (a The RREF (reduced row echelon form of the augmented matrix is So the system of linear equations has exactly one solution given by x =, y =,

More information

Two-Dimensional Viewing. Chapter 6

Two-Dimensional Viewing. Chapter 6 Two-Dimensional Viewing Chapter 6 Viewing Pipeline Two-Dimensional Viewing Two dimensional viewing transformation From world coordinate scene description to device (screen) coordinates Normalization and

More information

Image Metamorphosis By Affine Transformations

Image Metamorphosis By Affine Transformations Image Metamorphosis B Affine Transformations Tim Mers and Peter Spiegel December 16, 2005 Abstract Among the man was to manipulate an image is a technique known as morphing. Image morphing is a special

More information

Computer Graphics: Two Dimensional Viewing

Computer Graphics: Two Dimensional Viewing Computer Graphics: Two Dimensional Viewing Clipping and Normalized Window By: A. H. Abdul Hafez Abdul.hafez@hku.edu.tr, 1 Outlines 1. End 2 Transformation between 2 coordinate systems To transform positioned

More information

Perspective Projection Transformation

Perspective Projection Transformation Perspective Projection Transformation Where does a point of a scene appear in an image?? p p Transformation in 3 steps:. scene coordinates => camera coordinates. projection of camera coordinates into image

More information

Uses of Transformations. 2D transformations Homogeneous coordinates. Transformations. Transformations. Transformations. Transformations and matrices

Uses of Transformations. 2D transformations Homogeneous coordinates. Transformations. Transformations. Transformations. Transformations and matrices Uses of Transformations 2D transformations Homogeneous coordinates odeling: position and resie parts of a comple model; Viewing: define and position the virtual camera Animation: define how objects move/change

More information

2D and 3D Transformations AUI Course Denbigh Starkey

2D and 3D Transformations AUI Course Denbigh Starkey 2D and 3D Transformations AUI Course Denbigh Starkey. Introduction 2 2. 2D transformations using Cartesian coordinates 3 2. Translation 3 2.2 Rotation 4 2.3 Scaling 6 3. Introduction to homogeneous coordinates

More information

9 3 Rotations 9 4 Symmetry

9 3 Rotations 9 4 Symmetry h 9: Transformations 9 1 Translations 9 Reflections 9 3 Rotations 9 Smmetr 9 1 Translations: Focused Learning Target: I will be able to Identif Isometries. Find translation images of figures. Vocabular:

More information

CPSC 314, Midterm Exam 1. 9 Feb 2007

CPSC 314, Midterm Exam 1. 9 Feb 2007 CPSC, Midterm Eam 9 Feb 007 Closed book, no calculators or other electronic devices. Cell phones must be turned off. Place our photo ID face up on our desk. One single-sided sheet of handwritten notes

More information

CPSC 314, Midterm Exam. 8 March 2010

CPSC 314, Midterm Exam. 8 March 2010 CPSC, Midterm Eam 8 March 00 Closed book, no electronic devices besides (simple, nongraphing) calculators. Cell phones must be turned off. Place our photo ID face up on our desk. One single-sided sheet

More information

CS 335 Graphics and Multimedia. Geometric Warping

CS 335 Graphics and Multimedia. Geometric Warping CS 335 Graphics and Multimedia Geometric Warping Geometric Image Operations Eample transformations Straightforward methods and their problems The affine transformation Transformation algorithms: Forward

More information

Graphics and Interaction Transformation geometry and homogeneous coordinates

Graphics and Interaction Transformation geometry and homogeneous coordinates 433-324 Graphics and Interaction Transformation geometry and homogeneous coordinates Department of Computer Science and Software Engineering The Lecture outline Introduction Vectors and matrices Translation

More information

PARAMETRIC EQUATIONS AND POLAR COORDINATES

PARAMETRIC EQUATIONS AND POLAR COORDINATES 10 PARAMETRIC EQUATIONS AND POLAR COORDINATES PARAMETRIC EQUATIONS & POLAR COORDINATES A coordinate system represents a point in the plane by an ordered pair of numbers called coordinates. PARAMETRIC EQUATIONS

More information

Beecher J.A, Penna J.A., Bittinger M.L. Algebra and Trigonometry (3ed, Addison Wesley, 2007) 58 Chapter 1 Graphs, Functions, and Models

Beecher J.A, Penna J.A., Bittinger M.L. Algebra and Trigonometry (3ed, Addison Wesley, 2007) 58 Chapter 1 Graphs, Functions, and Models Beecher J.A, Penna J.A., Bittinger M.L. Algebra and Trigonometr (ed, Addison Wesle, 007) 8 Chapter Graphs, Functions, and Models.. Introduction Polnomial to Functions Graphing and Modeling Plot points.

More information

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates Department of Computer Science and Software Engineering The Lecture outline Introduction Vectors and matrices Translation

More information

Modeling Transformations

Modeling Transformations Transformations Transformations Specif transformations for objects o Allos definitions of objects in on coordinate sstems o Allos use of object definition multiple times in a scene Adam Finkelstein Princeton

More information

Part IV. 2D Clipping

Part IV. 2D Clipping Part IV 2D Clipping The Liang-Barsky algorithm Boolean operations on polygons Outline The Liang-Barsky algorithm Boolean operations on polygons Clipping The goal of clipping is mainly to eliminate parts

More information

Examples. Clipping. The Rendering Pipeline. View Frustum. Normalization. How it is done. Types of operations. Removing what is not seen on the screen

Examples. Clipping. The Rendering Pipeline. View Frustum. Normalization. How it is done. Types of operations. Removing what is not seen on the screen Computer Graphics, Lecture 0 November 7, 006 Eamples Clipping Types of operations Accept Reject Clip Removing what is not seen on the screen The Rendering Pipeline The Graphics pipeline includes one stage

More information

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6. ) is graphed below:

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6. ) is graphed below: Polar Coordinates Any point in the plane can be described by the Cartesian coordinates (x, y), where x and y are measured along the corresponding axes. However, this is not the only way to represent points

More information

CSE328 Fundamentals of Computer Graphics: Theory, Algorithms, and Applications

CSE328 Fundamentals of Computer Graphics: Theory, Algorithms, and Applications CSE328 Fundamentals of Computer Graphics: Theor, Algorithms, and Applications Hong in State Universit of New York at Ston Brook (Ston Brook Universit) Ston Brook, New York 794-44 Tel: (63)632-845; Fa:

More information

3D Polygon Rendering. Many applications use rendering of 3D polygons with direct illumination

3D Polygon Rendering. Many applications use rendering of 3D polygons with direct illumination Rendering Pipeline 3D Polygon Rendering Many applications use rendering of 3D polygons with direct illumination 3D Polygon Rendering What steps are necessary to utilize spatial coherence while drawing

More information

8.6 Three-Dimensional Cartesian Coordinate System

8.6 Three-Dimensional Cartesian Coordinate System SECTION 8.6 Three-Dimensional Cartesian Coordinate Sstem 69 What ou ll learn about Three-Dimensional Cartesian Coordinates Distance and Midpoint Formulas Equation of a Sphere Planes and Other Surfaces

More information

CSE528 Computer Graphics: Theory, Algorithms, and Applications

CSE528 Computer Graphics: Theory, Algorithms, and Applications CSE528 Computer Graphics: Theor, Algorithms, and Applications Hong Qin State Universit of New York at Ston Brook (Ston Brook Universit) Ston Brook, New York 794--44 Tel: (63)632-845; Fa: (63)632-8334 qin@cs.sunsb.edu

More information

(x, y) (ρ, θ) ρ θ. Polar Coordinates. Cartesian Coordinates

(x, y) (ρ, θ) ρ θ. Polar Coordinates. Cartesian Coordinates Coordinate Sstems Point Representation in two dimensions Cartesian Coordinates: (; ) Polar Coordinates: (; ) (, ) ρ θ (ρ, θ) Cartesian Coordinates Polar Coordinates p = CPS1, 9: Computer Graphics D Geometric

More information

Transformations. Examples of transformations: shear. scaling

Transformations. Examples of transformations: shear. scaling Transformations Eamples of transformations: translation rotation scaling shear Transformations More eamples: reflection with respect to the y-ais reflection with respect to the origin Transformations Linear

More information

UNIT NUMBER 5.2. GEOMETRY 2 (The straight line) A.J.Hobson

UNIT NUMBER 5.2. GEOMETRY 2 (The straight line) A.J.Hobson JUST THE MATHS UNIT NUMBER 5.2 GEOMETRY 2 (The straight line) b A.J.Hobson 5.2.1 Preamble 5.2.2 Standard equations of a straight line 5.2. Perpendicular straight lines 5.2.4 Change of origin 5.2.5 Exercises

More information

Think About. Unit 5 Lesson 3. Investigation. This Situation. Name: a Where do you think the origin of a coordinate system was placed in creating this

Think About. Unit 5 Lesson 3. Investigation. This Situation. Name: a Where do you think the origin of a coordinate system was placed in creating this Think About This Situation Unit 5 Lesson 3 Investigation 1 Name: Eamine how the sequence of images changes from frame to frame. a Where do ou think the origin of a coordinate sstem was placed in creating

More information

CSE528 Computer Graphics: Theory, Algorithms, and Applications

CSE528 Computer Graphics: Theory, Algorithms, and Applications CSE528 Computer Graphics: Theory, Algorithms, and Applications Hong Qin Stony Brook University (SUNY at Stony Brook) Stony Brook, New York 11794-2424 Tel: (631)632-845; Fax: (631)632-8334 qin@cs.stonybrook.edu

More information

= = The number system. Module. Glossary Math Tools... 33

= = The number system. Module. Glossary Math Tools... 33 - > + > < - %. < + a = - = = b in. F - - Module The number sstem Lesson Rational and Irrational Numbers........ 8.NS. Lesson ompare and Order Numbers......... 8 8.NS., 8.NS. Lesson Estimate the Value of

More information

Transformations using matrices

Transformations using matrices Transformations using matrices 6 sllabusref eferenceence Core topic: Matrices and applications In this cha 6A 6B 6C 6D 6E 6F 6G chapter Geometric transformations and matri algebra Linear transformations

More information

5.8.3 Oblique Projections

5.8.3 Oblique Projections 278 Chapter 5 Viewing y (, y, ) ( p, y p, p ) Figure 537 Oblique projection P = 2 left right 0 0 left+right left right 0 2 top bottom 0 top+bottom top bottom far+near far near 0 0 far near 2 0 0 0 1 Because

More information

Trigonometry Review Day 1

Trigonometry Review Day 1 Name Trigonometry Review Day 1 Algebra II Rotations and Angle Terminology II Terminal y I Positive angles rotate in a counterclockwise direction. Reference Ray Negative angles rotate in a clockwise direction.

More information

angle The figure formed by two lines with a common endpoint called a vertex. angle bisector The line that divides an angle into two equal parts.

angle The figure formed by two lines with a common endpoint called a vertex. angle bisector The line that divides an angle into two equal parts. A angle The figure formed b two lines with a common endpoint called a verte. verte angle angle bisector The line that divides an angle into two equal parts. circle A set of points that are all the same

More information

GEOMETRIC TRANSFORMATIONS AND VIEWING

GEOMETRIC TRANSFORMATIONS AND VIEWING GEOMETRIC TRANSFORMATIONS AND VIEWING 2D and 3D 1/44 2D TRANSFORMATIONS HOMOGENIZED Transformation Scaling Rotation Translation Matrix s x s y cosθ sinθ sinθ cosθ 1 dx 1 dy These 3 transformations are

More information

CS 325 Computer Graphics

CS 325 Computer Graphics CS 325 Computer Graphics 02 / 29 / 2012 Instructor: Michael Eckmann Today s Topics Questions? Comments? Specifying arbitrary views Transforming into Canonical view volume View Volumes Assuming a rectangular

More information

Last Time. Correct Transparent Shadow. Does Ray Tracing Simulate Physics? Does Ray Tracing Simulate Physics? Refraction and the Lifeguard Problem

Last Time. Correct Transparent Shadow. Does Ray Tracing Simulate Physics? Does Ray Tracing Simulate Physics? Refraction and the Lifeguard Problem Graphics Pipeline: Projective Last Time Shadows cast ra to light stop after first intersection Reflection & Refraction compute direction of recursive ra Recursive Ra Tracing maimum number of bounces OR

More information