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

Size: px
Start display at page:

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

Transcription

1 Toda s class Geometric objects and transformations Wednesda, November 7, 27 Computer Graphics - Class 5

2 Vector operations Review of vector operations needed for working in computer graphics adding two vectors subtracting two vectors scaling a vector magnitude of a vector normalizing a vector Wednesda, November 7, 27 Computer Graphics - Class 5 2

3 Linear combination of vectors Conve combinations (coefficients of linear combination are all non-negative and add up to ) Important conve combination: p(t) = a(-t) + b(t) where a and b are vectors and t If a and b are points, then p(t) = a(-t) + b(t) is said to interpolate the points a and b ( t ) Wednesda, November 7, 27 Computer Graphics - Class 5 3

4 Conve sets and hulls A conve set of points is a collection of points in which the line connecting an pair in the set lies entirel in the set Eamples: circle rectangle A conve hull is the smallest conve set that contains a specified collection of points Wednesda, November 7, 27 Computer Graphics - Class 5 4

5 Dot products cos θ = u a u b Vectors are orthogonal if dot product is Vectors are less than 9 apart if dot product is positive Vectors are more than 9 apart if dot product is negative Perpendicular projection of a onto b is (a u b ) u b Reflected ra is a -2(a u n ) u n where u n is a unit normal vector to the surface Wednesda, November 7, 27 Computer Graphics - Class 5 5

6 Cross products u = (u, u, u z ), v = (v, v, v z ) u v is perpendicular to both u and v Orientation follows the right hand rule u v = u v sin u v = θ u v u v u v z z z Wednesda, November 7, 27 Computer Graphics - Class 5 6

7 Polgons A polgon is a defined b a set of vertices and edges An interior angle of a polgon is an angle formed b two adjacent edges that is inside the boundar A conve polgon has ever interior angle < 8 A concave polgon is a polgon that is not conve Wednesda, November 7, 27 Computer Graphics - Class 5 7

8 Identifing concave polgons Concave polgons will have at least one interior angle > 8 The sin of this angle will be negative Thus, the magnitude of the cross product of the two vectors (edges) forming this angle will be negative This will also manifest itself b some z components of the cross product being positive and others being negative Wednesda, November 7, 27 Computer Graphics - Class 5 8

9 Splitting concave polgons Concave polgons present problems for computer graphics Splitting them up will get us conve polgons Define edge vector E k as the vector V k+ -V k, where the V s are adjacent vertices Calculate the edge cross products in order counter-clockwise around the polgon If an z component of a cross product is negative the polgon is concave and can be split along the line from the first edge in the cross product Wednesda, November 7, 27 Computer Graphics - Class 5 9

10 Triangularization A conve polgon can easil be triangularized (sometimes also referred to as tessellated) Define three consecutive vertices of the polgon as a triangle Remove the middle verte from the polgon s verte list Repeat with the modified list until onl three vertices remain, forming the last triangle Wednesda, November 7, 27 Computer Graphics - Class 5

11 Is a point inside a polgon? Even-odd test: construct a line from point to a point known to be outside polgon count # of intersections of line with boundar if odd, point is inside if crossing occurs at a verte look at endpoints of the edges that meet if both endpoints are on same side of line segment then the verte counts as an even number of crossings, otherwise it counts as an odd number Wednesda, November 7, 27 Computer Graphics - Class 5

12 N-gons An n-gon is a regular polgon of n sides Wednesda, November 7, 27 Computer Graphics - Class 5 2

13 Rosettes Rosettes are n-gons where each verte has been joined to each other verte Wednesda, November 7, 27 Computer Graphics - Class 5 3

14 A cube Consider a cube Pair off and come up with: A set of vertices for the cube A sequence of OpenGL statements to draw the cube How man function calls are ou making? Wednesda, November 7, 27 Computer Graphics - Class 5 4

