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

Similar documents
9. [20 points] A degree three Bezier curve q(u) has the four control points p 0 = 0,0, p 1 = 2,0, p 2 = 0,2, and p 3 = 4,4.

1/29/13. Computer Graphics. Transformations. Simple Transformations

CS 428: Fall Introduction to. Viewing and projective transformations. Andrew Nealen, Rutgers, /23/2009 1

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

6. Modelview Transformations

Using GLU/GLUT Objects. GLU/GLUT Objects. glucylinder() glutwirecone() GLU/GLUT provides very simple object primitives

Lecture 6 Sections 4.3, 4.6, 4.7. Wed, Sep 9, 2009

Notes. University of British Columbia

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

Lecture 4: Viewing. Topics:

CS 335 Graphics and Multimedia. Geometric Warping

Transformations III. Week 2, Fri Jan 19

CS Computer Graphics: Transformations & The Synthetic Camera

CSE Intro to Computer Graphics. ANSWER KEY: Midterm Examination. November 18, Instructor: Sam Buss, UC San Diego

2D Object Definition (1/3)

Transformations II. Week 2, Wed Jan 17

CS4202: Test. 1. Write the letter corresponding to the library name next to the statement or statements that describe library.

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

Rational Functions with Removable Discontinuities

Modeling Transformations

Unit 4 Trigonometry. Study Notes 1 Right Triangle Trigonometry (Section 8.1)

Computer Graphics. P04 Transformations. Aleksandra Pizurica Ghent University

CS 4731/543: Computer Graphics Lecture 5 (Part I): Projection. Emmanuel Agu

Translations, Reflections, and Rotations

Derivatives 3: The Derivative as a Function

CS 130 Final. Fall 2015

The Marching Cougars Lesson 9-1 Transformations

Homogeneous Coordinates

CPSC 314, Midterm Exam 1. 9 Feb 2007

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

Modeling Transformations

Two Dimensional Viewing

Double Integrals in Polar Coordinates

For each question, indicate whether the statement is true or false by circling T or F, respectively.

3D Transformation. In 3D, we have x, y, and z. We will continue use column vectors:. Homogenous systems:. x y z. x y z. glvertex3f(x, y,z);

5.8.3 Oblique Projections

ACTIVITY 9. Learning Targets: 112 SpringBoard Mathematics Geometry, Unit 2 Transformations, Triangles, and Quadrilaterals. Reflection.

p =(x,y,d) y (0,0) d z Projection plane, z=d

What and Why Transformations?

Reading. Hierarchical Modeling. Symbols and instances. Required: Angel, sections , 9.8. Optional:

CHECK Your Understanding

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

Viewing and Modeling

Trigonometry Review Day 1

Viewing and Projection

Computer Graphics. 2D transformations. Transforma3ons in computer graphics. Overview. Basic classes of geometric transforma3ons

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

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

Viewing/Projection IV. Week 4, Fri Jan 29

9 3 Rotations 9 4 Symmetry

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

9. f(x) = x f(x) = x g(x) = 2x g(x) = 5 2x. 13. h(x) = 1 3x. 14. h(x) = 2x f(x) = x x. 16.

Graph and Write Equations of Hyperbolas

Lesson 5: Definition of Rotation and Basic Properties

8.6 Three-Dimensional Cartesian Coordinate System

Editing and Transformation

CITSTUDENTS.IN VIEWING. Computer Graphics and Visualization. Classical and computer viewing. Viewing with a computer. Positioning of the camera

Transformations. Examples of transformations: shear. scaling

Quadric Surfaces. Six basic types of quadric surfaces: ellipsoid. cone. elliptic paraboloid. hyperboloid of one sheet. hyperboloid of two sheets

Transformations. CSCI 420 Computer Graphics Lecture 4

Chapter 3: Modeling Transformation

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

To Do. Demo (Projection Tutorial) Motivation. What we ve seen so far. Outline. Foundations of Computer Graphics (Fall 2012) CS 184, Lecture 5: Viewing

Using GLU/GLUT Objects

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

USE OF PMAC S CIRCULAR INTERPOLATION FOR ELLIPSES, SPIRALS AND HELICES:

Transformation Packet

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Computer Graphics. Transformation

Unit 5 Lesson 2 Investigation 1

Projection: Mapping 3-D to 2-D. Orthographic Projection. The Canonical Camera Configuration. Perspective Projection

4.1 Angles and Angle Measure. 1, multiply by

CS 428: Fall Introduction to. Transformations in OpenGL + hierarchical modeling. Andrew Nealen, Rutgers, /21/2009 1

To Do. Motivation. Demo (Projection Tutorial) What we ve seen so far. Computer Graphics. Summary: The Whole Viewing Pipeline

CT5510: Computer Graphics. Transformation BOCHANG MOON

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

Image Metamorphosis By Affine Transformations

Viewing Transformations I Comp 535

CPSC 314, Midterm Exam. 8 March 2010

Image Warping. Some slides from Steve Seitz

Motivation. What we ve seen so far. Demo (Projection Tutorial) Outline. Projections. Foundations of Computer Graphics

Three-Dimensional Coordinates

Viewing/Projections III. Week 4, Wed Jan 31

Image Warping. Some slides from Steve Seitz

10.2: Parabolas. Chapter 10: Conic Sections. Conic sections are plane figures formed by the intersection of a double-napped cone and a plane.

Computer Graphics. Geometric Transformations

Fall CSCI 420: Computer Graphics. 2.2 Transformations. Hao Li.

Transformations. CSCI 420 Computer Graphics Lecture 5

