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!

Similar documents
U.C. Berkeley, EECS, Computer Science TAKE HOME EXAM. Your Class Computer Account: Your student ID #:

U.C. Berkeley, EECS, Computer Science FINAL EXAM. Your Class Computer Account: Row: Seat: Your student ID #:

file:///c /Documents%20and%20Settings/Jason%20Raftery/My%20Doc...e%20184%20-%20Spring%201998%20-%20Sequin%20-%20Midterm%202.htm

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

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

CS 130 Final. Fall 2015

Interactive Real-Time Raycasting

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

Graphics Hardware and Display Devices

QUESTION BANK 10CS65 : COMPUTER GRAPHICS AND VISUALIZATION

Raytracing CS148 AS3. Due :59pm PDT

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

The University of Calgary

Topics and things to know about them:

Institutionen för systemteknik

CS602 MCQ,s for midterm paper with reference solved by Shahid

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 130 Exam I. Fall 2015

CS 130 Exam I. Fall 2015

Principles of Computer Graphics. Lecture 3 1

1. (10 pts) Order the following three images by how much memory they occupy:

Cs602-computer graphics MCQS MIDTERM EXAMINATION SOLVED BY ~ LIBRIANSMINE ~

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.

The Traditional Graphics Pipeline

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

CS 4620 Midterm, March 21, 2017

CHAPTER 1 Graphics Systems and Models 3

Lighting. Figure 10.1

Roll No. :... Invigilator's Signature : GRAPHICS AND MULTIMEDIA. Time Allotted : 3 Hours Full Marks : 70

TDA361/DIT220 Computer Graphics, January 15 th 2016

The Traditional Graphics Pipeline

Syllabus CS476 COMPUTER GRAPHICS Fall 2009

SAZ4C COMPUTER GRAPHICS. Unit : 1-5. SAZ4C Computer Graphics

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

Computer Graphics I Lecture 11

CS130 : Computer Graphics Lecture 8: Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

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

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

Computer Science Foundations of Computer Graphics

Homework #2. Hidden Surfaces, Projections, Shading and Texture, Ray Tracing, and Parametric Curves

CS602- Computer Graphics Solved MCQS From Midterm Papers. MIDTERM EXAMINATION Spring 2013 CS602- Computer Graphics

The Traditional Graphics Pipeline

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

Lahore University of Management Sciences. CS 452 Computer Graphics

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

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

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY CS2401 COMPUTER GRAPHICS QUESTION BANK

R asterisation. Part I: Simple Lines. Affine transformation. Transform Render. Rasterisation Line Rasterisation 2/16

CS 4620 Midterm 1. Tuesday 22 October minutes

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

Assignment 2 Ray Tracing

S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T

Comp 410/510 Computer Graphics. Spring Shading

Virtual Reality for Human Computer Interaction

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

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

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Computer Graphics

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

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

Topic 12: Texture Mapping. Motivation Sources of texture Texture coordinates Bump mapping, mip-mapping & env mapping

Lahore University of Management Sciences. CS 452 Computer Graphics

Shading. Brian Curless CSE 557 Autumn 2017

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

Topic 11: Texture Mapping 11/13/2017. Texture sources: Solid textures. Texture sources: Synthesized

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

End-Term Examination

Introduction to Visualization and Computer Graphics

Points and lines, Line drawing algorithms. Circle generating algorithms, Midpoint circle Parallel version of these algorithms

Computer Graphics & Image Processing: Exercises

Topic 11: Texture Mapping 10/21/2015. Photographs. Solid textures. Procedural

Homework #2. Shading, Ray Tracing, and Texture Mapping

Course Title: Computer Graphics Course no: CSC209

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

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

Computer Graphics and GPGPU Programming

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Shading I Computer Graphics I, Fall 2008

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

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

Computer Graphics. Apurva A. Desai

CMSC 435/634: Introduction to Graphics

Lecture 15: Shading-I. CITS3003 Graphics & Animation

COMPUTER GRAPHICS, MULTIMEDIA AND ANIMATION, Second Edition (with CD-ROM) Malay K. Pakhira

Shading. Reading. Pinhole camera. Basic 3D graphics. Brian Curless CSE 557 Fall Required: Shirley, Chapter 10

Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1)

Lighting and Shading. Slides: Tamar Shinar, Victor Zordon

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

EF432. Introduction to spagetti and meatballs

Final Exam CS 184: Foundations of Computer Graphics! page 1 of 12!

CS2401 COMPUTER GRAPHICS ANNA UNIV QUESTION BANK

CS184 : Foundations of Computer Graphics Professor David Forsyth Final Examination

CS 184, Fall 1996 Midterm #1 Professor: unknown

1 Attempt any three of the following: 1 5 a. What is Computer Graphics? How image is to be display on Video Display Device?

EF432. Introduction to spagetti and meatballs

