COMPUTER GRAPHICS - MIDTERM 1

Similar documents
Topics and things to know about them:

CS 130 Final. Fall 2015

Institutionen för systemteknik

Pipeline Operations. CS 4620 Lecture 10

Introduction Ray tracing basics Advanced topics (shading) Advanced topics (geometry) Graphics 2010/2011, 4th quarter. Lecture 11: Ray tracing

b 1. If he flips the b over to the left, what new letter is formed? Draw a picture to the right.

CS 130 Exam I. Fall 2015

CPSC / Texture Mapping

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.

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.

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

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

Deferred Rendering Due: Wednesday November 15 at 10pm

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

CS559 Computer Graphics Fall 2015

CEng 477 Introduction to Computer Graphics Fall 2007

Solution Notes. COMP 151: Terms Test

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

CS 4620 Midterm, March 21, 2017

Pipeline Operations. CS 4620 Lecture 14

Hidden Surface Removal

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

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6. ) is graphed below:

Introduction to 3D Concepts

CS 130 Exam I. Fall 2015

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

CS5620 Intro to Computer Graphics

CPSC GLOBAL ILLUMINATION

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

Graphics for VEs. Ruth Aylett

Answers to practice questions for Midterm 1

Photorealism: Ray Tracing

Illumination Models & Shading

CS 464 Review. Review of Computer Graphics for Final Exam

Specifying Complex Scenes

Computer Graphics I Lecture 11

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

Mathematics 308 Geometry. Chapter 9. Drawing three dimensional objects

Graphics for VEs. Ruth Aylett

EXAMINATIONS 2017 TRIMESTER 2

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

CSE528 Computer Graphics: Theory, Algorithms, and Applications

The University of Calgary

Math 9: Chapter Review Assignment

SPACE - A Manifold Exploration Program

Analytic Spherical Geometry:

From Vertices to Fragments: Rasterization. Reading Assignment: Chapter 7. Special memory where pixel colors are stored.

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.

Complex Features on a Surface. CITS4241 Visualisation Lectures 22 & 23. Texture mapping techniques. Texture mapping techniques

Announcement. Lighting and Photometric Stereo. Computer Vision I. Surface Reflectance Models. Lambertian (Diffuse) Surface.

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6

Math 11 Fall 2016 Section 1 Monday, October 17, 2016

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

Surface Rendering. Surface Rendering

Shading Techniques Denbigh Starkey

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

UNIT 11 VOLUME AND THE PYTHAGOREAN THEOREM

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

Virtual Environments

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

Complex Shading Algorithms

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

Objectives. Shading II. Distance Terms. The Phong Reflection Model

1.5 Equations of Lines and Planes in 3-D

MATH 104 First Midterm Exam - Fall (d) A solid has as its base the region in the xy-plane the region between the curve y = 1 x2

Rendering: Reality. Eye acts as pinhole camera. Photons from light hit objects