Transformations. OpenGL Transformations. 4x4 Model-view Matrix (this lecture) OpenGL Transformation Matrices. 4x4 Projection Matrix (next lecture)

OpenGL Transformations

Computer Graphics. Geometric Transformations

Diffraction Measurements

Viewing. Cliff Lindsay, Ph.D. WPI

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

Functions. Name. Use an XY Coordinate Pegboard to graph each line. Make a table of ordered pairs for each line. y = x + 5 x y.

5.2. Exploring Quotients of Polynomial Functions. EXPLORE the Math. Each row shows the graphs of two polynomial functions.

Transformations. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

L3 Rigid Motion Transformations 3.1 Sequences of Transformations Per Date

Guided Problem Solving

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

Transcription:

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 will the 4 4 modelview matri be equal to after these commands have eecuted?

Name: 3 3. [10 points] Give the definition of linear transformation. 4. [20 points] Let f : R 2 R 2 be defined to be the transformation that reflects points across the line = 1. In particular, it maps a F as shown in the picture below. Give the matri that represents f over homogeneous coordinates. 1, 1 2, 0 f =

Name: 2 1. [20 points] Let f : R 2 R 2 be defined to be the affine transformation that maps an F as shown in the picture below. 2, 2 1,1 3,1 f = 0,0 2,0 a. Is f a rigid transformation? Eplain wh or wh not. b. Epress f in the form f() = M+b with M a 2 2 matri. c. Giveasequenceof pseudo OpenGLcommandsthatwilldrawthe F inthe position shown on the right. Use commands such as drawf() (draws F in the position shown on the left), pglrotatef( ), gltranslate2f( ), glloadidentit(), and pglscale2f( ).

Name: 3 2. [15 points] Consider the following 3 3 matri M that operates on the homogeneous coordinates of points in R 2. 2 2 2 4 0 0. 0 0 2 In the empt graph on the right, draw the image of the F under the affine map on R 2 that is defined b the matri M. Draw to scale, and label points as needed. 1,1 f =

Name: 2 1. [20 points] This problem concerns transformations in R 3. Suppose ou are given a function DrawCone()that draws a cone of height 1, and base radius 1. This cone drawn b DrawCone() is situated centered around the -ais with its base on the z plane and the tip of the cone at 0,1,0. a. Give a code fragment that will draw the cone as shown in the figure: the cone is to be drawn upside down, and with height 2 and base radius 2. Its tip is now at the origin; it is still centered around the -ais. Your code fragment that draws the cone ma use an of the following pseudo-opengl commands: glmatrimode(), glloadidentit(), glrotatef(), gltranslatef(), glloadmatri(), glmultmatri(), glscalef(), and DrawCone(). b. Give a 4 4 homogeneous matri that gives the same transformation as is used in our answer for part a.

Name: 2 1. [20 points] This problem concerns transformations in R 2. Suppose ou are given a function DrawCircle() that draws a unit circle centered at the origin (radius equals one). Give a code fragment that will draw an ellipse as shown in the figure. The length of the ellipse is l and the width is w. One endpoint of the ellipse is at 0, 0 in R 2, namel, one of the endpoints of the ais along which the length l is measured. The ellipsoid is tilted at an angle θ (measured in degrees). Your code fragment that draws the ellipse ma use an of the following pseudo-opengl commands: glmatrimode(), glloadidentit(), pglrotatef(), pgltranslatef(), pglloadmatri(), pglmultmatri(), pglscalef(), and DrawCircle(). 3. [20 points] A light source is placed at the origin in R 3, and it casts shadows onto the plane defined b z = 10. Thus, the plane is like an infinite wall parallel to the -plane, placed at z = 10. For = 1, 1,z 1 a point in R 3 where z 1 < 0, let A() = 2, 2,z 2 be the point on the wall where the shadow of is. This means that z 2 = 10. Give a 4 4 matri that represents the transformation A over homogenous coordinates, or, prove that there is no such matri.

1. [36 points] Let f : R 2 R 2 be the affine transformation that maps an F as shown in the picture below. 1, 1 1,1 1, 1 1,1 1,0 f = 0,0 1,0 a. Is f a linear transformation? b. Is f a rigid transformation? c. Is f orientation preserving? d. Epress f in the form f() = M+b with M a 2 2 matri. e. Now consider the inverse f 1 of the transformation f. Give a 3 3 matri N that represents f 1 in homogeneous coordinates. f. Epress f as a generalized rotation f = R u θ in R2 b giving the rotation angle θ and the center point u of the generalized rotation, or eplain wh this is not possible

3. [12 points] Supposethe function drawtwopoints()draws a point at 0,0,0 and another point at 1,1,0. a. Consider the sequence of OpenGL commands: glloadidentit(); gltranslatef(-1, 0, 0); glscalef(2, 1, 2); glrotatef(90, 0, 1, 0); drawtwopoints(); When the drawtwopoints() is called, where does the point it draws at 0,0,0 actuall get placed (as transformed b the ModelView matri)? And, where does the point it draws at 1,1,0 get placed? b. Now consider the slightl different sequence of OpenGL commands: glloadidentit(); glrotatef(90, 0, 1, 0); glscalef(2, 1, 2); gltranslatef(-1, 0, 0); drawtwopoints(); When the drawtwopoints() is called, where does the point it draws at 0,0,0 actuall now get placed? (You onl need to answer about this one point.)

4. [12 points] Give short answers to the following questions about the Painter s algorithm: a. What is the purpose the Painter s algorithm? What problem does it help solve? b. Give a short description of how the Painter s algorithm works. c. Give an eample of how the Painter s algorithm can fail to accomplish its purpose.