15 Verte arras Allow ou to specif geometr with much fewer function calls For eample, the cube can be drawn in just one function call Create an arra of verte data and use glvertepointer() to refer to it Need to enable this with glenableclientstate (GL_VERTEX_ARRAY); Wednesda, November 7, 27 Computer Graphics - Class 5 5

16 glvertepointer() Four parameters: Size: number of coordinates per verte; must be 2, 3, or 4 Tpe: the data tpe of each coordinate in the arra Stride: the bte offset between consecutive vertices (frequentl ) Pointer: a pointer to the first coordinate of the first verte in the arra Wednesda, November 7, 27 Computer Graphics - Class 5 6

17 Inde arra Need a second arra with indices into the verte arra to specif which vertices make up each face of our geometr gldrawelements() is then used to draw the geometr Wednesda, November 7, 27 Computer Graphics - Class 5 7

18 gldrawelements() Four parameters: Mode: specified what kind of geometric primitives to render Count: number of vertices in the inde arra to be rendered Tpe: the tpe of the values in the inde arra; must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT Indices: a pointer to the arra of indices into the verte arra Wednesda, November 7, 27 Computer Graphics - Class 5 8

19 Eample program rotatingcube.c demonstrates verte arras and introduces the idle callback function Wednesda, November 7, 27 Computer Graphics - Class 5 9

20 Transformation matrices A transformation matri is a matri that transforms a point to another point In 2-dimensions, this has the following algebraic form: a a 2 a a 2 22 p p = a a 2 p p + + a a 2 22 p p Wednesda, November 7, 27 Computer Graphics - Class 5 2

21 Wednesda, November 7, 27 Computer Graphics - Class 5 2 Uniform scaling Given a scale factor s >, a matri which produces a uniform scaling is Eample: s s = sp sp p p s s

22 Wednesda, November 7, 27 Computer Graphics - Class 5 22 Non-uniform scaling Given scale factors s > and s >, a matri which produces non-uniform scaling is Eample: s s = p s p s p p s s

23 Comparison of scalings Uniform scaling preserves shape Non-uniform scaling introduces distortion Wednesda, November 7, 27 Computer Graphics - Class 5 23

24 Two scalings in a row Two scalings in a row have a multiplicative effect P = S P P = S 2 P = S 2 S P Note the order of the scales appears to be reversed (S 2 before S ), but it s not Wednesda, November 7, 27 Computer Graphics - Class 5 24

25 Wednesda, November 7, 27 Computer Graphics - Class 5 25 Composite transformation matri The product of two or more transformation matrices is known as a composite transformation matri For our two scalings we have = s s s s s s s s

26 A side effect Note that an object which does not have the origin inside it will be moved as well b a scaling We will see how to correct this effect shortl Wednesda, November 7, 27 Computer Graphics - Class 5 26

27 Reflections Reflection through the -ais negates the coordinate: Reflection through the -ais negates the coordinate: Wednesda, November 7, 27 Computer Graphics - Class 5 27

28 Rotation Rotation transforms a point in a circular manner Positive angles impl a counter-clockwise rotation Wednesda, November 7, 27 Computer Graphics - Class 5 28

29 The geometr of rotation (, ) r r (,) θ φ (, ) = (r cos φ, r sin φ) (, ) = (r cos (φ+θ), r sin (φ+θ)) Wednesda, November 7, 27 Computer Graphics - Class 5 29

30 Rotation formula (, ) = (r cos φ, r sin φ) (, ) = (r cos (φ+θ), r sin (φ+θ)) Recall sum of angle trig formulas: sin (φ+θ) = sin φ cos θ + cos φ sin θ cos (φ+θ) = cos φ cos θ -sin φ sin θ = r (cos φ cos θ - sin φ sin θ) = cos θ - sin θ = r (sin φ cos θ + cos φ sin θ) = cos θ + sin θ = sin θ + cos θ Wednesda, November 7, 27 Computer Graphics - Class 5 3

31 Rotation matri Results from the previous slide give the matri for rotation: ' ' cos sin = θ θ cos sin θ θ sin cos θ θ sin cos θ θ Wednesda, November 7, 27 Computer Graphics - Class 5 3