CS 464 Review. Review of Computer Graphics for Final Exam

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

CMSC 435/634: Introduction to Graphics

Topic 0. Introduction: What Is Computer Graphics? CSC 418/2504: Computer Graphics EF432. Today s Topics. What is Computer Graphics?

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

Transcription:

Page 1 of 7 U.C. Berkeley, EECS, Computer Science CS 184 - Spring 2011 COMPUTER GRAPHICS Prof. C. H. Séquin TAKE HOME EXAM Your Name: Your Class Computer Account: Your student ID #: DO NOT OPEN THIS INSIDE SODA HALL -- WAIT UNTIL YOU ARE ALONE! INSTRUCTIONS ( Read carefully! ) YOU MAY USE LECTURE NOTES, ANY TEXT BOOK, PAPERS ON THE INTERNET, -- BUT NOT THE HELP OF ANY OTHER HUMAN BEING -- TO DO THIS QUIZ. On the in-class exams, you will be allowed ONE double-sided sheet of size 8.5 by 11 inches of your own personal notes to assist your memory. It might be worthwhile to start preparing and test-driving such a sheet now. It should take you about 2 hours (1pt./min.) to complete this Exam; but this does not include any study time you might need to catch up on various topics. YOU MUST DO THIS WORK ENTIRELY BY YOURSELF! COLLABORATION IS CONSIDERED CHEATING. There must be no discussion of any of the problems with anybody until after the deadline. DO ALL WORK TO BE GRADED ON THESE SHEETS OR THEIR BACKFACES. If any question on the exam appears unclear to you, write down what the difficulty was and what assumptions you made trying to solve the problem the way you understood it. I HAVE UNDERSTOOD THESE RULES AND WILL OBEY THEM: Your Signature: DO NOT OPEN THIS UNTIL YOU HAVE SIGNED ABOVE AND ARE ALONE! HAND IN THE EXAM TO PROF. SEQUIN BEFORE 9:40am, Wednesday, Feb. 16, 2011.

Page 2 of 7 This Quiz serves as a study guide to help you ascertain that you are absorbing the important material covered in this course and that you understand how to apply it to novel situations. This is also good training for the Midterm and the Final Exams -- except that there will then be the added pressure of limited time. Problem #1 -- Circle the correct answer: (6 points) TRUE FALSE In 2D, translations of homogeneous coordinate triples are described by asymmetrical 3x3 matrices. TRUE FALSE If points P 0, Q 0, R 0 are carried into points P 1, Q 1, R 1, respectively, by a transformation described by an orthogonal matrix, then the angle P 0 Q 0 R 0 is equal to the angle P 1 Q 1 R 1. TRUE FALSE In 2-space, translation in x and translation in y are commutative. TRUE FALSE The bounding-box calculation in the rendering pipeline starts at the root node of the scene hierarchy. TRUE FALSE A sphere with a surface that acts as a Lambertian diffuse reflector will look to an observer like a uniformly lit flat circular disk when illuminated with a uniform parallel illumination coming from the direction of the observer. Problem #2 -- Circle the correct answers: (8 points) (A) Circle all other 2D operations with which a rotation around the z-axis does commute: Translation in x; Mirroring in y; Uniform scaling; Non-uniform scaling; Rotation around z. (B) In what direction does the {+x}-axis point after a +90 degree rotation around the y-axis (in a right-handed coordinate system)? { x} {+x} { y} {+y} { z} {+z} {other} (C) Circle the Calligraphic Display Devices in the following list: Pen Plotter Ink-jet Printer Cathode Ray Tube Plasma Panel Projector in Laser-Lightshow (D) Which of the following homogeneous 2D points lies farthest from the origin? (Circle one). P(7, -8, 1) P(2, -2, 0.2) P(-30, 21, 3) P(56, 72, 8) Problem #3: History (3 points) What is the name of the Father of Interactive Computer Graphics?

Page 3 of 7 Problem #4: Rasterization (9 points) You want to draw (approximate) a roughly one-pixel wide line (without using anti-aliasing techniques) on a raster device with square pixels. The line starts at the center of pixel [0, 0] and ends at the pixel [H, V], where H is in the range [50,70] and V is in the range [-100,-80]. How many pixels roughly (i.e., +/-5 pixels) will be turned on, expressed in variables H and V, if we use each of the following algorithms. Look at the relevant section of the lecture notes, textbook (and possibly the Internet, if you don t have a textbook). a) Sampling the area of the perfect 1-pixel-wide band along the line will turn on pixels. b) Turning on all pixels touched (crossed) by the ideal thin line will turn on pixels. c) The Bresenham or Digital Differential Analyzer (DDA) algorithm will turn on pixels. Problem #5: CRT Display (8 points) You have a raster graphics color display that has 9-bit DAC s (digital to analog converters) at the three guns of the display CRT. The display size is 512 by 256 pixels. How many possible colors can you generate on this display? How many different colors can you show simultaneously on this screen? Now we want to introduce a color map so that we can display only 16384 different colors simultaneously; how many digital input bits and how many digital output bits should this look-up table have? # of input bits: # of output bits: Problem #6: Linear Transformations (5 points) Prove (in a mathematically clean way) that for the transformations discussed so far in this course, we can transform all the points of a straight line segment by transforming its endpoints and then constructing a new straight line segment between the two transformed endpoints. Problem #7: Matrix Multiplication (5 points) Write down the homogeneous 2D transformation matrix for the following (multiplied out) transformation: translate (3, 4) followed by a rotation around z of 30 degrees:

