CS 4620 Midterm 1. Tuesday 22 October minutes

Similar documents
CS 4620 Midterm, March 21, 2017

Shadows in Computer Graphics

CS 381 Computer Graphics, Fall 2012 Midterm Exam Solutions. The Midterm Exam was given in class on Tuesday, October 16, 2012.

CS 4620 Midterm, October 23, 2018 SOLUTION

An angle that has a measure less than a right angle.

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

Institutionen för systemteknik

Midterm Exam Fundamentals of Computer Graphics (COMP 557) Thurs. Feb. 19, 2015 Professor Michael Langer

Game Architecture. 2/19/16: Rasterization

6.837 Introduction to Computer Graphics Final Exam Tuesday, December 20, :05-12pm Two hand-written sheet of notes (4 pages) allowed 1 SSD [ /17]

QUESTION BANK 10CS65 : COMPUTER GRAPHICS AND VISUALIZATION

CS559 Computer Graphics Fall 2015

CS 184, Fall 1996 Midterm #1 Professor: unknown

COMP 175 COMPUTER GRAPHICS. Ray Casting. COMP 175: Computer Graphics April 26, Erik Anderson 09 Ray Casting

CS 465 Program 4: Modeller

Lecture 3 Sections 2.2, 4.4. Mon, Aug 31, 2009

CS 184, Fall 1996 Midterm #1 Professor: unknown

CS559 Computer Graphics Fall 2015

3D Viewing. CS 4620 Lecture 8

Topics and things to know about them:

The exam begins at 2:40pm and ends at 4:00pm. You must turn your exam in when time is announced or risk not having it accepted.

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

Lesson 1. Unit 2 Practice Problems. Problem 2. Problem 1. Solution 1, 4, 5. Solution. Problem 3

Midterm Exam CS 184: Foundations of Computer Graphics page 1 of 11

CS 559 Computer Graphics Midterm Exam March 22, :30-3:45 pm

Math 9: Chapter Review Assignment

Orthogonal Projection Matrices. Angel and Shreiner: Interactive Computer Graphics 7E Addison-Wesley 2015

Homework #1. Displays, Alpha Compositing, Image Processing, Affine Transformations, Hierarchical Modeling

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

CMSC427 Final Practice v2 Fall 2017

TDA361/DIT220 Computer Graphics, January 15 th 2016

B.Stat / B.Math. Entrance Examination 2017

Viewing with Computers (OpenGL)

Computer Science 426 Midterm 3/11/04, 1:30PM-2:50PM

CS559 Computer Graphics Fall 2015

CS184 : Foundations of Computer Graphics Professor David Forsyth Final Examination

Ray Tracing COMP575/COMP770

CHAPTER 1 Graphics Systems and Models 3

Camera Model and Calibration

CS184 : Foundations of Computer Graphics Professor David Forsyth Final Examination (Total: 100 marks)

GCSE. Basic Transformations Translate, enlarge, rotate, reflect, tessellate. 6 sections 24 Questions. Total marks 42 ANSWERS

OPTI 421/521 Introductory Optomechanical Engineering. 6. Mirror matrices. Matrix formalism is used to model reflection from plane mirrors.

CS 130 Exam I. Fall 2015

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

Answers to practice questions for Midterm 1

3-D D Euclidean Space - Vectors

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

3D Viewing. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 9

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

Homework #2 and #3 Due Friday, October 12 th and Friday, October 19 th

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

Unit 1, Lesson 1: Moving in the Plane

Advanced Computer Graphics Transformations. Matthias Teschner

The exam begins at 2:40pm and ends at 4:00pm. You must turn your exam in when time is announced or risk not having it accepted.

Objectives. Cabri Jr. Tools

Computer Graphics Hands-on

The University of Calgary

Advanced Lighting Techniques Due: Monday November 2 at 10pm

Light. Tone, value, or shade and shadow

Drawing in 3D (viewing, projection, and the rest of the pipeline)

CS3621 Midterm Solution (Fall 2005) 150 points

Introduction to Transformations. In Geometry

202 The National Strategies Secondary Mathematics exemplification: Y7

CS 465 Program 5: Ray II

Glossary of dictionary terms in the AP geometry units

Chapter 5. Projections and Rendering

CS602 Midterm Subjective Solved with Reference By WELL WISHER (Aqua Leo)

U.C. Berkeley, EECS, Computer Science TAKE HOME EXAM. Your Class Computer Account: DO NOT OPEN THIS INSIDE SODA HALL -- WAIT UNTIL YOU ARE ALONE!

Topic Check In Plane isometric transformations

Figure 1. Lecture 1: Three Dimensional graphics: Projections and Transformations

Pipeline Operations. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 11

GEOMETRIC TRANSFORMATIONS AND VIEWING

