Computer Graphics Hands-on

Similar documents
Computer Graphics Hands-on

Matrix Transformations The position of the corners of this triangle are described by the vectors: 0 1 ] 0 1 ] Transformation:

Part 3: 2D Transformation

Computer Graphics: Geometric Transformations

MATRIX REVIEW PROBLEMS: Our matrix test will be on Friday May 23rd. Here are some problems to help you review.

Introduction to Homogeneous coordinates

On Your Own. ). Another way is to multiply the. ), and the image. Applications. Unit 3 _ _

Vector Algebra Transformations. Lecture 4

Reflection (M): Reflect simple plane figures in horizontal or vertical lines;

1.8 Composition of Transformations

Camera Model and Calibration

Math background. 2D Geometric Transformations. Implicit representations. Explicit representations. Read: CS 4620 Lecture 6

Lecture 4: Transforms. Computer Graphics CMU /15-662, Fall 2016

CCM6+/7+ - Unit 13 - Page 1 UNIT 13. Transformations CCM6+/7+ Name: Math Teacher: Projected Test Date:

CS4620/5620. Professor: Kavita Bala. Cornell CS4620/5620 Fall 2012 Lecture Kavita Bala 1 (with previous instructors James/Marschner)

CT5510: Computer Graphics. Transformation BOCHANG MOON

Problem 2. Problem 3. Perform, if possible, each matrix-vector multiplication. Answer. 3. Not defined. Solve this matrix equation.

Transforms. COMP 575/770 Spring 2013

UNIT 2 2D TRANSFORMATIONS

ALGEBRA 2 W/ TRIGONOMETRY MIDTERM REVIEW

1 Projective Geometry

Matrices. Chapter Matrix A Mathematical Definition Matrix Dimensions and Notation

Grade 6 Mathematics Item Specifications Florida Standards Assessments

Data Representation in Visualisation

COMP30019 Graphics and Interaction Three-dimensional transformation geometry and perspective

Lecture 5 2D Transformation

Representing 2D Transformations as Matrices

CV: 3D sensing and calibration

Institutionen för systemteknik

Camera Model and Calibration. Lecture-12

Maths for Signals and Systems Linear Algebra in Engineering. Some problems by Gilbert Strang

Section III: TRANSFORMATIONS

Chapter 2 - Basic Mathematics for 3D Computer Graphics

Unit 14: Transformations (Geometry) Date Topic Page

GEOMETRIC OBJECTS AND TRANSFORMATIONS I

Homework 5: Transformations in geometry

Geometric transformations in 3D and coordinate frames. Computer Graphics CSE 167 Lecture 3

Lecture 9: Transformations. CITS3003 Graphics & Animation

Graphics and Interaction Transformation geometry and homogeneous coordinates

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates

To Do. Outline. Translation. Homogeneous Coordinates. Foundations of Computer Graphics. Representation of Points (4-Vectors) Start doing HW 1

Graphing and Describing 180 Rotations about the Origin (0, 0)

Study Guide and Review

2D TRANSFORMATIONS AND MATRICES

Exercises for Chapter Three You know you've got to exercise your brain just like your muscles. Will Rogers ( )

2D transformations: An introduction to the maths behind computer graphics

Level 3 will generally

3D Geometry and Camera Calibration

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

Computer Science 336 Fall 2017 Homework 2

3-D D Euclidean Space - Vectors

2D/3D Geometric Transformations and Scene Graphs

Grade 6 Math Circles. Shapeshifting

Please pick up a new book on the back table.

MODULE - 7. Subject: Computer Science. Module: Other 2D Transformations. Module No: CS/CGV/7

Learning Task: Exploring Reflections and Rotations

XPM 2D Transformations Week 2, Lecture 3

Today. Today. Introduction. Matrices. Matrices. Computergrafik. Transformations & matrices Introduction Matrices

2D Object Definition (1/3)

2D and 3D Transformations AUI Course Denbigh Starkey

Homework 5: Transformations in geometry

Geometric Transformations

Computer Graphics with OpenGL ES (J. Han) Chapter IV Spaces and Transforms

Shape & Space Part C: Transformations

R(-14, 4) R'(-10, -2) S(-10, 7) S'(-6, 1) T(-5, 4) T'(-1, -2)

calibrated coordinates Linear transformation pixel coordinates

XPM 2D Transformations Week 2, Lecture 3

MatLab Project # 1 Due IN TUTORIAL Wednesday October 30

Math 2 Final Exam Study Guide. Translate down 2 units (x, y-2)

Translations. Geometric Image Transformations. Two-Dimensional Geometric Transforms. Groups and Composition

MAT 343 Laboratory 4 Plotting and computer animation in MATLAB

EXAMINATIONS 2017 TRIMESTER 2

Transforms 1 Christian Miller CS Fall 2011

8. The triangle is rotated around point D to create a new triangle. This looks like a rigid transformation.

How do the shapes grow or shrink? What parts can we compare? How can we write the comparison? CPM Materials modified by Mr. Deyo

Computer Graphics. Chapter 5 Geometric Transformations. Somsak Walairacht, Computer Engineering, KMITL

HIERARCHICAL TRANSFORMATIONS A Practical Introduction

