Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

2d/3D transformations in computer graphics(Computer graphics Tutorials)

10,657 views

Published on

This is an introduction to 2D and 3 in computer graphics presented by daroko blog.
• Daroko blog (www.professionalbloggertricks.com)
• Presentation by Daroko blog, to see More tutorials more than this one here, Daroko blog has all tutorials related with IT course, simply visit the site by simply Entering the phrase Daroko blog (www.professionalbloggertricks.com) to search engines such as Google or yahoo!, learn some Blogging, affiliate marketing ,and ways of making Money with the computer graphic Applications(it is useless to learn all these tutorials when you can apply them as a student you know),also learn where you can apply all IT skills in a real Business Environment after learning Graphics another computer relate courses.ly
• Be practically real, not just academic reader

Published in: Software
  • If you need your papers to be written and if you are not that kind of person who likes to do researches and analyze something - you should definitely contact these guys! They are awesome ⇒⇒⇒WRITE-MY-PAPER.net ⇐⇐⇐
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • D0WNL0AD FULL ▶ ▶ ▶ ▶ http://1url.pw/pLt2J ◀ ◀ ◀ ◀
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • D0WNL0AD FULL ▶ ▶ ▶ ▶ http://1url.pw/pLt2J ◀ ◀ ◀ ◀
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download Full EPUB Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download Full doc Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download PDF EBOOK here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download EPUB Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download doc Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download Full EPUB Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download Full doc Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download PDF EBOOK here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download EPUB Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download doc Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