Given ABC with A(-1, 1), B(2, 4), and C(4, 1). Translate ABC left 4 units and up 1 unit. a) Vertex matrix: b) Algebraic (arrow) rule:

CS 130 Final. Fall 2015

Course Guide (/8/teachers/teacher_course_guide.html) Print (/8/teachers/print_materials.html) LMS (/8

Ray Tracer I: Ray Casting Due date: 12:00pm December 3, 2001

Perspective Projection and Texture Mapping

Today. Parity. General Polygons? Non-Zero Winding Rule. Winding Numbers. CS559 Lecture 11 Polygons, Transformations

Problem Set 4 Part 1 CMSC 427 Distributed: Thursday, November 1, 2007 Due: Tuesday, November 20, 2007

CS354 Computer Graphics Ray Tracing. Qixing Huang Januray 24th 2017

Graphics Pipeline. CS535 Fall Daniel G. Aliaga Department of Computer Science Purdue University

Translations, Reflections, and Rotations

High-Dimensional Computational Geometry. Jingbo Shang University of Illinois at Urbana-Champaign Mar 5, 2018

CS Exam 1 Review Problems Fall 2017

Pipeline Operations. CS 4620 Lecture 14

Pipeline Operations. CS 4620 Lecture 10

CMSC427: Computer Graphics Lecture Notes Last update: November 21, 2014

Blue colour text questions Black colour text sample answers Red colour text further explanation or references for the sample answers

So far, we have considered only local models of illumination; they only account for incident light coming directly from the light sources.

Review for Mastery Using Graphs and Tables to Solve Linear Systems

Section 12.1 Translations and Rotations

Section 10.1 Polar Coordinates

If three points A (h, 0), P (a, b) and B (0, k) lie on a line, show that: a b 1.

Programming projects. Assignment 1: Basic ray tracer. Assignment 1: Basic ray tracer. Assignment 1: Basic ray tracer. Assignment 1: Basic ray tracer

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Chapter 2 Rigid Transformations Geometry. For 1-10, determine if the following statements are always, sometimes, or never true.

Chapter 8. Properties of Triangles and Quadrilaterals. 02/2017 LSowatsky

Computer Graphics Ray Casting. Matthias Teschner

EXAMINATIONS 2016 TRIMESTER 2

A Little Background. Motivation. Motivation

Transcription:

CS 4620 Midterm 1 Tuesday 22 October 2013 90 minutes Problem 1: Transformations (20 pts) Consider the affine transformation on R 3 defined in homogeneous coordinates by the matrix: 1 M = 1 0 0 2 0 1 0 3 0 Describe this transformation as (a) a rotation about an axis through the origin followed by a translation; (b) a translation followed by rotation about an axis through the origin, and (c) a rotation about an axis not through the origin. Specify axes using a point on the axis and a vector parallel to the axis, and give rotation angles in the range [0, 360 ). (a) Rotate around v = (1, 1, 1) by 120 o then translate by (1, 2, 3) (b) Translate by (2, 3, 1) then rotate around (1, 1, 1) by 120 o. (c) Rotate 120 o around vector with p = ( 1 3, 5 3, 4 3 ) and v = (1, 1, 1) 1

CS 4620 Prelim 1 2 Problem 2: Hierarchies (20 pts) 0.8 (a) (b) (c) 1.0 (d) Many plants have repetitive, hierarchical structures that are amenable to description using transformation hierarchies. The four plant-like 2D structures shown above are generated from the shapes #1 and #2 below: y y y 1 x 2 x 3 x 0 0 0 0 0 0 1.0 Each of the plant structures can be drawn using a hierarchy that has the same geometry at every node and contains just one or two distinct transformations aside from the identity. That is, either all the nodes with non-identity transformations have the same transformation T, or some nodes have and the others all have. (example excluded from solutions for space) For each of the plant structures (a) through (d), draw a hierarchy that has each node labeled with a transformation, and specify each distinct transformation as a matrix or product of matrices. Since we have not said where these plants are positioned in space, just let the transformation of the root node be the identity this does not count as one of the transformations you re using. (1) Need to scale, vertically translate, and horizontally mirror. The tree is

CS 4620 Prelim 1 3 where 4 5 0 0 = 4 0 5 1 (2) Need to scale, vertically translate, and rotate 30 o clockwise. The tree is where 4 5 cos( 30) 4 5 sin( 30) 0 = 4 5 sin( 30) 4 5 cos( 30) 1 (3) Need two matrices. Both scale, vertically translate, and horizontally mirror. One rotates 30 o clockwise, the other rotates 30 o counter-clockwise. The tree is where 4 5 cos( 30) 4 5 sin( 30) 0 = 4 5 sin( 30) 4 5 cos( 30) 1 4 5 cos(30) 4 5 sin(30) 0 = 4 5 sin(30) 4 5 cos(30) 1 (4) Use the same two transforms as the last part. The tree is

CS 4620 Prelim 1 4 Problem 3: Ray tracing bugs (18 pts) Below are eight renderings produced by a ray tracer in various states of disrepair. Your job is to match the bugs listed below with the corresponding incorrect outputs. (example excluded from solutions for space) A B C D E F (a) You accidentally swap the viewpoint with the image plane point in the camera code. (b) You start your shadow rays exactly at the reflection point. (c) You forget to normalize the eye and light directions in Lambertian shading. (d) Rather than checking all the objects to find the closest intersection along a viewing ray, your intersection method always returns the first one that is found. (e) You accidentally use the view direction for the image plane normal, leaving the supplied image plane normal unused. (f) When you detect a shadow ray intersection, you neglect to check that it happened between the shading point and the light. (a) (b) (c) (d) (e) (f) C E B A D F

CS 4620 Prelim 1 5 Problem 4: Meshes (20 pts) (a) Give an indexed triangle mesh for a triangulated unit cube, with one corner at the origin and the opposite corner at (1,1,1). Be sure to use consistent orientation so that the front sides of triangles are on the outside. Put the vertices in dictionary order that is, sort the triples of numbers as if they were words, ordering first by the x coordinate, then by the y coordinate, then by the z coordinate. So vertex 0 is (0, 0, 0), followed by vertex 1 (0, 0, 1), and so forth. For example, a tetrahedron (not a regular one) could be specified this way: vertices: v x y z 0 0 0 0 1 2 0 1 0 3 1 0 0 triangles: t v 0 v 1 v 2 0 0 3 2 1 0 1 3 2 0 2 1 3 1 2 3 Organize the triangles so that the minimum-x face of the cube comes first, followed by the maximum-x face, then the y faces and z faces in similar order. The vertices must equal the following: vectices: v x y z 0 0 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 1 0 1 6 1 1 0 7 1 1 1 A little explanation for the next table: each face should be tesselated with two triangles. For each face, they should either use the two triangles on the left or the two on the right (corresponding to the choice of what diagonal to use to split the square face), and they are free to choose which triangle in the pair to list first. Order of vertices in a triangle: they are free to choose which vertex to list first, so 0 1 3 = 1 3 0 = 3 0 1, but the winding direction should match the table.

CS 4620 Prelim 1 6 triangles: t v 1 v 2 v 3 v 1 v 2 v 3 0, 1 ( x) 0 1 3 1 2 0 (α = 3) 0 3 2 1 3 2 2, 3 (+x) 7 4 6 5 4 6 7 5 4 5 6 7 4, 5 ( y) 0 4 5 1 0 4 (β = 5) 0 5 1 1 4 5 6, 7 (+y) 7 2 3 3 6 2 7 6 2 3 7 6 8, 9 ( z) 0 2 6 2 4 0 0 6 4 2 6 4 10, 11 (+z) 7 1 5 3 1 5 7 3 1 3 5 7 (α = 2) (β = 4) (b) n a triangle-neighbor structure, each triangle has connections to three other triangles. Give the three triangle indices that would be stored for the first triangle in your mesh. f the first triangle in the mesh is a b c, find the three other triangles in the mesh containing edges a b, b c and c a. The correct answer should be the indices of these three triangles. For example, if the mesh given is the left column of the table in (a), then for the first triangle 0 1 3, the three indices would be 5 (for 0 5 1), 11 (for 7 3 1), and 1 (for 0 3 2). The relevant edges have been bolded. (c) n a full winged-edge structure, each edge has connections to four other edges, called head-next, head-prev, tail-next, and tail-prev, and connections to two faces, called left and right. Give the edges and vertices that would be stored for the edge from vertex 0 to vertex 1. Name faces using the indices from (a), for example triangle 7, but name edges by the indices of their two vertices, for example edge 2 7 (since we have not established a numbering for the edges). Given how they tesselate each face in (a), let α and β take on the value given in the table in (a). Then, the correct answer is: head left/prev: 1 - α head right/next: 1 - β tail left/prev: 0 - α tail right/next: 0 - β left face: index of 0 1 α (0 or 1) right face: index of 0 β 1 (4 or 5)

CS 4620 Prelim 1 7 Problem 5: Viewing (12 pts) Classify each of the following views of a cube as orthographic or perspective and oblique or non-oblique. Any oblique views will have clear indications that they are oblique you don t need to second-guess tiny details. (a) (b) (c) (d) (e) (a) perspective oblique (b) orthographic non-oblique (c) perspective oblique (d) orthographic oblique (e) perspective non-oblique