Transforming Objects in Inkscape Transform Menu. Move

b 1. If he flips the b over to the left, what new letter is formed? Draw a picture to the right.

CS-321 Thursday 12 September 2002 Quiz (3 pts.) What is the purpose of a control grid in a cathode ray tube (CRT)?

CS 4620 Midterm 1. Tuesday 22 October minutes

CS251 Spring 2014 Lecture 7

Perimeter and Area of Geometric Figures on the Coordinate Plane

Geometry Sixth Grade

CSE328 Fundamentals of Computer Graphics

GEOMETRIC TRANSFORMATIONS AND VIEWING

What and Why Transformations?

L1 - Introduction. Contents. Introduction of CAD/CAM system Components of CAD/CAM systems Basic concepts of graphics programming

Overview. By end of the week:

Chapter 2: Transformations. Chapter 2 Transformations Page 1

Rectangular Coordinates in Space

Animation. Keyframe animation. CS4620/5620: Lecture 30. Rigid motion: the simplest deformation. Controlling shape for animation

CALCULATING TRANSFORMATIONS OF KINEMATIC CHAINS USING HOMOGENEOUS COORDINATES

NOTES: TRANSFORMATIONS

CS184: Using Quaternions to Represent Rotation

Introduction to Robotics

CS770/870 Spring 2017 Transformations

Groveport Madison Local School District Third Grade Math Content Standards. Planning Sheets

THE COMPUTER MODELLING OF GLUING FLAT IMAGES ALGORITHMS. Alekseí Yu. Chekunov. 1. Introduction

Answers to practice questions for Midterm 1

Transcription:

Computer Graphics Hands-on Two-Dimensional Transformations Objectives Visualize the fundamental 2D geometric operations translation, rotation about the origin, and scale about the origin Learn how to compose transformations Discover how fixed point rotations and scales can be achieved by combining the fundamental operations Background Fundamental 2D geometric transformations: translation, rotation, scale, as well as their associated 3x3 transformation matrices. Software Tool Applet available online http://www.wiley.com/legacy/products/subject/life/biological_anthropology/0471205079_virtual_reconstruction/chapter5_trafo.html Activities Transform the square shown below so that it has some specified shape and position. One grid cell is 10 units tall and 10 units wide. The transformation matrix is displayed on the window to the right. We ll begin with three easy warm-up activities and then move on to some more interesting activities. As you develop solutions to the posed problems, be sure to test your solutions using the tool to see if the results are what you are expecting.

Part 1: Warm-up Activities Activity 0: What transformation could you apply to the square on the left to make it look like the one on the right? Activity 1: What transformation could you apply to the square on the left so that it turns upside down, as shown on the right? Activity 2: What transformation could you apply to the left square to make it look like the one on the right? 2

Give the 3x3 scale matrix (in homogeneous coordinates) that was applied to the square. Before the scale operation is applied, notice that the right corner of the square is located at the point (30, 30) (recall that grid width is 10 units). Judging from the coordinate axes on the software tool, approximately where does this point end up after the scale operation is applied? Below, mathematically compute the image of point (30, 30) under the scale operation by multiplying it by the 3x3 scale matrix. If the results are not consistent with what you see on the display, double check your scale matrix and your calculations. 3

Part 2: Composing Transformations Activity 3: Determine a transformation or a sequence of transformations that, when applied to square on the left, transform it to look like the one on the right. Below, list the transformations in the order in which you applied them. Below, calculate the 3x3 composite matrix that was applied to the square. Show your work. 4

Notice that, before the transformations are applied, the midpoint on the right side of the square has coordinates (0, 30). Judging from the coordinate axes on the software tool, approximately where does this point end up after the transformations are applied? Below, mathematically compute the image of point (0, 30) under the transformations by multiplying it (in homogeneous coordinates) by the 3x3 composite matrix you computed. If the results are not consistent with what you see on the display, double check your calculations. 5

Activity 4: So far, all of the rotations we have considered have been about the origin. Here we consider rotating about some other point in the plane. In this activity, first apply to the square a translation of (20, 30) units, so that it looks like the left one below. Determine a sequence of transformations that, when applied to the square, rotates it 90 degrees counter-clockwise about its center, so that it looks like the one on the right in the image above. In other words, the face rotates "in place." The point that an object is rotated about is call the fixed point or the pivot point. Here the fixed point is (20, 30). Below, list the transformations in the order in which you applied them. Activity 5: In this activity the square is centered at (70, 40). But here we want a sequence of transformations that will result in the square rotating 45 degrees counter-clockwise about the fixed point (0, 40), as shown in the right image below. Here the fixed point is neither the origin nor the center of the object! Below, list the transformations in the order in which you applied them. 45 o 6

Activity 6: So far we have only considered scaling objects about the origin. Here we consider how we can scale an object about some other fixed point in the plane. First apply to the square a translation of (20, 10) units, so that it looks like the one on the left. Determine a sequence of transformations that, when applied to the square on the left, transforms it to look like the one on the right. Note that the resulted square is still centered at (20, 10), but it has been stretched by a factor of 2 along the X-axis and by a factor of 3 along the Y-axis. Below, list the transformations in the order in which you applied them. 7