32 Two rotations in a row Two rotations in a row have an additive effect on the angles P = R P P = R 2 P = R 2 R P θ θ θ cos 2 sinθ2 sin cosθ cosθ 2 cosθ sinθ2 sinθ sinθ2 cosθ + cosθ 2 sinθ cos( θ2 + θ) sin( θ2 + θ) 2 2 cos sinθ sin( θ2 + θ) cos( θ + ) 2 θ sinθ = cosθ (cosθ sinθ + sinθ sinθ + sinθ2 cosθ) cosθ cos 2 θ Wednesda, November 7, 27 Computer Graphics - Class =

33 Reflection through = = 45 Rotate point -45 so that reflection line is -ais Reflect through -ais Rotate 45 back Wednesda, November 7, 27 Computer Graphics - Class 5 33

34 . Rotate -45 Recall matri to perform rotation: Fill in θ = -45 : cos( 45 ) sin( 45 ) cosθ sinθ sinθ cosθ sin( 45 ) cos( 45 ) = Wednesda, November 7, 27 Computer Graphics - Class 5 34

35 2. Reflect through -ais Recall matri for -ais reflection: Wednesda, November 7, 27 Computer Graphics - Class 5 35

36 3. Rotate back Recall matri to perform rotation: Fill in θ = 45 : cos(45 ) sin(45 ) cosθ sinθ sin(45 ) cos(45 ) sinθ cosθ = Wednesda, November 7, 27 Computer Graphics - Class 5 36

37 Compute the total transformation Take each transformation matri in the order the transformations need to be applied and multipl them together: = Wednesda, November 7, 27 Computer Graphics - Class 5 37

38 Wednesda, November 7, 27 Computer Graphics - Class 5 38 Result The result of reflecting a point through = is the switching of the and coordinates of the point = = ' '

39 Another transformation Find the transformation that reflects a point through the line = 2. =2 Wednesda, November 7, 27 Computer Graphics - Class 5 39

40 The steps Translate b -2 in the direction Reflect through the -ais Translate back Wednesda, November 7, 27 Computer Graphics - Class 5 4

41 Wednesda, November 7, 27 Computer Graphics - Class 5 4 Translation Translation is a transformation that results in a linear movement of a point + + = + = T T T T ' '

42 A problem with translation Ever other transformation we have looked at could be epressed using a 2 2 matri and multipling the point b the matri Translation cannot be epressed this wa as we need to add fied amounts to the and coordinates Wednesda, November 7, 27 Computer Graphics - Class 5 42

43 A solution So that translation behaves like our other transformations we want to epress it using a matri and multipling the point b the matri Will need to add an etra coordinate to our point This coordinate will have the value Wednesda, November 7, 27 Computer Graphics - Class 5 43

44 Wednesda, November 7, 27 Computer Graphics - Class 5 44 Translation matri The matri for doing a translation is Eample: T T + + = T T T T

45 Homogeneous coordinates This new representation for our points (with the in the etra coordinate) is known as homogeneous coordinates There are times when the homogeneous coordinate is not ; we ll see this in perspective projections Wednesda, November 7, 27 Computer Graphics - Class 5 45

46 New versions of transformation matrices Homogeneous coordinates requires a change in the transformation matrices to accommodate the etra coordinate Matrices will now be 3 3 Eample: uniform scaling s Wednesda, November 7, 27 Computer Graphics - Class 5 46 s

47 Wednesda, November 7, 27 Computer Graphics - Class 5 47 The transformations for our problem Translate b -2 in Reflect through -ais Translate b +2 in = 2 A = B = 2 C

48 The composite transformation The composite transformation for reflecting a point through the line =2 is found b multipling CBA: 4 Wednesda, November 7, 27 Computer Graphics - Class 5 48

49 Rotations about an arbitrar point The rotations we have considered so far all occur around the origin Suppose ou had the following figure, which ou would like to rotate about its center: Wednesda, November 7, 27 Computer Graphics - Class 5 49