Page 4 of 7 Problem #8: Intersection Test (6 points) Suppose you want to find the intersection between a parabola and a plane in 3D space. The parabola is defined parametrically by the expression e + d*t + f*t 2, with e,d,f as vectors and t as the free parameter. The plane is defined implicitly by all points p satisfying (p-a) n = 0, where a and n are vectors. A) Write an expression for t that you would evaluate to solve for the intersection. B) In what cases are there NO solutions? Write a conditional statement that is TRUE in these cases, and false otherwise. Problem #9: AABB (4 points) A 2D scene consists of just two circles: one around point [-10,10] with radius 17, and the other around point [20,20] with radius 26. What are the four coordinate pairs for the four corners of the axis-aligned bounding box of this scene? P1= (, ), P2= (, ), P3= (, ), P4= (, ). Problem #10: Hierarchical Bounding Boxes (8 points) Sketch all the bounding boxes (as in assignment #3) for frame t=3 for the following scene: Remember: {expressions in curly parens} are time-dependent; t denotes the frame number. (Include fish "fish.obj" ) ## this fish has this AABB: xmin=0; xmax=4; ymin=0; ymax=2. (G schoola (I inst1 fish (S 0.5 0.5 ) (T 10 5 ) ) ## small fish (I inst2 fish (S 2.0 2.0 ) ) ## large fish ) (G myscene (I i1 schoola (R {t*15 } ) ) (I i2 schoola (T {t*2}{t*2} ) ) ) (Render myscene )

Page 5 of 7 Problem #11: Inside/outside Test (6 pts.) Paint the inside areas according to the POSITIVE WINDING NUMBER MODEL. Problem # 12: Polygon Clipping ( 8 points) Show the polygon contour(s) including the spurious double segments on the Window frame that will be output from the Sutherland-Hodgman polygon clipping algorithm for the polygons shown below. Assume that the clipping sequence is : a, b, c, d. Do your draft on the left, and show the final result in the right figure by strongly tracing out all output line segments.

Page 6 of 7 Problem #13: Polygon Rasterization (10 points) Using the paradigm discussed in class and used on Assignment #8 (lower left pixel-corner sampling), rasterize the polygon below, i.e. paint in all the pixels that would get turned on in a scanline based fill algorithm. (Apparent coincidences are meant to be exact coincidences). Problem #14: Vector distributions (4 pts.) Which of the four directional vector diagrams below describes most appropriately the photon escape probability from a Lambert surface? A B C D Problem #15: Local Illumination (6 points) Draw all the vectors used in the Phong reflectance model for calculating the color observed at point P, when that surface area is illuminated with ambient light A, directional light D, and spot light S. Problem #16: Reflection (4 points) A mirrored cube of side-length 2 is positioned centered and axis-aligned at the origin of the world coordinate system. A laser beam, originating from point (10, 4, 2) shines towards the origin, in the direction ( 5, 2, 1). In what direction does the beam point after being reflected off the cube?

Page 7 of 7 Problem #17: Brightness Profile (10 pts.) Sketch observed brightness B, as seen from camera eye at (0, 10, 0), along real face F (Phong model, K amb = K diff = K spec = 0.5, N phon g = 50 ), illuminated by directional light D and spotlight S. Directional light D is of intensity 1 and shines from direction ( -1000, 1000, 0); Spotlight S is of intensity 10 and shines from point (10, 10, 0) towards (0, 0, 0); its angular falloff is 4. Problem #18: Apparent Brightness (10 points) Given a yellowish (color = (1.0 1.0 0.5)) directional light source sending 5 trillion photons per second per mm 2 shining at an angle of 40 degrees (measured against the normal vector) on to a cyan-colored lacquered surface with those specifications: color = (0.2 1.0 0.7), k a = k d = 0.3, k s = 0.7, k sp = 30, k sm = 0.6; the surface is in an environment of greenish ambient light: color = (0.5 1.0 0.5), I = 0.4*10 12 photons / s / mm 2. Calculate the intensities of the (r,g,b) components sent towards an eye located in direction of the ideally reflected rays. I eye, r = ; I eye, g = ; I eye, b =. Calculations below and on the back