30.08.2014 Views

Past Midterm and Exam Questions (PDF) - Student.cs.uwaterloo.ca ...

Past Midterm and Exam Questions (PDF) - Student.cs.uwaterloo.ca ...

Past Midterm and Exam Questions (PDF) - Student.cs.uwaterloo.ca ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CS488/688 Introduction to Computer Graphi<strong>cs</strong> 3<br />

– P 1 =<br />

– P 2 =<br />

– P 3 =<br />

1.4 Euler Angles [Last Used: Winter 2000 Final]<br />

Euler angles are one method of representing orientations, with the orientation represented as a<br />

rotation around each coordinate axis. While common in computer graphi<strong>cs</strong>, Euler angles have<br />

several problems. To address these problems, people often use quaternions.<br />

For this question, we will use the following representation of Euler angles: With c a = cos(θ a )<br />

<strong>and</strong> s a = sin(θ a ), the matrix for Euler angles is<br />

R(θ x , θ y , θ z ) =<br />

⎡<br />

⎢<br />

⎣<br />

c y c z c y s z −s y 0<br />

s x s y c z − c x s z s x s y s z + c x c z s x c y 0<br />

c x s y c z + s x s z c x s y s z − s x c z c x c y 0<br />

0 0 0 1<br />

= R x (θ x )R y (θ y )R z (θ z ),<br />

where R x (θ x ), R y (θ y ) <strong>and</strong> R z (θ z ) are the st<strong>and</strong>ard rotation matrices.<br />

The following Euler angles <strong>and</strong> quaternion represent (to 3 digits of precision) the same orientation:<br />

θ x = 10, θ y = 90, θ z = 30<br />

q 1 = 0.696 − 0.123⃗i + 0.696⃗j + 0.123 ⃗ k<br />

1. (3 pts) Give a second set of distinct Euler angles β x , β y , β z that represent the same orientation.<br />

Your angles must be in the range [0, 360] degrees.<br />

β x =<br />

β y =<br />

β z =<br />

⎤<br />

⎥<br />

⎦<br />

2. (2 pts) Give the quaternion q 2 corresponding to your Euler angle solution in part (a) of this<br />

question.<br />

q 2 =<br />

1.5 Animation Techniques [Last Used: Winter 2006 Final]<br />

You are working on a scene in a movie that will incorporate ray traced CG characters of a Vice<br />

President shooting (with buckshot) an apologetic lawyer in slow motion. (Buckshot is a type of<br />

“bullet” that consists of many small pellets that spread out as they fly through the air.)<br />

Describe what part of the animation each of the following techniques could be used for, <strong>and</strong><br />

suggest <strong>and</strong> justify the use of a fifth technique that would be useful in creating this animation.<br />

1. Keyframing

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!