50 Rotation analsis If we applied the rotation transformation as we currentl have it, the square would rotate about the origin This is not what we want We want the square to rotate in place Thus, we need to make the center of the square the point of rotation Wednesda, November 7, 27 Computer Graphics - Class 5 5

51 Fied points We call the point about which we want to rotate a fied point as it will not change its position during the transformation The same concept can be applied to scaling as well Wednesda, November 7, 27 Computer Graphics - Class 5 5

52 Wednesda, November 7, 27 Computer Graphics - Class 5 52 Steps for arbitrar rotation Translate the fied point to the origin Perform the rotation around the origin Translate the fied point back to its position = c c A = c c C = cos sin sin cos θ θ θ θ B

53 Reflection through an arbitrar line Consider the following picture: What steps are necessar to perform the indicated reflection? Wednesda, November 7, 27 Computer Graphics - Class 5 53

54 Arbitrar reflection transformation Sequence for arbitrar reflection: Translate line b its -intercept so that it goes through origin (T) Rotate around origin so line lies on -ais (R) Reflect through -ais (X) Rotate back (R - ) Translate back (T - ) Composite: T - R - XRT Wednesda, November 7, 27 Computer Graphics - Class 5 54

Two Dimensional Viewing

Two Dimensional Viewing Two Dimensional Viewing Dr. S.M. Malaek Assistant: M. Younesi Two Dimensional Viewing Basic Interactive Programming Basic Interactive Programming User controls contents, structure, and appearance of objects

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

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

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

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

[ ] [ ] 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

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

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

Plot and connect the points in a coordinate plane to make a polygon. Name the polygon.

Plot and connect the points in a coordinate plane to make a polygon. Name the polygon. . Start Thinking Find at least two objects in each of the following categories: circle, square, triangle, and rectangle (nonsquare). Use a table to compare each object of the same categor in the following

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

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

Chapter 9 Transformations

Chapter 9 Transformations Section 9-1: Reflections SOL: G.2 The student will use pictorial representations, including computer software, constructions, and coordinate methods, to solve problems involving smmetr and transformation.

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

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

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

Translations, Reflections, and Rotations

Translations, Reflections, and Rotations Translations, Reflections, and Rotations The Marching Cougars Lesson 9-1 Transformations Learning Targets: Perform transformations on and off the coordinate plane. Identif characteristics of transformations

More information

Pre-Algebra Notes Unit 13: Angle Relationships and Transformations

Pre-Algebra Notes Unit 13: Angle Relationships and Transformations Pre-Algebra Notes Unit 13: Angle Relationships and Transformations Angle Relationships Sllabus Objectives: (7.1) The student will identif measures of complementar, supplementar, and vertical angles. (7.2)

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

12.1. Angle Relationships. Identifying Complementary, Supplementary Angles. Goal: Classify special pairs of angles. Vocabulary. Complementary. angles.

12.1. Angle Relationships. Identifying Complementary, Supplementary Angles. Goal: Classify special pairs of angles. Vocabulary. Complementary. angles. . Angle Relationships Goal: Classif special pairs of angles. Vocabular Complementar angles: Supplementar angles: Vertical angles: Eample Identifing Complementar, Supplementar Angles In quadrilateral PQRS,

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

Math 26: Fall (part 1) The Unit Circle: Cosine and Sine (Evaluating Cosine and Sine, and The Pythagorean Identity)

Math 26: Fall (part 1) The Unit Circle: Cosine and Sine (Evaluating Cosine and Sine, and The Pythagorean Identity) Math : Fall 0 0. (part ) The Unit Circle: Cosine and Sine (Evaluating Cosine and Sine, and The Pthagorean Identit) Cosine and Sine Angle θ standard position, P denotes point where the terminal side of

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

5 and Parallel and Perpendicular Lines

