CS 130 Final. Fall 2015

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

CS 130 Exam I. Fall 2015

CS 130 Exam I. Fall 2015

Institutionen för systemteknik

Pipeline Operations. CS 4620 Lecture 10

Lets assume each object has a defined colour. Hence our illumination model is looks unrealistic.

CS 464 Review. Review of Computer Graphics for Final Exam

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

Introduction to Visualization and Computer Graphics

CHAPTER 1 Graphics Systems and Models 3

Pipeline Operations. CS 4620 Lecture 14

3D Rasterization II COS 426

CS 4620 Midterm, March 21, 2017

Topics and things to know about them:

Module Contact: Dr Stephen Laycock, CMP Copyright of the University of East Anglia Version 1

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.

Introduction Rasterization Z-buffering Shading. Graphics 2012/2013, 4th quarter. Lecture 09: graphics pipeline (rasterization and shading)


2D rendering takes a photo of the 2D scene with a virtual camera that selects an axis aligned rectangle from the scene. The photograph is placed into

TDA362/DIT223 Computer Graphics EXAM (Same exam for both CTH- and GU students)

Advanced Lighting Techniques Due: Monday November 2 at 10pm

Spring 2012 Final. CS184 - Foundations of Computer Graphics. University of California at Berkeley

Midterm Exam! CS 184: Foundations of Computer Graphics! page 1 of 13!

CS2401 COMPUTER GRAPHICS ANNA UNIV QUESTION BANK

Texture. Texture Mapping. Texture Mapping. CS 475 / CS 675 Computer Graphics. Lecture 11 : Texture

CS 475 / CS 675 Computer Graphics. Lecture 11 : Texture

The University of Calgary

CS5620 Intro to Computer Graphics

Illumination Models & Shading

CS559 Computer Graphics Fall 2015

CS230 : Computer Graphics Lecture 4. Tamar Shinar Computer Science & Engineering UC Riverside

Rasterization Overview

CS4620/5620: Lecture 14 Pipeline

Interactive Computer Graphics A TOP-DOWN APPROACH WITH SHADER-BASED OPENGL

Rasterizing triangles

Graphics Pipeline 2D Geometric Transformations

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

CS 381 Computer Graphics, Fall 2008 Midterm Exam Solutions. The Midterm Exam was given in class on Thursday, October 23, 2008.

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.

CS 4620 Program 3: Pipeline

Computer Graphics Coursework 1

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

CS 354R: Computer Game Technology

Rasterization. CS 4620 Lecture Kavita Bala w/ prior instructor Steve Marschner. Cornell CS4620 Fall 2015 Lecture 16

Computergrafik. Matthias Zwicker. Herbst 2010

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY CS2401 COMPUTER GRAPHICS QUESTION BANK

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.

Surface Graphics. 200 polys 1,000 polys 15,000 polys. an empty foot. - a mesh of spline patches:

OXFORD ENGINEERING COLLEGE (NAAC Accredited with B Grade) DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING LIST OF QUESTIONS

The graphics pipeline. Pipeline and Rasterization. Primitives. Pipeline

Chapter 2 A top-down approach - How to make shaded images?

Introduction to Computer Graphics 7. Shading

Computer Graphics I Lecture 11

Illumination and Shading

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

The Traditional Graphics Pipeline

Rendering. Illumination Model. Wireframe rendering simple, ambiguous Color filling flat without any 3D information

Course Title: Computer Graphics Course no: CSC209

CS Illumination and Shading. Slide 1

Pipeline and Rasterization. COMP770 Fall 2011

TDA361/DIT220 Computer Graphics, January 15 th 2016

CMSC 435/634: Introduction to Graphics

graphics pipeline computer graphics graphics pipeline 2009 fabio pellacini 1

Graphics for VEs. Ruth Aylett

Graphics Hardware and Display Devices

graphics pipeline computer graphics graphics pipeline 2009 fabio pellacini 1

QUESTION BANK 10CS65 : COMPUTER GRAPHICS AND VISUALIZATION

The Traditional Graphics Pipeline

Homework 3: Programmable Shaders

CS 498 VR. Lecture 19-4/9/18. go.illinois.edu/vrlect19

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

CSE 167: Introduction to Computer Graphics Lecture #6: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2014

Mach band effect. The Mach band effect increases the visual unpleasant representation of curved surface using flat shading.

Computer Graphics. Shadows

The Traditional Graphics Pipeline

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

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

Texture Mapping. Texture (images) lecture 16. Texture mapping Aliasing (and anti-aliasing) Adding texture improves realism.

3D Programming. 3D Programming Concepts. Outline. 3D Concepts. 3D Concepts -- Coordinate Systems. 3D Concepts Displaying 3D Models

lecture 16 Texture mapping Aliasing (and anti-aliasing)

Rasterization. CS4620 Lecture 13

COMP3421. Vector geometry, Clipping

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