d f(g(t), h(t)) = x dt + f ( y dt = 0. Notice that we can rewrite the relationship on the left hand side of the equality using the dot product: ( f

Assignment 2 Ray Tracing

Ray Tracer Due date: April 27, 2011

Shadows in the graphics pipeline

y= sin( x) y= cos( x)

Areas of Rectangles and Parallelograms

Introduction to Visualization and Computer Graphics

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

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

SFU CMPT 361 Computer Graphics Fall 2017 Assignment 2. Assignment due Thursday, October 19, 11:59pm

Visual cues to 3D geometry. Light Reflection and Advanced Shading. Shading. Recognizing materials. size (perspective) occlusion shading

(Refer Slide Time 05:03 min)

MATH 31A HOMEWORK 9 (DUE 12/6) PARTS (A) AND (B) SECTION 5.4. f(x) = x + 1 x 2 + 9, F (7) = 0

2.3 Circular Functions of Real Numbers

The Traditional Graphics Pipeline

MATHEMATICS FOR ENGINEERING TUTORIAL 5 COORDINATE SYSTEMS

MATH 261 EXAM III PRACTICE PROBLEMS

CS 184, Fall 1996 Midterm #1 Professor: unknown

Lesson 5: Definition of Rotation and Basic Properties

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

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

Creating a Snowman Scene

Interpolation using scanline algorithm

Shading II. CITS3003 Graphics & Animation

Interactive Computer Graphics. Hearn & Baker, chapter D transforms Hearn & Baker, chapter 5. Aliasing and Anti-Aliasing

Reflection and Shading

Set the Sails! Purpose: Overview. TExES Mathematics 4-8 Competencies. TEKS Mathematics Objectives.

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

CS 184, Fall 1996 Midterm #1 Professor: unknown

CS 325 Computer Graphics

521493S Computer Graphics Exercise 2 Solution (Chapters 4-5)

Graphics Hardware and Display Devices

Homework #2. Shading, Projections, Texture Mapping, Ray Tracing, and Bezier Curves

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

Transcription:

COMPUTER GRAPHICS - MIDTERM 1 Instructions: Answer 4 of the 5 questions below. The total points for each question is specied. Answer only one of the questions 3,4. Write your name and email below. 1

(1) [27 points] (a) What would be the shading pattern of the moon, if its face were almost completely smooth? For instance, what if the moon were a perfect sphere of concrete? Assume only diuse lighting eects, and that the sun is the only source of light. Of course, in reality, the moon is not smooth. Explain how the roughness of the moon's surface changes your answer. (b) You are given the endpoints (x 1, y 1 ), (x 2, y 2 )of a segment sin the xy-plane, where x 1, y 1, x 2, y 2 are integers between 1 and 1000. Suggest an algorithm that for each integer value x = 1, 2, 3...1000, prints the value of the heighest point (x, y), where y is an integer and is below s. Your algorithm should be as ecient as possible. (c) You are given the vertices of two triangles B (Blue) and R (Red) in 3D. Assume that they cross each other. Suggest an algorithm that does not use harware acceleration for rendering both of them using orthographic projection. Only the parts of R not occluded by B and the parts of B not occluded by R should be rendered. How would your answer change if the use of a hardware Z-buer is allowed?

(2) [27 points] Consider the scenario described in HW2. In generating some of the illumination (shading) eects, you had to compute the cosine (or dotproduct) of certain values. Assume that the plate is in a xed arbitrary pose (i.e. xed orientation) such that the normal to the plate creates an angle θ with the z-axis. (a) How many such cosine or dot-product operations are needed if the source of light is at innity? Give only an order of magnitude: Once? small number (less than 10)? Once per pixel? Once per raw etc. Justify your answer. (b) How many such operations are needed if the source of light is close to the viewpoint? (c) Bonous Suggest a faster algorithm for shading lots of small triangles of similar but non-identical orientation. You may ignore the specular component of the Phong intepolation model. Explain how you would implement this model using the smallest number of multiplication/division operations.

(3) [28 points] This question is similar to HW1, but this time, rather than mapping the picture onto a plate, we will map it onto a cylinder (drawing-on whiteboard). Imagine that you have a picture printed on a piece of paper, which is then stuck to a cylinder whose axis is the line {(x, y.z) y = 0 ; z = 100}, and with radius=30. You can think of this construction as a paper label on a soup can. Suggest how we might render this picture on the display screen, and how you would describe the eect of the cylinder rotating around its axis. Use perspective transformation. You do not have to specify all the parameters exactly, but give an overview of the algorithm and the main transformations mapping pixels in the image printed on the paper to the proper pixels on the display screen. Hint: you can consider each pixel in the paper label as a small polygon of uniform color.

(4) [28 points] Consider the rotating plate scenario described in HW1. Recall that every image pixel is mapped into a single display pixel, but that this transformation can be many-to-one. Let θ be the angle between the z-axis and the plate. Assume that for θ = 0, there is a one-to-one correspondence between image pixels and display pixels, and in particular, their number is the same. Suggest an algorithm, as ecient as possible (but without using hardware acceleration) for the case (a) θ is between 0 and 5 degrees - so quite small. (b) θ is between 80 and 85 degrees, so many image pixels are mapped to each display pixel, and a large portion of the display is black. Assume that the color of each display pixel can be decided by a single image pixel mapped to it, and that you can set the dispay pixel's color to be any of them.

(5) [28 points] Consider a se S of triangles in 3D, each one with its own color. Assume that S is stored in an oct-tree, such that each triangle is stored in exactly one leaf region of the tree. Given a view point qsuggest an ecient way to use the tree and the painter's algorithm to render the triangles as seen from q.explain the correctness of your algorithm. (you might nd it easier to give the description rst in 2D, and then generalize to 3D).