5 and Parallel and Perpendicular Lines Ch 3: Parallel and Perpendicular Lines 3 1 Properties of Parallel Lines 3 Proving Lines Parallel 3 3 Parallel and Perpendicular Lines 3 Parallel Lines and the Triangle Angles Sum Theorem 3 5 The Polgon

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

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

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

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 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

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

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

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

Computer Graphics. Lecture 3 Graphics Output Primitives. Somsak Walairacht, Computer Engineering, KMITL

Computer Graphics. Lecture 3 Graphics Output Primitives. Somsak Walairacht, Computer Engineering, KMITL Computer Graphics Lecture 3 Graphics Output Primitives Somsa Walairacht, Computer Engineering, KMITL Outline Line Drawing Algorithms Circle-, Ellipse-Generating Algorithms Fill-Area Primitives Polgon Fill

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

STRAND I: Geometry and Trigonometry. UNIT 37 Further Transformations: Student Text Contents. Section Reflections. 37.

STRAND I: Geometry and Trigonometry. UNIT 37 Further Transformations: Student Text Contents. Section Reflections. 37. MEP Jamaica: STRN I UNIT 7 Further Transformations: Student Tet ontents STRN I: Geometr and Trigonometr Unit 7 Further Transformations Student Tet ontents Section 7. Reflections 7. Rotations 7. Translations

More information

H Geo Final Review Packet Multiple Choice Identify the choice that best completes the statement or answers the question.

H Geo Final Review Packet Multiple Choice Identify the choice that best completes the statement or answers the question. H Geo Final Review Packet Multiple Choice Identif the choice that best completes the statement or answers the question. 1. Which angle measures approximatel 7?.. In the figure below, what is the name of

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

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

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

Computer Graphics. 2D Transforma5ons. Review Vertex Transforma5ons 2/3/15. adjust the zoom. posi+on the camera. posi+on the model

Computer Graphics. 2D Transforma5ons. Review Vertex Transforma5ons 2/3/15. adjust the zoom. posi+on the camera. posi+on the model /3/5 Computer Graphics D Transforma5ons Review Verte Transforma5ons posi+on the model posi+on the camera adjust the zoom verte shader input verte shader output, transformed /3/5 From Object to World Space

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

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

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

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

Properties Transformations

Properties Transformations 9 Properties of Transformations 9. Translate Figures and Use Vectors 9.2 Use Properties of Matrices 9.3 Perform Reflections 9.4 Perform Rotations 9.5 ppl ompositions of Transformations 9.6 Identif Smmetr

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

THE INVERSE GRAPH. Finding the equation of the inverse. What is a function? LESSON

THE INVERSE GRAPH. Finding the equation of the inverse. What is a function? LESSON LESSON THE INVERSE GRAPH The reflection of a graph in the line = will be the graph of its inverse. f() f () The line = is drawn as the dotted line. Imagine folding the page along the dotted line, the two

More information

2D Object Definition (1/3)

2D Object Definition (1/3) 2D Object Definition (1/3) Lines and Polylines Lines drawn between ordered points to create more complex forms called polylines Same first and last point make closed polyline or polygon Can intersect itself

More information

Math 462: Review questions

