Queen s University CISC 454 Final Exam. April 19, :00pm Duration: 3 hours. One two sided aid sheet allowed. Initial of Family Name:

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

Topics and things to know about them:

TDA361/DIT220 Computer Graphics, January 15 th 2016

THE AUSTRALIAN NATIONAL UNIVERSITY Final Examinations (Semester 2) COMP4610/COMP6461 (Computer Graphics) Final Exam

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

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

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

Computer Graphics (CS 543) Lecture 13b Ray Tracing (Part 1) Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

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

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]

Sung-Eui Yoon ( 윤성의 )

ALGEBRA 2 W/ TRIGONOMETRY MIDTERM REVIEW

RASTERISED RENDERING

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

CEng 477 Introduction to Computer Graphics Fall 2007

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.

CPSC GLOBAL ILLUMINATION

Ray Tracing Basics I. Computer Graphics as Virtual Photography. camera (captures light) real scene. photo. Photographic print. Photography: processing

Ray Tracing Part 1. CSC418/2504 Introduction to Computer Graphics. TA: Muhammed Anwar & Kevin Gibson

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

Consider a partially transparent object that is illuminated with two lights, one visible from each side of the object. Start with a ray from the eye

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

Assignment 6: Ray Tracing

EECS 487, Fall 2005 Exam 2

CHAPTER 1 Graphics Systems and Models 3

Introduction to Visualization and Computer Graphics

CS559: Computer Graphics. Lecture 12: Antialiasing & Visibility Li Zhang Spring 2008

2D/3D Geometric Transformations and Scene Graphs

CS 4620 Midterm, March 21, 2017

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

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

Deferred Rendering Due: Wednesday November 15 at 10pm

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

Module 6: Pinhole camera model Lecture 32: Coordinate system conversion, Changing the image/world coordinate system

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

Rasterization Overview

Chapter 11 Global Illumination. Part 1 Ray Tracing. Reading: Angel s Interactive Computer Graphics (6 th ed.) Sections 11.1, 11.2, 11.

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

Visibility: Z Buffering

Graphics and Interaction Rendering pipeline & object modelling

Drawing the Visible Objects

Lighting and Shading

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

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

Speeding up your game

CS559 Computer Graphics Fall 2015

Computer Graphics Lecture 11

CS 4620 Program 3: Pipeline

Ray Tracer Due date: April 27, 2011

CS 130 Exam I. Fall 2015


Institutionen för systemteknik

Image Morphing. The user is responsible for defining correspondences between features Very popular technique. since Michael Jackson s clips

CS 4620 Midterm 1. Tuesday 22 October minutes

Viewing and Ray Tracing. CS 4620 Lecture 4

EECE 478. Learning Objectives. Learning Objectives. Rasterization & Scenes. Rasterization. Compositing

Photorealism: Ray Tracing

CS 130 Final. Fall 2015

Viewing and Ray Tracing

Ray Tracing. Kjetil Babington

CS 428: Fall Introduction to. Raytracing. Andrew Nealen, Rutgers, /18/2009 1

MODELING AND HIERARCHY

Question 2: Linear algebra and transformations matrices rotation vectors linear transformation T=U*D*VT

Ray Tracing. CSCI 420 Computer Graphics Lecture 15. Ray Casting Shadow Rays Reflection and Transmission [Ch ]

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

Global Illumination. Why Global Illumination. Pros/Cons and Applications. What s Global Illumination

CS 130 Exam I. Fall 2015

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

Computer Graphics Ray Casting. Matthias Teschner

Lecture 8 Ray tracing Part 1: Basic concept Yong-Jin Liu.

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

Computer Graphics. Si Lu. Fall uter_graphics.htm 11/22/2017

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.

Ray Tracing III. Wen-Chieh (Steve) Lin National Chiao-Tung University

Hidden Surface Elimination: BSP trees

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

Rendering. Mike Bailey. Rendering.pptx. The Rendering Equation

Lighting. To do. Course Outline. This Lecture. Continue to work on ray programming assignment Start thinking about final project

Accelerating Ray Tracing

CS535 Fall Department of Computer Science Purdue University