CS 4731: Computer Graphics Lecture 21: Raster Graphics: Drawing Lines. Emmanuel Agu

CSE 167: Introduction to Computer Graphics Lecture #4: Vertex Transformation

- Location: Annenberg Text: Mostly Self-Contained on course Web pages. - Al Barr

CS Exam 1 Review Problems Fall 2017

Adaptive Point Cloud Rendering

Deferred Rendering Due: Wednesday November 15 at 10pm

Midterm Exam! CS 184: Foundations of Computer Graphics! page 1 of 14!

Computergrafik. Matthias Zwicker Universität Bern Herbst 2016

0. Introduction: What is Computer Graphics? 1. Basics of scan conversion (line drawing) 2. Representing 2D curves

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Today. Texture mapping in OpenGL. Texture mapping. Basic shaders for texturing. Today. Computergrafik

Rendering approaches. 1.image-oriented. 2.object-oriented. foreach pixel... 3D rendering pipeline. foreach object...

- Rasterization. Geometry. Scan Conversion. Rasterization

Line Drawing. Introduction to Computer Graphics Torsten Möller / Mike Phillips. Machiraju/Zhang/Möller

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

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

Game Architecture. 2/19/16: Rasterization

Transcription:

CS 130 Final Fall 2015 Name Student ID Signature You may not ask any questions during the test. If you believe that there is something wrong with a question, write down what you think the question is trying to ask and answer that. 1

Question Points Score True/False 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 Multiple Choice 21 4 22 4 23 4 24 4 25 4 26 4 27 4 28 4 29 4 30 4 31 4 32 4 33 4 34 4 35 4 Written 36 10 37 10 38 10 39 10 40 10 Total 150 2

True/False For each question, indicate whether the statement is true or false by circling T or F, respectively. 1. (T/ F ) Rasterization occurs before vertex transformation in the graphics pipeline. 2. (T/ F ) Clipping is performed after perspective division in the graphics pipeline. 3. ( T /F) Given any matrices M 1, M 2, and M 3, (M 1 M 2 )M 3 = M 1 (M 2 M 3 ). 4. (T/ F ) Given any matrices M 1, M 2, and M 3, M 3 M 2 M 1 = M 1 M 2 M 3. 5. (T/ F ) If monitor gamma is increased, the image will be brighter. 6. (T/ F ) Using an alpha channel allows you to represent more unique colors. 7. (T/ F ) The OpenGL pipeline is primarily designed to implement global illumination. 8. ( T /F) OpenGL supports z-buffering. 9. ( T /F) The perspective transformation is nonlinear in z. 10. ( T /F) The viewport transformation maps from normalized device coordinates to screen space. 11. ( T /F) This matrix is a rigid body transformation cos θ sin θ 0 2 sin θ cos θ 0 1 0 0 1 0 0 0 0 1 12. (T/ F ) This matrix reflects about the x-axis. 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 13. (T/ F ) We can translate the vector by multiplying it by the matrix 3 2 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 0 0 1 14. ( T /F) Diffuse shading gives us information about the geometry of the object. 3

15. ( T /F) In the Phong reflection model, using ambient lighting alone makes the object appear flat. 16. ( T /F) Lambertian shading is not affected by a change in the viewing direction. 17. ( T /F) The Phong reflectance model requires more computation than the Lambertian reflectance model. 18. (T/ F ) Gouraud shading requires more computation than Phong shading. 19. (T/ F ) You can sample a 3D-solid texture using 2 texture coordinates. 20. ( T /F) The OpenGL graphics pipeline allows for multiple textures to be bound to the same object. Multiple Choice For each question, circle exactly one of (a)-(e), unless otherwise stated. 21. The midpoint (or Bresenham) algorithm for rasterizing lines is optimized relative to the DDA algorithm in that it I. avoids round operations. II. III. (a) II only is incremental. (b) I and II only uses only integer arithmetic. (c) I and III only (d) II and III only (e) I, II and III 22. Which statements about the z-buffer approach to rendering are true? (a) I. selects which fragment to draw based on its depth. II. III. I only (b) I and II only orders triangles from back to front. orders triangles based on the average z-values of their vertices (c) I and III only (d) I, II and III (e) None 4

23. Consider a point with barycentric coordinates ( 1, 1, 1) relative to a given (non-degenerate) triangle. Which statement is true? (a) The point is definitely inside the triangle. (b) The point is definitely outside the triangle. (c) The point is either inside or outside the triangle but there isn t enough information to tell. (d) Those are not valid barycentric coordinates. (e) The point lies on the edge of the triangle. 24. Which of the following statements about rotations are true? I. The vector component of the quaternion encodes the rotation axis. II. III. (a) I only (b) II only Gimbal locks remove a degree of freedom of rotation. Interpolation using Euler angles does not always yield geodesic (shortest) paths. (c) I and III only (d) II and III only (e) I, II and III 25. Which of the following statements about rotations are true? I. Any rotation in 3D space can be described using an angle and an axis. II. The inverse of a rotation matrix R is R T. III. This rotation matrix will rotate the object pictured about its center. (a) II only (b) I and II only (c) I and III only (d) II and III only (e) I, II and III cos θ 0 sin θ 0 0 1 0 0 sin θ 0 cos θ 0 0 0 0 1 5