Math 462: Review questions Math 462: Review questions Paul Hacking 4/22/10 (1) What is the angle between two interior diagonals of a cube joining opposite vertices? [Hint: It is probably quickest to use a description of the cube

More information

Summer Dear Geometry Students and Parents:

Summer Dear Geometry Students and Parents: Summer 2018 Dear Geometry Students and Parents: Welcome to Geometry! For the 2018-2019 school year, we would like to focus your attention to the prerequisite skills and concepts for Geometry. In order

More information

Matrix Representations

Matrix Representations CONDENSED LESSON 6. Matri Representations In this lesson, ou Represent closed sstems with transition diagrams and transition matrices Use matrices to organize information Sandra works at a da-care center.

More information

Image warping. image filtering: change range of image. image warping: change domain of image g(x) = f(h(x)) h(y)=0.5y+0.5. h([x,y])=[x,y/2] f h

Image warping. image filtering: change range of image. image warping: change domain of image g(x) = f(h(x)) h(y)=0.5y+0.5. h([x,y])=[x,y/2] f h Image warping Image warping image filtering: change range of image g() () = h(f()) h(f()) f h g h()=0.5+0.5 image warping: change domain of image g() = f(h()) f h g h([,])=[,/2] Parametric (global) warping

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

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

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

Parallel Lines Investigation

Parallel Lines Investigation Year 9 - The Maths Knowledge Autumn 1 (x, y) Along the corridor, up the stairs (3,1) x = 3 Gradient (-5,-2) (0,0) y-intercept Vertical lines are always x = y = 6 Horizontal lines are always y = Parallel

More information

Transformations of Functions. 1. Shifting, reflecting, and stretching graphs Symmetry of functions and equations

Transformations of Functions. 1. Shifting, reflecting, and stretching graphs Symmetry of functions and equations Chapter Transformations of Functions TOPICS.5.. Shifting, reflecting, and stretching graphs Smmetr of functions and equations TOPIC Horizontal Shifting/ Translation Horizontal Shifting/ Translation Shifting,

More information

Module 2, Section 2 Graphs of Trigonometric Functions

Module 2, Section 2 Graphs of Trigonometric Functions Principles of Mathematics Section, Introduction 5 Module, Section Graphs of Trigonometric Functions Introduction You have studied trigonometric ratios since Grade 9 Mathematics. In this module ou will

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

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

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

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

The Marching Cougars Lesson 9-1 Transformations

The Marching Cougars Lesson 9-1 Transformations The Marching Cougars Lesson 9-1 Learning Targets: Perform transformations on and off the coordinate plane. Identif characteristics of transformations that are rigid motions and characteristics of transformations

More information

We can use square dot paper to draw each view (top, front, and sides) of the three dimensional objects:

We can use square dot paper to draw each view (top, front, and sides) of the three dimensional objects: Unit Eight Geometry Name: 8.1 Sketching Views of Objects When a photo of an object is not available, the object may be drawn on triangular dot paper. This is called isometric paper. Isometric means equal

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

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

CS 548: COMPUTER GRAPHICS REVIEW: OVERVIEW OF POLYGONS SPRING 2015 DR. MICHAEL J. REALE

CS 548: COMPUTER GRAPHICS REVIEW: OVERVIEW OF POLYGONS SPRING 2015 DR. MICHAEL J. REALE CS 548: COMPUTER GRPHICS REVIEW: OVERVIEW OF POLYGONS SPRING 05 DR. MICHEL J. RELE NOTE: COUNTERCLOCKWISE ORDER ssuming: Right-handed sstem Vertices in counterclockwise order looking at front of polgon

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

13.2. General Angles and Radian Measure. What you should learn

13.2. General Angles and Radian Measure. What you should learn Page 1 of 1. General Angles and Radian Measure What ou should learn GOAL 1 Measure angles in standard position using degree measure and radian measure. GOAL Calculate arc lengths and areas of sectors,

More information

Connecting Algebra and Geometry with Polygons

Connecting Algebra and Geometry with Polygons Connecting Algebra and Geometr with Polgons 15 Circles are reall important! Once ou know our wa around a circle, ou can use this knowledge to figure out a lot of other things! 15.1 Name That Triangle!

More information

20 Calculus and Structures

20 Calculus and Structures 0 Calculus and Structures CHAPTER FUNCTIONS Calculus and Structures Copright LESSON FUNCTIONS. FUNCTIONS A function f is a relationship between an input and an output and a set of instructions as to how

More information

Determining the 2d transformation that brings one image into alignment (registers it) with another. And

Determining the 2d transformation that brings one image into alignment (registers it) with another. And Last two lectures: Representing an image as a weighted combination of other images. Toda: A different kind of coordinate sstem change. Solving the biggest problem in using eigenfaces? Toda Recognition

More information

High Dimensional Rendering in OpenGL

High Dimensional Rendering in OpenGL High Dimensional Rendering in OpenGL Josh McCo December, 2003 Description of Project Adding high dimensional rendering capabilit to the OpenGL graphics programming environment is the goal of this project

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

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

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

Worksheet on Line Symmetry & Rotational Symmetry

Worksheet on Line Symmetry & Rotational Symmetry Gr. 9 Math 8. - 8.7 Worksheet on Line Smmetr & Rotational Smmetr Multiple Choice Identif the choice that best completes the statement or answers the question.. Which shapes have at least lines of smmetr?

More information

Geometric Model of Camera

Geometric Model of Camera Geometric Model of Camera Dr. Gerhard Roth COMP 42A Winter 25 Version 2 Similar Triangles 2 Geometric Model of Camera Perspective projection P(X,Y,Z) p(,) f X Z f Y Z 3 Parallel lines aren t 4 Figure b

More information

Grade 7/8 Math Circles Fall October 9/10/11 Angles and Light

Grade 7/8 Math Circles Fall October 9/10/11 Angles and Light Facult of Mathematics Waterloo, Ontario N2L 3G1 Grade 7/8 Math Circles Fall 2018 - October 9/10/11 Angles and Light Centre for Education in Mathematics and Computing Toda we will be learning about angles.

More information

Isometries and Congruence

Isometries and Congruence Honors Geometr Section.1 Name: Date: Period: Isometries and Congruence transformation of a geometric figure is a change in its position, shape, or size.. The original figure is called the preimage. The

More information

Transformations. which the book introduces in this chapter. If you shift the graph of y 1 x to the left 2 units and up 3 units, the

Transformations. which the book introduces in this chapter. If you shift the graph of y 1 x to the left 2 units and up 3 units, the CHAPTER 8 Transformations Content Summar In Chapter 8, students continue their work with functions, especiall nonlinear functions, through further stud of function graphs. In particular, the consider three

More information

STRAND J: TRANSFORMATIONS, VECTORS and MATRICES

STRAND J: TRANSFORMATIONS, VECTORS and MATRICES Mathematics SKE, Strand J UNIT J Further Transformations: Tet STRND J: TRNSFORMTIONS, VETORS and MTRIES J Further Transformations Tet ontents Section J.1 Translations * J. ombined Transformations Mathematics

More information

Polar Functions Polar coordinates

Polar Functions Polar coordinates 548 Chapter 1 Parametric, Vector, and Polar Functions 1. What ou ll learn about Polar Coordinates Polar Curves Slopes of Polar Curves Areas Enclosed b Polar Curves A Small Polar Galler... and wh Polar

More information

LESSON 3.1 INTRODUCTION TO GRAPHING

LESSON 3.1 INTRODUCTION TO GRAPHING LESSON 3.1 INTRODUCTION TO GRAPHING LESSON 3.1 INTRODUCTION TO GRAPHING 137 OVERVIEW Here s what ou ll learn in this lesson: Plotting Points a. The -plane b. The -ais and -ais c. The origin d. Ordered

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

Midterm Review. Wen-Chieh (Steve) Lin Department of Computer Science

Midterm Review. Wen-Chieh (Steve) Lin Department of Computer Science Midterm Review Wen-Chieh (Steve) Lin Department of Computer Science Administration Assignment due on /3 :59 PM Midterm eam on /6 (Monda) Lecture slides Chapter 3 ecluding 3.6 & 3.8 Chapter 6, 7, 8 Chapter

More information

Name: [20 points] Consider the following OpenGL commands:

Name: [20 points] Consider the following OpenGL commands: Name: 2 1. [20 points] Consider the following OpenGL commands: glmatrimode(gl MODELVIEW); glloadidentit(); glrotatef( 90.0, 0.0, 1.0, 0.0 ); gltranslatef( 2.0, 0.0, 0.0 ); glscalef( 2.0, 1.0, 1.0 ); What

More information

Unit 6 Introduction to Trigonometry The Unit Circle (Unit 6.3)

Unit 6 Introduction to Trigonometry The Unit Circle (Unit 6.3) Unit Introduction to Trigonometr The Unit Circle Unit.) William Bill) Finch Mathematics Department Denton High School Introduction Trig Functions Circle Quadrental Angles Other Angles Unit Circle Periodic