Computer Graphics Coursework 1

CMSC 435/634: Introduction to Graphics

Raytracing CS148 AS3. Due :59pm PDT

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

LIGHTING - 1. Note. Lights. Ambient occlusion

COMPUTER GRAPHICS AND INTERACTION

CMSC427 Advanced shading getting global illumination by local methods. Credit: slides Prof. Zwicker

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

Motivation. Sampling and Reconstruction of Visual Appearance. Effects needed for Realism. Ray Tracing. Outline

Planes Intersecting Cones: Static Hypertext Version

Advanced 3D-Data Structures

CS Computer Graphics: Introduction to Ray Tracing

CS Computer Graphics: Introduction to Ray Tracing

Ray tracing. Computer Graphics COMP 770 (236) Spring Instructor: Brandon Lloyd 3/19/07 1

Computing Visibility. Backface Culling for General Visibility. One More Trick with Planes. BSP Trees Ray Casting Depth Buffering Quiz

Lecture 22: Basic Image Formation CAP 5415

L1 - Introduction. Contents. Introduction of CAD/CAM system Components of CAD/CAM systems Basic concepts of graphics programming

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

CS 563 Advanced Topics in Computer Graphics Lecture 2: Bare-Bones Raytracer. by Emmanuel Agu

Transcription:

Page 1 of 11 Queen s University CISC 454 Final Exam April 19, 2005 2:00pm Duration: 3 hours One two sided aid sheet allowed. Initial of Family Name: Student Number: (Write this at the top of every page.) There are 7 questions and 64 marks total. Answer all questions. This exam paper should have 11 pages, including this cover page. 1 Short Answer / 18 2 Rendering Hierarchical Models / 6 3 PVS Compression / 6 4 Curve Fitting / 8 5 Binary Space Partitions / 8 6 Local Illumination / 8 7 Volume Rendering / 10 Total / 64 The candidate is urged to submit with the answer paper a clear statement of any assumptions made if doubt exists as to the interpretations of any question that requires a written answer.

CISC 454 Final Exam, April 19, 2005 Page 2 of 11 Student Number: 1 Short Answer 18 points 1. (2 points) Briefly explain how double buffering works and what effect it has. 2. (2 points) How much storage is required for a mip-map of size 128x256? Show your work. 3. (2 points) When raytracing a scene with purely diffuse surfaces, how many bounces does each ray make? Explain.

CISC 454 Final Exam, April 19, 2005 Page 3 of 11 Student Number: 4. (4 points) Consider a cube in the Viewing Coordinate System (VCS) aligned with the three camera axes. That cube takes on a different shape when transformed to the Normalized Device Coordinate System (NDCS). Draw a picture of a two dimensional z, y slice of the NDCS containing the transformed cube. Explain why the transformed w w cube is shaped as you have drawn it. 5. (4 points) Given a parametric line, l(t) = p + td (for point p and vector d), and the implicit equation of a plane, x n = k (for scalar k and point x) calculate the intersection of the ray with the plane. Show all of your work.

CISC 454 Final Exam, April 19, 2005 Page 4 of 11 Student Number: 6. (4 points) Consider a ball that is thrown upward (in the positive y direction) and slightly forward (in the positive x direction). The ball follows a parabolic arc until it comes back to hit the grond. Draw the ground and the parabolic arc. Draw five control points to define a Catmull Rom curve that closely approximates the arc. Explain your choice of points.

CISC 454 Final Exam, April 19, 2005 Page 5 of 11 Student Number: 2 Rendering Hierarchical Models 6 points Consider a hierarchical model in which object O i stores T i, the transformation that maps points in O i s coordinate system to the coordinate system of O i s parent, C i, the list of objects that are children of O i, and G i, the geometry of O i Write in pseudocode a procedure that renders a hierarchical model, given the root object of the hierarchy. The procedure is called as rendermodel( O i ) where O i is the root object. Let T be the current transformation matrix. Transformation matrices can be pushed and popped from a stack. Geometry can be rendered with a call to rendergeometry( G i ) Don t use OpenGL commands. Just use high level pseudocode.

