Exercise Max. Points Total 90

Similar documents
Exercise Max. Points Total 80

CSE 167: Lecture #8: Lighting. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Total 80

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

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

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

CSE 167: Lecture #4: Vertex Transformation. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

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

Problem Max. Points Total 80

CSE 167: Lecture #8: GLSL. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

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

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

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

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

CSE 167: Introduction to Computer Graphics. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013

CS559 Computer Graphics Fall 2015

CS 130 Final. Fall 2015

Introduction to Computer Graphics. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

CSE 167: Introduction to Computer Graphics Lecture #10: View Frustum Culling

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

Transformation Pipeline

3D GRAPHICS. design. animate. render

Graphics Programming

Computer Graphics I. Midterm Examination. October 23, This is a closed-book exam; only one double-sided sheet of notes is permitted.

CSE 167: Lecture #5: Rasterization. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

To Do. Computer Graphics (Fall 2008) Course Outline. Course Outline. Methodology for Lecture. Demo: Surreal (HW 3)

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

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

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

Scene Graphs. CS4620/5620: Lecture 7. Announcements. HW 1 out. PA 1 will be out on Wed

3D Viewing Episode 2

CSE 167: Lecture 11: Textures 2. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

CSE 167: Introduction to Computer Graphics Lecture #4: Coordinate Systems

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

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);

Computer Graphics. Chapter 10 Three-Dimensional Viewing

CSE 167: Introduction to Computer Graphics Lecture #11: Visibility Culling

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

CS354 Computer Graphics Viewing and Modeling

CSE 167: Lecture #17: Procedural Modeling. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Institutionen för systemteknik

Shadow Algorithms. CSE 781 Winter Han-Wei Shen

Lecture 4: Transformations and Matrices. CSE Computer Graphics (Fall 2010)

CS 4620 Midterm 1. Tuesday 22 October minutes

CS 4204 Computer Graphics

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

CS 130 Exam I. Fall 2015

OpenGL. Toolkits.

Lecture 3. Understanding of OPenGL programming

Translation. 3D Transformations. Rotation about z axis. Scaling. CS 4620 Lecture 8. 3 Cornell CS4620 Fall 2009!Lecture 8

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

Programming with OpenGL Part 3: Three Dimensions

SHADER PROGRAMMING. Based on Jian Huang s lecture on Shader Programming

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

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

CSE 167: Introduction to Computer Graphics Lecture #8: Scene Graph. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2015

QUESTION 1 [10] 2 COS340-A October/November 2009

Tentti/Exam Midterm 2/Välikoe 2, December

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

Illumination and Shading

Prof. Feng Liu. Fall /19/2016

Modeling Objects by Polygonal Approximations. Linear and Affine Transformations (Maps)

Linear transformations Affine transformations Transformations in 3D. Graphics 2009/2010, period 1. Lecture 5: linear and affine transformations

Chapter 3: Modeling Transformation

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

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

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

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

CSE 167: Lecture #15: Procedural Modeling. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

Drawing and Coordinate Systems

PROFESSIONAL. WebGL Programming DEVELOPING 3D GRAPHICS FOR THE WEB. Andreas Anyuru WILEY. John Wiley & Sons, Ltd.

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

CSC 470 Computer Graphics

CSCE 441 Computer Graphics Fall 2018

Computer Graphics: Programming, Problem Solving, and Visual Communication

Computer Graphics I Lecture 11

Drawing and Coordinate Systems

MA 111 Review for Exam 4

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

CSE 167: Introduction to Computer Graphics Lecture #2: Coordinate Transformations

CHAPTER 1 Graphics Systems and Models 3

CSE 167: Introduction to Computer Graphics Lecture 12: Bézier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013

Last week. Machiraju/Zhang/Möller/Fuhrmann

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

Viewing and Projection

CS 4620 Midterm, March 21, 2017

2D Object Definition (1/3)

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:

Duc Nguyen CSE 420 Computer Graphics 10/10/2018 Homework 1

CS451Real-time Rendering Pipeline

COS340A Assignment 1 I Pillemer Student# March 25 th 2007 p1/15

Getting Started. Overview (1): Getting Started (1): Getting Started (2): Getting Started (3): COSC 4431/5331 Computer Graphics.

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

Graphics Hardware and OpenGL

Visualizing Molecular Dynamics

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