More information

Grade 6 Math Circles February 29, D Geometry

Grade 6 Math Circles February 29, D Geometry 1 Universit of Waterloo Facult of Mathematics Centre for Education in Mathematics and Computing Grade 6 Math Circles Feruar 29, 2012 2D Geometr What is Geometr? Geometr is one of the oldest ranches in

More information

521493S Computer Graphics Exercise 2 Solution (Chapters 4-5)

521493S Computer Graphics Exercise 2 Solution (Chapters 4-5) 5493S Computer Graphics Exercise Solution (Chapters 4-5). Given two nonparallel, three-dimensional vectors u and v, how can we form an orthogonal coordinate system in which u is one of the basis vectors?

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

More Coordinate Graphs. How do we find coordinates on the graph?

More Coordinate Graphs. How do we find coordinates on the graph? Lesson Problem Solving: More Coordinate Graphs Problem Solving: More Coordinate Graphs How do we find coordinates on the graph? We use coordinates to find where the dot goes on the coordinate graph. From

More information

WRITING AND GRAPHING LINEAR EQUATIONS ON A FLAT SURFACE #1313

WRITING AND GRAPHING LINEAR EQUATIONS ON A FLAT SURFACE #1313 WRITING AND GRAPHING LINEAR EQUATIONS ON A FLAT SURFACE #11 SLOPE is a number that indicates the steepness (or flatness) of a line, as well as its direction (up or down) left to right. SLOPE is determined