26. Which of the following statements about texture mapping are true? I. Bump mapping perturbs vertices. II. III. (a) I only (b) II only (c) Bump mapping can be used to give the object a bumpy appearance in both the interior polygons and its silhouette. Shadow mapping can be used to add shadows in a z-buffer based rendering approach. III only (d) I and II only (e) II and III only 27. Which of the following statements about texture mapping are true? I. Texture coordinates inside a triangle are interpolated from the texture coordinate of its vertices. II. III. (a) I only (b) I and II only (c) Mipmapping with n levels requires n times the amount of memory Point sampling a texture can introduce aliasing artifacts. I and III only (d) II and III only (e) I, II and III 28. Using the Phong reflectance model, the strength of the specular highlight is determined by the angle between (a) the view vector and the normal vector. (b) the light vector and the normal vector. (c) the light vector and the reflected vector. (d) the reflected vector and the view vector. (e) none of the above. 29. Minification occurs when (a) multiple texels cover a single pixel. (b) a single texel covers multiple pixels. (c) the area of the texture being mapped is less than half the area of the surface it is being mapped to. (d) texture image resolution is not high enough. (e) a small picture is applied to a large object. 6

30. In the Phong reflectance model, if only lighting is used, a flat surface illuminated with a directional light source will have a uniform color intensity across the surface. (a) diffuse (b) specular (c) ambient 31. Compared to flat shading, improves the appearance of the objects silhouette. (a) Gouraud shading (b) Phong shading (c) none of the above 32. Texture filtering (a) can reduce aliasing artifacts in texture mapping. (b) is used to reduce the lighting calculations done on a fragment. (c) is cheaper than point sampling. (d) adds detail to a texture. (e) none of the above. 33. How many degrees of freedom does a rigid body have in two dimensions? (a) 1 (b) 2 (c) 3 (d) 4 (e) 6 34. What is true the two vectors depicted below? (a) Their cross product is zero because they in the same plane. (b) Their dot product is zero. (c) Their dot product is positive. (d) Their dot product is negative. (e) The dot product between them is undefined. 35. What is the correct order of operations of the OpenGL graphics pipeline? (a) projection transformation, modelview transformation, divide by w, viewport transform (b) modelview transformation, divide by w, projection transformation, viewport transform (c) modelview transformation, viewport transform, divide by w, projection transformation (d) modelview transformation, projection transformation, divide by w, viewport transform 7

Written Response 36. Homogeneous Transformations (a) Write a matrix to transform a point by first rotating it π 2 translating it by (1, 3, 0). radians about the y-axis, and then (b) Write down a vector pointing in direction (1, 1, 1) in homogeneous coordinates and apply the transformation matrix from part (a) to it. (c) Explain the difference between how the transformation matrix would transform the point and how it transformed the vector. 8

37. Implicit and Parametric Equations (a) Give an implicit equation for a 2D circle of radius R centered at (x 0, y 0 ). (b) Give a parametric equation for the same circle as in part (a), i.e. complete the following equations: x(t) =? y(t) =? (c) Given two points A and B, write down an equation for the line segment between them paramaterized by t [0, 1] (It should linearly interpolate between A and B such that f(0) = A and f(1) = B). (d) Give an implicit equation of a square centered at the origin with side length 2S. equation can be piecewise. Hint: your 9

38. Camera Transformations. A camera has position e and is looking in direction l at an image of width w and height h, oriented perpendicular to l. If image is d units along l, and the width and height unit vectors are u and v, respectively, what are the world space coordinates of the four corners of the image? 10

39. Consider a reflectance model equation I = C 1 max(0, L N) + C 2 max(0, R V) s where N, is the surface normal, L is the normalized light vector (the vector pointing from the point being illuminated to the light source), V, is the normalized view vector (the vector pointing from the point being illuminated to the camera), and R, is the normalized reflection of L across N. C 1, and C 2 are constant scalars. (a) If the value C 1 was set to 1.0 and the value C 2 was set to 0.0, what kind of materials could be represented by those parameters and why? (b) If the value C 1 was set to 0.1, the value C 2 was set to 1.0, and s was set to 10.0, what kind of materials could be represented by those parameters and why? (c) How does s affect the illumination of the object? What would increasing its value do? What would decreasing its value do? For what materials would you model using a high s value and for what materials would you want a low s value? (d) Suppose the equation was changed to I = C 1 L N + C 2 R V s. What effect would that have on the illumination of the object? 11

40. Textures. (a) Given a texture of 256 256 texels, explain how you might generate a mipmap for the texture. (b) For each image below, indicate whether (1) mipmapping was used, and (2) bilinear filtering was used. 12