CSE 167: Introduction to Computer Graphics Lecture #3: Coordinate Systems

CT5510: Computer Graphics. Transformation BOCHANG MOON

CSC Graphics Programming. Budditha Hettige Department of Statistics and Computer Science

Surface shading: lights and rasterization. Computer Graphics CSE 167 Lecture 6

Transcription:

University of California San Diego Department of Computer Science CSE167: Introduction to Computer Graphics Fall Quarter 2014 Midterm Examination #1 Thursday, October 30 th, 2014 Instructor: Dr. Jürgen P. Schulze Name: Your answers must include all steps of your derivations, or points will be deducted. This is closed book exam. You may not use electronic devices, notes, textbooks or other written materials. Good luck! Do not write below this line Exercise Max. Points 1 12 2 9 3 10 4 9 5 8 6 10 7 10 8 12 9 10 Total 90

2 1. Vector Properties (12 Points) a) Given two vectors a and b in three-dimensional space, how do you calculate the angle between these vectors? (4 points) b) If the vectors a and b were two sides of a triangle, how would you find the area of the triangle (employing the cross product)? (4 points) c) How do two vectors c and d in 3D space have to be oriented with respect to one another to: maximize the dot product? (2 points) minimize the absolute value of the dot product ( )? (2 points)

3 2. Coordinate Systems (9 Points) a) Given two non-parallel three-dimensional vectors a and b, come up with two new vectors which form a Cartesian, right-handed coordinate system such that vector b forms the positive x-axis in the newly created coordinate system (answer in terms of a and b). (7 points) b) Why is it important that the vectors from a) be non-parallel? (2 points)

4 3. Affine Transformations (10 Points) Find the 3x3 homogeneous matrix that transforms the 2D vertices of object A to the corresponding vertices of object B in the figure below. Express the matrix as a composition of elementary transformations such as translation, scaling, or rotation. Note that for rotations which are multiples of 90 degrees, the sin and cos terms in the rotation matrix simplify to 1, -1, and 0, depending on the angle. If you cannot remember what the rotation matrix you need looks like, try to derive it based on this knowledge.

5 4. Vertex Transformation (9 Points) Fill in the Complete Vertex Transformation flow chart below (between the dashed lines) with the correct names for matrices (square boxes) and coordinate systems (flat boxes). You can save time by drawing arrows for where the respective elements (left and right of the dashed lines) go.

6 5. OpenGL Pipeline (8 Points) Put the following stages of the OpenGL pipeline in the correct order by copying them into their respective boxes below: Rasterization, Modeling and Viewing Transformation, Projection, Shading.

7 6. OpenGL Commands (10 Points) a) What does this command do: glutdisplayfunc(display) (2 points) b) What does this command do: glmatrixmode(gl_projection) (2 points) c) Consider this sequence of calls: glcolor3f(1,1,1); glcolor3f(0,1,0); glvertex3f(1,1,1); glvertex3f(2,2,2); What color is the vertex (1,1,1)? (2 points) What color is the vertex (2,2,2)? (2 points) d) Which one of the following code fragments would you be more likely to see? Why? (2 points) This? Or this? glmatrixmode(gl_modelview); glloadidentity(); glmatrixmode(gl_projection); glloadidentity(); glortho(2.0, 8.0, 0.0, 8.0, -0.5, 2.5); glmatrixmode(gl_projection); glloadidentity(); glmatrixmode(gl_modelview); glloadidentity(); glortho(0.0, 8.0, 0.0, 8.0, -0.5, 2.5);

8 7. Shading (10 Points) a) What does BRDF stand for? Which two directions are input to the BRDF? (3 points) b) What are the three components of OpenGL s local illumination model? Which of the three represent light reflections off of a sheet of paper? (4 points) c) For mirror reflections: given incident vector L and normal vector N, give a relation for finding reflection vector R in terms of L and N. Is the angle of reflection equal to the angle of incidence? (3 points)

9 8. Lights (12 Points) a) Name two differences between directional lights and point lights. (4 points) b) Which two additional parameters do OpenGL spot lights have compared to point lights? (4 points) c) How do the three distance attenuation options for point lights in OpenGL differ from one another? Why are there three different options? (4 points)

10 9. Texture mapping (10 Points) Describe all the steps needed to create and apply a texture map in OpenGL. The exact name/syntax of function calls is not as important as the concepts.