More information

Name: Unit 8 Beaumont Middle School 8th Grade, Advanced Algebra I T Q R U

Name: Unit 8 Beaumont Middle School 8th Grade, Advanced Algebra I T Q R U Unit 8 eaumont Middle School 8th Grade, 2015-2016 dvanced lgebra I Name: P T Q R U S I can define ke terms and identif tpes of angles and adjacent angles. I can identif vertical, supplementar and complementar

More information

14-1. Translations. Vocabulary. Lesson

14-1. Translations. Vocabulary. Lesson Chapter 1 Lesson 1-1 Translations Vocabular slide, translation preimage translation image congruent figures Adding fied numbers to each of the coordinates of a figure has the effect of sliding or translating

More information

Lesson 5: Definition of Rotation and Basic Properties

Lesson 5: Definition of Rotation and Basic Properties Student Outcomes Students know how to rotate a figure a given degree around a given center. Students know that rotations move lines to lines, rays to rays, segments to segments, and angles to angles. Students

More information

CS 157: Assignment 6

CS 157: Assignment 6 CS 7: Assignment Douglas R. Lanman 8 Ma Problem : Evaluating Conve Polgons This write-up presents several simple algorithms for determining whether a given set of twodimensional points defines a conve

More information

Image warping/morphing

Image warping/morphing Image warping/morphing Digital Visual Effects, Spring 2007 Yung-Yu Chuang 2007/3/20 with slides b Richard Szeliski, Steve Seitz, Tom Funkhouser and Aleei Efros Image warping Image formation B A Sampling

More information

Unit 2: Trigonometry. This lesson is not covered in your workbook. It is a review of trigonometry topics from previous courses.

Unit 2: Trigonometry. This lesson is not covered in your workbook. It is a review of trigonometry topics from previous courses. Unit 2: Trigonometry This lesson is not covered in your workbook. It is a review of trigonometry topics from previous courses. Pythagorean Theorem Recall that, for any right angled triangle, the square

More information

PATTERNS AND ALGEBRA. He opened mathematics to many discoveries and exciting applications.

PATTERNS AND ALGEBRA. He opened mathematics to many discoveries and exciting applications. PATTERNS AND ALGEBRA The famous French philosopher and mathematician René Descartes (596 65) made a great contribution to mathematics in 67 when he published a book linking algebra and geometr for the

More information