CISC 454 Final Exam, April 19, 2005 Page 6 of 11 Student Number: 3 PVS Compression 6 points Apply two steps of lossless compression to the following visibility matrix. Choose the compression to minimize the number of ones in the final, compressed matrix. Indicate clearly what is being compressed at each step. Show the augmented matrix after each step. 1 2 3 4 5 6 7 8 9 a 0 1 0 1 1 1 0 0 0 b 0 0 0 1 1 0 0 0 0 c 1 1 0 0 1 1 0 1 1 d 1 1 1 1 1 0 0 0 0 e 1 1 0 0 0 1 1 0 0 f 0 0 0 0 0 1 1 1 1 g 0 1 0 0 1 1 0 1 0

CISC 454 Final Exam, April 19, 2005 Page 7 of 11 Student Number: 4 Curve Fitting 8 points Derive the equation of a quadratic curve, q(t), passing through three points, x 1, x 2, and x 3 at parameter values 0, 1, and 2, respectively. Show your work. You ll have to solve a very small (2 2) system of equations.

CISC 454 Final Exam, April 19, 2005 Page 8 of 11 Student Number: 5 Binary Space Partitions 8 points Part A (4 points) Draw four segments below. Label the four segments a, b, c, d. Draw and label an origin. Draw the BSP that results when the segments are inserted in order a, b, c, d. You must choose segments so that at least two segments are split when they are inserted. Part B (2 points) Draw and label a viewpoint on your diagram above. List the segments (or pieces of segments) in the order that they are rendered from that viewpoint using your BSP. Part C (2 points) Consider a BSP of n segments in the plane. Suppose that when the n segments were inserted into the BSP tree, k splits occurred. How many separate regions are there in the partition of the plane induced by the BSP?

CISC 454 Final Exam, April 19, 2005 Page 9 of 11 Student Number: 6 Local Illumination 8 points The BRDF, f(ω in, ω out ), takes two vectorial parameters: the incoming light direction, ω in, and the outgoing light direction, ω out. (Both directions point out of the surface.) Part A (3 points) For the definition of the BRDF given in class (i.e. it s the ratio of the outgoing intensity to the incoming intensity) write a BRDF function for purely diffuse reflection. Let N be the surface normal. Use the parameter k d in your function. f diffuse (ω in, ω out ) = Part B (5 points) Write a BRDF function for purely specular reflection. Use the parameters k s and n in your function. You might have to intorduce some new vectors. If so, define them in terms of the known vectors: ω in, ω out, and N. f specular (ω in, ω out ) =

CISC 454 Final Exam, April 19, 2005 Page 10 of 11 Student Number: 7 Volume Rendering 10 points We saw DRR and surface volume rendering in class. Another volume rendering method accumulates the gradients along each ray through the volume. With this method, the usual equation, I i = α i C i + (1 α i )I i+1, is replaced with a new equation: I i = I i+1 + (1 τ d ) where τ is the gradient vector, d is a unit vector in the direction along the ray, and the notation x means the absolute value of x. Assume that the maximum length of the gradient vector is one. Part A (4 points) I 0 is the intensity on the ray leaving the volume toward the eye; the pixel is given this intensity. With the new equation, what characterizes the volume along the ray when I 0 is large? Also: why is this new equation useful when rendering CT volumes of bones?

CISC 454 Final Exam, April 19, 2005 Page 11 of 11 Student Number: Part B (4 points) Modify the following DRR code to implement the new equation. Make your changes by writing on top of the code. Show where you would delete code, add code, and modify code. You can get the gradient, τ, with a call to vol->gradient(pos). You don t need to write correct C++ code; use pseudocode where necessary. float distbetween = (exitpoint - entrypoint).length(); vector L = vector(1,1,1); // back lighting for (float t=distbetween; t>0; t = t-slicespacing) { vector pos = entrypoint + t * raydir; // sample position float tau = vol->texel( pos ); float alpha = slicespacing * tau; } L = (1-alpha) * L; return L; Part C (2 points) The new equation does not use alpha blending. What problem might occur when I 0 is used to set the intensity of a pixel? What can you do to resolve this problem?... End Of Final Exam