

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Assignment 2 is due on Tuesday, 9 /16/2008 3:30pm. You need to turn your homework in to your instructor before class start. Please write clearly on paper. Note: There are 10 points for each question. Q1. Viewport transform is a 2D transformation that maps normalized device coordinate system on to window coordinate system. What is the 2D transformation matrix for the following OpenGL command? glViewport( 20, 30, width/3, height*1.5 ); Q2. Please explain when windows reshape callback event happens. And display callback event? Q 3. What is the 2D transformation matrix for rotate 60 degree around point (-1, 2)? Q4. Let’s represent 2D translation as TR(x,y), rotation as R(θ), scale as S(sx, sy). Please write down the series of transformations produces the reflection of a two dimensional point about an arbitrary line y = 3 x+ 5? Show the 2D transformation matrix (using homogeneous coordinate system) of this transformation. Consider the following three coordinate systems (O, A, B) for questions 5 - 8 : Notation: MST is a 3x3 homogeneous matrix that transforms points from coordinate system S to coordinate system T.
Q 5. What are the coordinates of P in coordinate system O? Q 6. What are the coordinates of P in coordinate system A? Q 7. What are the coordinates of P in coordinate system B? Q8. What is the matrix of MAB? Please show the detail of derivation. Q 9. Express MOB in terms of MAO and MBA.