2IV10/2IV60 Computer Graphics

Similar documents
1. Find a basis for the row space of each of the following matrices. Your basis should consist of rows of the original matrix.

PHYSICS 1210 Exam 1 University of Wyoming 14 February points

A Kalman filtering simulation

September 20 Homework Solutions

PARABOLA. moves such that PM. = e (constant > 0) (eccentricity) then locus of P is called a conic. or conic section.

1. Consider a PSA initially at rest in the beginning of the left-hand end of a long ISS corridor. Assume xo = 0 on the left end of the ISS corridor.

A 1.3 m 2.5 m 2.8 m. x = m m = 8400 m. y = 4900 m 3200 m = 1700 m

Physic 231 Lecture 4. Mi it ftd l t. Main points of today s lecture: Example: addition of velocities Trajectories of objects in 2 = =

15/03/1439. Lecture 4: Linear Time Invariant (LTI) systems

ENGR 1990 Engineering Mathematics The Integral of a Function as a Function

(b) 10 yr. (b) 13 m. 1.6 m s, m s m s (c) 13.1 s. 32. (a) 20.0 s (b) No, the minimum distance to stop = 1.00 km. 1.

PHY2048 Exam 1 Formula Sheet Vectors. Motion. v ave (3 dim) ( (1 dim) dt. ( (3 dim) Equations of Motion (Constant Acceleration)

An object moving with speed v around a point at distance r, has an angular velocity. m/s m

e t dt e t dt = lim e t dt T (1 e T ) = 1

Motion. Part 2: Constant Acceleration. Acceleration. October Lab Physics. Ms. Levine 1. Acceleration. Acceleration. Units for Acceleration.

Average & instantaneous velocity and acceleration Motion with constant acceleration

The solution is often represented as a vector: 2xI + 4X2 + 2X3 + 4X4 + 2X5 = 4 2xI + 4X2 + 3X3 + 3X4 + 3X5 = 4. 3xI + 6X2 + 6X3 + 3X4 + 6X5 = 6.

2D Motion WS. A horizontally launched projectile s initial vertical velocity is zero. Solve the following problems with this information.

1.0 Electrical Systems

Physics 101 Lecture 4 Motion in 2D and 3D

CHAPTER 11 PARAMETRIC EQUATIONS AND POLAR COORDINATES

MTH 146 Class 11 Notes

0 for t < 0 1 for t > 0

3D Transformations. Computer Graphics COMP 770 (236) Spring Instructor: Brandon Lloyd 1/26/07 1

Transformations. Ordered set of numbers: (1,2,3,4) Example: (x,y,z) coordinates of pt in space. Vectors

EXERCISE - 01 CHECK YOUR GRASP

Chapter 3 Kinematics in Two Dimensions

FM Applications of Integration 1.Centroid of Area

3 Motion with constant acceleration: Linear and projectile motion

MATH 124 AND 125 FINAL EXAM REVIEW PACKET (Revised spring 2008)

Scalar Conservation Laws

Properties of Logarithms. Solving Exponential and Logarithmic Equations. Properties of Logarithms. Properties of Logarithms. ( x)

Chapter Direct Method of Interpolation

Chapter 2. Motion along a straight line. 9/9/2015 Physics 218

Section P.1 Notes Page 1 Section P.1 Precalculus and Trigonometry Review

Physics 2A HW #3 Solutions

Name: Per: L o s A l t o s H i g h S c h o o l. Physics Unit 1 Workbook. 1D Kinematics. Mr. Randall Room 705

Three Dimensional Coordinate Geometry

Some basic notation and terminology. Deterministic Finite Automata. COMP218: Decision, Computation and Language Note 1

Brock University Physics 1P21/1P91 Fall 2013 Dr. D Agostino. Solutions for Tutorial 3: Chapter 2, Motion in One Dimension

Ch.4 Motion in 2D. Ch.4 Motion in 2D

Version 001 test-1 swinney (57010) 1. is constant at m/s.

Physics Worksheet Lesson 4: Linear Motion Section: Name:

Mathematics 805 Final Examination Answers

CSE 5365 Computer Graphics. Take Home Test #1

Motion in a Straight Line

4.8 Improper Integrals

Motion. ( (3 dim) ( (1 dim) dt. Equations of Motion (Constant Acceleration) Newton s Law and Weight. Magnitude of the Frictional Force

CSE-4303/CSE-5365 Computer Graphics Fall 1996 Take home Test

when t = 2 s. Sketch the path for the first 2 seconds of motion and show the velocity and acceleration vectors for t = 2 s.(2/63)

DESY MVP G.Petrosyan DSP PROGRAM AND DSP SERVER

( ) ( ) ( ) ( ) ( ) ( y )

Flow Networks Alon Efrat Slides courtesy of Charles Leiserson with small changes by Carola Wenk. Flow networks. Flow networks CS 445

HYPOTHESIS TESTING. four steps. 1. State the hypothesis and the criterion. 2. Compute the test statistic. 3. Compute the p-value. 4.

Introduction to LoggerPro

NEWTON S SECOND LAW OF MOTION

SCANNING OF FREE-FORM SURFACES BY USING A LASER-STRIPE SENSOR ON A CMM

t s (half of the total time in the air) d?

I = I = I for this case of symmetry about the x axis, we find from

Available Online :

June Further Pure Mathematics FP2 Mark Scheme

first-order circuit Complete response can be regarded as the superposition of zero-input response and zero-state response.

Solutions to Problems from Chapter 2

Phys 110. Answers to even numbered problems on Midterm Map

Collision Detection and Bouncing

01 = Transformations II. We ve got Affine Transformations. Elementary Transformations. Compound Transformations. Reflection about y-axis

Think of the Relationship Between Time and Space Again

MEP Practice Book ES3. 1. Calculate the size of the angles marked with a letter in each diagram. None to scale

Contraction Mapping Principle Approach to Differential Equations

ME 141. Engineering Mechanics

Par+cle Filtering. CSE 473: Ar+ficial Intelligence Par+cle Filters. Par+cle Filtering: Elapse Time. Representa+on: Par+cles

HYPOTHESIS TESTING. four steps. 1. State the hypothesis. 2. Set the criterion for rejecting. 3. Compute the test statistics. 4. Interpret the results.

Forms of Energy. Mass = Energy. Page 1. SPH4U: Introduction to Work. Work & Energy. Particle Physics:

( ) 2 a b ab. To do this, we are to use the Ricci identity (which we use to evaluate the RHS) and the properties of the Lie derivative.

Challenge Problems. DIS 203 and 210. March 6, (e 2) k. k(k + 2). k=1. f(x) = k(k + 2) = 1 x k

LAB # 2 - Equilibrium (static)

Chapter 2: Evaluative Feedback

Introduction to Numerical Modeling. 7. An Example: QG Barotropic Channel Model (Weather Prediction)

22.615, MHD Theory of Fusion Systems Prof. Freidberg Lecture 9: The High Beta Tokamak

Section 3.5 Nonhomogeneous Equations; Method of Undetermined Coefficients

Minimum Squared Error

Chapter 10. Simple Harmonic Motion and Elasticity. Goals for Chapter 10

Minimum Squared Error

DA 3: The Mean Value Theorem

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:

DESIGN OF TENSION MEMBERS

Chapter 12: Velocity, acceleration, and forces

Chapter 2 PROBLEM SOLUTIONS

We are looking for ways to compute the integral of a function f(x), f(x)dx.

Section 1.2 Angles and Angle Measure


HW #1 Solutions. Lewis Structures: Using the above rules, determine the molecular structure for Cl2CO. Hint: C is at the center.

P441 Analytical Mechanics - I. Coupled Oscillators. c Alex R. Dzierba

CBSE 2014 ANNUAL EXAMINATION ALL INDIA

Phys 221 Fall Chapter 2. Motion in One Dimension. 2014, 2005 A. Dzyubenko Brooks/Cole

CONIC SECTIONS. Chapter 11

CHAPTER 2 KINEMATICS IN ONE DIMENSION ANSWERS TO FOCUS ON CONCEPTS QUESTIONS

d 1 = c 1 b 2 - b 1 c 2 d 2 = c 1 b 3 - b 1 c 3

1 jordan.mcd Eigenvalue-eigenvector approach to solving first order ODEs. -- Jordan normal (canonical) form. Instructor: Nam Sun Wang

An integral having either an infinite limit of integration or an unbounded integrand is called improper. Here are two examples.

Transcription:

I0/I60 omper Grphics Eminion April 6 0 4:00 7:00 This eminion consis of for qesions wih in ol 6 sqesion. Ech sqesion weighs eqll. In ll cses: EXPLAIN YOUR ANSWER. Use skeches where needed o clrif or nswer. Red firs ll qesions compleel. If n lgorihm is sked hen descripion in seps or psedo-code is epeced which is cler enogh o e esil rnsferred o rel code. Aim compcness nd clri. Use ddiionl fncions nd procedres if desired. Gie from ech fncion nd procedre shor descripion of inp nd op. The se of he ook copies of slides noes nd oher meril is no llowed. We consider some sic echniqes for comper grphics. Wh is iewpor in comper grphics erminolog? A iewpor is region of he screen h is sed for showing grphics op picll recnglr re. Gie crierion o disingish cone nd conce polgons. Some chrcerisics of cone polgon re h: - All inerior ngles re < 80 degrees; - All line segmens eween wo inerior poins re compleel inside he polgon; - Gien line hrogh n edge ll poins of he polgon re eiher on his line or on he sme side of he line; - rom ech inerior poin he complee ondr is isile. These do no hold for conce polgons nd cn hence e sed o disingish eween hem. c In he simples model for rnsprenc he color I srfce of he srfce nd he color I ck of he ckgrond re lended ino perceied color I. Gie forml for I ssming rnsprenc coefficien α in he rnge from 0 opqe o fll rnspren. In he simples model I srfce nd I ck nd re weighed wih α nd α nd dded p i.e. I α I srfce α I ck. I is es o mi p opci nd rnsprenc. To check ssie α 0 opqe which gies I I srfce hence we see he srfce which is correc. Also α fll rnspren gies I I ck hence we see he onl he ckgrond which is correc gin. inll if I srfce I ck we ge I α α hence if srfce nd ckgrond he he sme color rnsprenc does no mer nmore. d Wh is he difference in he compion of ligh inensiies eween Phong shding nd Gord shding? In Gord shding colors of erices re inerpoled oer polgons in Phong shding normls of erices re inerpoled followed shding clclion.

We consider pr of hperolic srfce descried wih. nd Gie prmeric descripion S nd n implici descripion 0 of his srfce. We ke nd nd ge. Hence. S or he implici eqion we rewrie he gien eqion o ge 0 hence. Derie forml for norml ecor for poin on his srfce eiher sing prmeric or n implici descripion. Using he prmeric descripion we ge:. 0 0 S S N Using he implici eqion we ge:. N c lcle ll inersecion poins of line P wih his srfce wih P P P P nd. A picl r-rcing sk. irs noe h P. Ne we clcle for which les of we find inersecions wih he infinie srfce. Ssiion of P ino he eqion gies. We rewrie his o ge qdric eqion in : 0. or nd Se c If D 4c < 0 hen here re no inersecions. If D > 0 we ge wo les for sing he wellknown c forml:. 4 c ± If D 0 nd 0 here is single inersecion for / proided h 0. The cse D0 nd 0 cn occr for insnce for 0 0 0 nd 0. Sch line lies compleel in he nonded srfce. If we find one or wo inersecion poins he finl sep is o check wheher he poins P i re loced wihin he gien poins i.e. he condiions nd i i ms e me.

d Gie procedre o drw his srfce ssming procedre DrwTringleA B is ille. or insnce: N 0; // nmer of seps per side d.0/n; // sepsie fncion Pni j: poin; // rerns poin on he srfce specified indices i nd j 0...N egin Pn. i*d; Pn. j*d; Pn. i*i j*j*d*d; procedre DrwSrfce; egin for i 0 o N do for j 0 o N do egin P00 Pni j; // lcle poins of qd P0 Pni j; P0 Pni j; P Pni j; DrwTringleP00 P0 P; // Drw he qd wih wo ringles DrwTringleP00 P P0; Mn lernies re possile for insnce soring nd resing poins. We wn o drw n rc s shown in he figre. The rc srs in poin A 0 psses hrogh poin B 0 nd ends in poin 0. A poin A nd he rc is perpendiclr o he -is poin B he rc is perpendiclr o he -is. We wn o define he cre prmericll s P wih [0 ]. We eplore differen opions o define his rc. Indice for ech opion if i is possile o define n rc h mees he reqiremens nd if no eplin wh no; if es eplin how his cn e done nd define P ecl. We consider: Use of n ellipse scled circle; This is possile: P cosπ sinπ. Use of cre sed on cic fncion 0 ; This is no possile. A poin A nd he ngen o he cre is ericl nd his implies h he derie of is infinie. c Use of single qdric Béier segmen P P0 P P ; nd Agin no possile. A cre h srs A nd ends cn e oined choosing P 0 0 nd P 0. To oin ericl ngens hese poins we ge P p nd P p. These cnno e sisfied simlneosl. Or eqilenl P ms e loced he crossing of he ngen lines A nd B nd if hese lines re prllel sch poin cnno e fond. d Use of single cic Béier segmen P P0 P P P.

This is possile. A cre h srs A nd ends cn e oined choosing P 0 0 nd P 0. To oin ericl ngens hese poins nd iming smmeric rc we se P p nd P p where p is consn o e deermined. Hlfw he rc shold cross he -is wih i.e. P /. Ssiion of he les picked for he conrol-poins gies P / P 0 /8 P /8 P /8 P /8 p/4. Hence if we choose p 4/ we oin cic Béier segmen h mees he reqiremens. B A 4 We im o drw he figre shown. In he cener is sqre S 0 cenered on he origin wih sie. The sqre S hs sie < is lower lef corner coincides wih he pper lef corner of S 0 nd S is roed oer α degrees. This pern is repeed he sie of sqre S i is imes he sie of sqre S i. On op of he oher edges sqres re posiioned similrl. We se homogenos rnsformion mri M sch h posiion A in glol coordines is reled o posiion B in locl coordines i AMB. I m e ssmed h T gies rnslion mri long he ecor ; h Rϕ gies roion mri of ϕ degrees rond he origin; nd h Ss gies niform scling mri wih scle fcor s. The roine DrwSqre drws sqre in he locl coordine frme h is implicil defined he mri M. In hese α S 0 locl coordines he sqre h is drwn hs sie nd is cenered on he origin. S Se M sch h cll o DrwSqre drws S ecl ccording o he specificion gien nd he figre. We cn rnsform S 0 o S sing he following seps sing glol rnsformions: T : Moe he sqre sch h he lower lef corner is in he origin; Rα: Roe he sqre rond he origin oer α degrees; S: Scle he sqre wih fcor ; 4 T : Moe he lower lef corner he origin o he pper lef corner of he originl sqre. Using locl rnsformions we ge: 4

T : Moe he cener of he sqre o he pper righ corner; S: Scle he sqre wih fcor ; Rα: Roe he sqre rond is origin oer α degrees; 4 T : Moe he sqre sch h is lower lef corner moed o is origin. Noe h onl he order is reersed he rnsformions re he sme. rhermore he roion nd scling cn e inerchnged. Bsed on hese rnsformions we ge M T S RαT. Sppose M hs een se sch h S i hs js een drwn wih cll DrwSqre. Upde M o drw S i wih e noher cll o DrwSqre. Ech ime new sqre is dded he sme rnsformion is pplied gin. This cn e seen if we consider S i nd check which rnsformions re needed in locl coordines o ge S i. Hence: M M T S RαT. B lso M T S RαT M. gies he desired resl. In generl he rnsformion M i for S i is gien M i T S RαT i c I is desired h sqre S n hs sie p nd is roed oer β degrees in ol. How o se nd α o ge his effec? The ol roion ms e eql o β he figre shows h his is eql o nα. Hence α β / n. The sie ms e eql o p repeed scling gies sie eql o n. Hence p/ /n. d Gie procedre o drw he complee figre inclding ll for rms where ech rm consiss of n sqres. or insnce: procedre Drwigren; egin M I; // se M o he ideni mri DrwSqre; // drw S 0 P T SRαT ; // lcle nd sore he sic rnsformion sep for i o n do // for ll leels egin M MP; // dp he rnsformion for he ne leel sqres for j o 4 do // for ll rms egin DrwSqre; // drw sqre M R90M; // ppl glol roion o shif o he ne rm // Noe: fer for roions oer 90 degrees M is ck o is sring posiion Alerniel he loops for leels nd rms cn e inerchnged for insnce: 5

procedre Drwigren; egin M I; // se M o he ideni mri DrwSqre; // drw S 0 P T SRαT ; // lcle nd sore he sic rnsformion sep for i 0 o do // for ll rms egin M Ri*90; // se M o roion of 0 90 80 70 degrees for j o n do // for ll leels egin M MP; // dp he rnsformion for he ne leel sqre DrwSqre; // drw sqre 6