2d/3D transformations in computer graphics(Computer graphics Tutorials)

  1. 1. Daroko blog-where IT leaners apply their Skills  Do Not just learn computer graphics an close your computer browser tab and go away..  APPLY them in real business,  Visit Daroko blog for real IT skills applications,androind, Computer graphics,Networking,Programming,IT jobs Types, IT news and applications,blogging,Builing a website, IT companies and how you can form yours, Technology news and very many More IT related subject.  -simply Google: Daroko blog(www.professionalbloggertricks.com)
  2. 2. CS580 Computer Graphics 2D Transformations2D Transformations Sung Yong Shin Dept. of Computer Science KAIST
  3. 3. Daroko blog Daroko blog
  4. 4. Outline 1. Preliminary 2. Basic 2D Transformations 3. Homogeneous Coordinate system 4. Composite Transformations 5. Reflection and Shearing
  5. 5. per-vertex operations & primitive assembly rasterization frame buffer texture assembly display lists evaluators pixel operations per-fragment operations geometric data pixel data OpenGL Rendering Pipeline Window-to-viewport mapping
  6. 6. 2. Basic Transformations translation scaling rotation (absolute) transformation relative transformation
  7. 7.             =      ′ ′ =′ =′ y x S S y x ySy xSx y x y x 0 0 x y ( , )T F Fx y : fixed point 1p 2p 3p y x ( , )T F Fx y Scaling ( , )T x y ( ', ')T x y
  8. 8. (a) (b) Non-uniform scaling
  9. 9. θθ θφθφ θφ sincos sinsincoscos )cos( yx rr rx −= −= +=′ θθ sincos xyy +=′ Similarly, ( , )T x y ( , )T x y′ ′ r θ φ r φ φ sin cos ry rx = = Rotation
  10. 10. θθ θθ sincos sincos xyy yxx +=′ −=′             − =      ′ ′ y x y x θθ θθ cossin sincos ( , )T R Rx y ( , )T x y ( , )T x y′ ′ r θ φ r θ ( , )T x y ( , )T x y′ ′ r φ r ( , )T R Rx y : Pivot point
  11. 11.                 =      ′ ′ +=′ +=′ 1 10 01 y x T T y x Tyy Txx y x y x 50 100 150 150 100 50 50 100 150 150 100 50 (a) (b) Translation
  12. 12.  Scaling and Rotation  Translation How to uniformly treat transformations?             =      ′ ′ y x dc ba y x Observation                 =      ′ ′ 1 10 01 y x f e y x
  13. 13. 1 ( , , ) ( , , 1) ( / , / ) for 0 ( , , ) ( / , / ,1) , 0 T T T T T P AP a b c x P d e f y g h i P x y w x w y w x w y w w x y w x w y w Rα α α ′ =        ′ =            ′ ′ ′ ′ ′ ′ ′≡ ⇔ ≡ ≠ ′ ′ ′ ′⇔ ∀ ∈ ≠ 3. Homogeneous Coordinate System w x y ( , , )T x y wα ′ ′ 1=w ( , ,1)T x w y w′ ′ (0,0,1)T
  14. 14. ( , ) ( , ,1) ( , , )T T T x y x y wx wy w= ⇔ 0≠w normalized(standard) No unique homogeneous representation of a Cartesian point !!!
  15. 15. What if ? ( , ,0)T x y0=w lim lim( , ,1) lim( , ,1 ) ( , ,0) T t t t T t T p at bt a b t a b →∞ →∞ →∞ = = = ( , ,1)T tp at bt= w • Ideal points !!! points at infinity well, ... ( , ,1)T a b(0,0,1)T 0 0 0 0 1 1 1 0 1 1 t t a a at p s t b p t b bt s t            ÷  ÷  ÷  ÷  ÷ = + ⇒ = + = ÷  ÷  ÷  ÷  ÷  ÷  ÷  ÷  ÷  ÷           + =
  16. 16. Projective Space Points in the Euclidean space + Points at infinity Positions Vectors Positions and vectors are treated homogeneously!!! ( , , ) , 0T x y w w ≠ ( , , ) , 0T x y w w =
  17. 17. 0 0 0 0 lim lim( , ,1) lim( , ,1 ) ( , ,0) T t t t T t p at x bt y a x t b y t t a b →∞ →∞ →∞ ′ = + + = + + = 0 0( , ,1)T tp at x bt y′ = + + 0 0( , ,1)T x y ( , ,1)T tp at bt= (0,0,1)T ( , ,1)T a b lim lim( , ,1) lim( , ,1 ) ( , ,0)T T T t t t t p at bt a b t a b →∞ →∞ →∞ = = =
  18. 18. In a Euclidean space two lines intersect each other If they are not parallel Non-homogeneous treatment !!!∴ However, in a projective space, two lines do always intersects. ∴ Homogeneous treatment !!!
  19. 19. A B No orientation !!! BA = ∴ However, Why?
  20. 20.  For detail treatment of this subject, see  M. Penna and R. Patterson, Projective Geometry and its Application to Computer Graphics, 1986.
  21. 21. rotation scaling translation perspective transform P 'P T ' where ' [ ', ', '] , [ , , ] . T T P TP P x y w P x y w = = = 2D Transformation Matrices           = ihg fed cba T X 'X
  22. 22.  Now, uniform treatment !!!  Rotation  Scaling  Translation                     − =           1100 0cossin 0sincos ' ' ' y x w y x θθ θθ                     =           1100 00 00 ' ' ' y x S S w y x y x                     =           1100 10 01 ' ' ' y x T T w y x y x
  23. 23. ]][]...[[][ ][ ]][]...[[' 12 12 TTTT PT PTTTP n n = = = composite transformation matrix HomeworkHomework 4. Composite Transformations
  24. 24. ( , )T F Fx y (a) Original position of object and fixed point (b) Translate object so that fixed point (xF, yF) is at origin (c) Scale object with respect to origin (d) Translate object so that fixed point is returned to position (xF, yF)T ( , )T F Fx y ][ rT ][ cS 1 ][ − rT
  25. 25. ( , )T R Rx y (a) Original position of object and pivot point (b) Translation of object so that the pivot point (xR, yR) is at origin (c) Rotation about origin (d) Translation of object so that the pivot point is returned to position (xR, yR)T ( , )T R Rx y ][ rT ][ tR 1 ][ − rT
  26. 26. x y θ Sy Sx [Rt]-1 [Sc][Rt]
  27. 27. Why if Sx = Sy ?
  28. 28. x y (0, 0)T (1, 0)T (1, 1)T (0, 1)T x y (0, 0)T (3/2, 1/2)T (2, 2)T (1/2, 3/2)T 45° Sx = 1 Sy = 2
  29. 29. Final Position Final Position (a) [Rt][Tr] (b) [Tr][Rt]
  30. 30. Reflection 1 2 3 1’ 2’ 3’ Original position Reflected position           − 100 010 001 1 2 3 1’ 2’ 3’ Original position Reflected position          − 100 010 001 x x y y 5. Reflection and Shearing
  31. 31. 12 3 1’ 2’ 3’ Original position Reflected position           100 001 010 1 2 3 1’ 2’ 3’ Original position Reflected position           − − 100 010 001 x x y yy = x
  32. 32. 45° [Rt] [Rf x ] 45° [Rt]-1 Reflection about y = x
  33. 33.           − − 100 001 010 1 2 3 1’ 2’3’ Original position Reflected position x yy = -x
  34. 34. (a) (b) (c) (0, 0) (0, 0) (0, 0)(1, 0) (1, 1) (0, 1) (1, 0) (3, 1)(2, 1) (0, 1) (1, 2) (1, 3) x y x y x y           100 010 01 xSH           100 01 001 ySH Shearing
  35. 35. (a) (b) Raster method for transformation

×