SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Supriya H. Madane
3D Transformation   Supriya H. Madane   Slide 2
Types of 3D reference system according to co-ordiante axes.



        Left handed System



        Right handed System


           3D Transformation              Supriya H. Madane   Slide 3
1) Left handed System




3D Transformation     Supriya H. Madane   Slide 4
2) Right handed System




3D Transformation     Supriya H. Madane   Slide 5
3D Transformation   Supriya H. Madane   Slide 6
Translation




                    3D
               Transformation


                                Rotation




3D Transformation                 Supriya H. Madane   Slide 7
Translation in 3D!
ď‚— Remembering 2D transformations -> 3x3 matrices,
 take a wild guess what happens to 3D transformations.


                                      1   0   tx
                    x       tx
  T tx , t y                          0   1   ty                         T=(tx, ty, tz)
                    y       ty
                                      0   0       1

                                          1   0       0   tx
                        x        tx
                                          0   1       0   ty
  T tx , t y , tz       y        ty
                                          0   0       1   tz
                        z        tz
                                          0   0       0   1




                    3D Transformation                          Supriya H. Madane     Slide 8
Scaling, 3D Style

                                              sx   0     0                 S=(sx, sy, sz)
                  sx        0        x
S sx , s y                      *             0    sy    0
                  0     sy           y
                                              0    0     1

                                                        sx   0    0    0
                       sx       0        0     x
                                                        0    sy   0    0
S sx , s y , sz        0        sy       0 * y
                                                        0    0    sz   0
                       0        0        sz    z
                                                        0    0    0    1




  3D Transformation                      Supriya H. Madane                                  9
Rotations about the Z axis
        R=(0,0,1, )
                                             cos           sin   0
                    cos         sin
      R                                      sin           cos   0
                    sin      cos
                                               0            0    1

                          cos         sin          0   0
                          sin         cos          0   0
      R (0,0,1,      )
                            0            0         1   0
                            0            0         0   1




3D Transformation    Supriya H. Madane                               10
Rotations about the X axis

Let’s look at the other axis rotations
                                             R=(1,0,0, )

                                         1     0     0     0
                                         0   cos    sin    0
           R (1,0,0,          )
                                         0   sin   cos     0
                                         0     0     0     1

   3D Transformation       Supriya H. Madane                   11
Rotations about the Y axis

                R=(0,1,0, )

                              cos       0   sin   0
                                 0      1     0   0
       R (0,1,0, )
                                sin     0   cos   0
                                 0      0     0   1

3D Transformation   Supriya H. Madane                 12
Viewing in 3D




      3D Transformation   Supriya H. Madane   Slide 13
 Man-made objects often have “cube-like” shape.
  These objects have 3 principal axes.




                      From www.loc.gov/ jefftour/cutaway.html

        3D Transformation                              Supriya H. Madane   Slide 14
Display device
 (a screen) is       • How do we map 3D objects to 2D space?
     2D…

 2D to 2D is         • 2D window to world.. and a viewport on the 2D
                       surface.
   straight          • Clip what won't be shown in the 2D window, and
  forward…             map the remainder to the viewport.


 3D to 2D is
                     • Solution : Transform 3D objects on
   more                to a 2D plane using projections
complicated…
      3D Transformation                   Supriya H. Madane    Slide 15
Rays converge on eye position                             Rays parallel to view plane

                       Perspective            Parallel




                     Orthographic                                   Oblique




              Elevations        Axonometric              Cavalier             Cabinet




       Top    Left    Right      Isometric Dimetric Trimetric
 In 3D…
  ď‚— View volume in the world
  ď‚— Projection onto the 2D projection plane
  ď‚— A viewport to the view surface
 Process…
   1… clip against the view volume,
   2… project to 2D plane, or window,
   3… map to viewport.




           3D Transformation             Supriya H. Madane   Slide 17
ď‚— Conceptual Model of the 3D viewing process




3D Transformation   Supriya H. Madane   18
ď‚— 2 types of projections
   ď‚— perspective and parallel.


ď‚— Key factor is the center of projection.
   ď‚— if distance to center of projection is finite : perspective
   ď‚— if infinite : parallel




            3D Transformation                       Supriya H. Madane   Slide 19
ď‚— Perspective:
  ď‚— visual effect is similar to human visual system...
  ď‚— has 'perspective foreshortening'
    ď‚— size of object varies inversely with distance from the center of
      projection.
  ď‚— angles only remain intact for faces parallel to projection
    plane.
ď‚— Parallel:
  ď‚— less realistic view because of no foreshortening
  ď‚— however, parallel lines remain parallel.
  ď‚— angles only remain intact for faces parallel to projection
    plane.
           3D Transformation                    Supriya H. Madane    Slide
ď‚— Any parallel lines not parallel to the projection
  plane, converge at a vanishing point.
  ď‚— There are an infinite number of these, 1 for each of the
    infinite amount of directions line can be oriented.


ď‚— If a set of lines are parallel to one of the three
  principle axes, the vanishing point is called an axis
  vanishing point.
  ď‚— There are at most 3 such points, corresponding to the
    number of axes cut by the projection plane.


          3D Transformation              Supriya H. Madane   Slide 21
One point, two point, three point perspective




  One point perspective: One principal axis intersects view plane




              3D Transformation                   Supriya H. Madane   Slide
One point, two point, three point perspective

 Two point perspective: two principal axes intersect view plane




  3D Transformation    Supriya H. Madane                          23
One point, two point, three point perspective




 3D Transformation Supriya Three principal axes intersect view plane
     Three point perspective: H. Madane                                24
View Plane


                                                     Three point




                                              Two point




3D Transformation     Supriya H. Madane
                                  One point                        25
ď‚— 2 principle types:
  ď‚— orthographic and oblique.


ď‚— Orthographic :
  ď‚— direction of projection = normal to the projection plane.


ď‚— Oblique :
  ď‚— direction of projection != normal to the projection
    plane.



         3D Transformation              Supriya H. Madane   Slide
ď‚— Orthographic (or orthogonal) projections:
   ď‚— front elevation, top-elevation and side-elevation.
   ď‚— all have projection plane perpendicular to a principle axes.


ď‚— Useful because angle and distance measurements can be
  made...

ď‚— However, As only one face of an object is shown, it can be
  hard to create a mental image of the object, even when
  several view are available.




            3D Transformation                    Supriya H. Madane   Slide
ď‚— Orthogonal projections:




3D Transformation   Supriya H. Madane   28
3D Transformation   Supriya H. Madane   Slide
3D Transformation   Supriya H. Madane   30
3D Transformation   Supriya H. Madane   31

Weitere ähnliche Inhalte

Was ist angesagt?

3 D Graphics
3 D Graphics3 D Graphics
3 D GraphicsGhaffar Khan
 
3D TRANSFORMATION: MATRIX REPRESENTATION
3D TRANSFORMATION: MATRIX REPRESENTATION3D TRANSFORMATION: MATRIX REPRESENTATION
3D TRANSFORMATION: MATRIX REPRESENTATIONAhtesham Ullah khan
 
3D Transformation in Computer Graphics
3D Transformation in Computer Graphics3D Transformation in Computer Graphics
3D Transformation in Computer Graphicssabbirantor
 
3d transformation computer graphics
3d transformation computer graphics 3d transformation computer graphics
3d transformation computer graphics University of Potsdam
 
3 d transformation
3 d transformation3 d transformation
3 d transformationPooja Dixit
 
3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewingabhishek1235010004
 
Modeling Transformations
Modeling TransformationsModeling Transformations
Modeling TransformationsTarun Gehlot
 
Three dimensional transformations
Three dimensional transformationsThree dimensional transformations
Three dimensional transformationsNareek
 
Transformations computer graphics
Transformations computer graphics Transformations computer graphics
Transformations computer graphics Vikram Halder
 
Computer Graphics - Lecture 02 transformation
Computer Graphics - Lecture 02 transformationComputer Graphics - Lecture 02 transformation
Computer Graphics - Lecture 02 transformationđź’» Anton Gerdelan
 
2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)Amit Kapoor
 
Overview of 2D and 3D Transformation
Overview of 2D and 3D TransformationOverview of 2D and 3D Transformation
Overview of 2D and 3D TransformationDheeraj Sadawarte
 
3 d transformations
3 d transformations3 d transformations
3 d transformationsSarvodhya Bahri
 
3 d transformation
3 d transformation3 d transformation
3 d transformationPooja Dixit
 
Lect8 viewing in3d&transformation
Lect8 viewing in3d&transformationLect8 viewing in3d&transformation
Lect8 viewing in3d&transformationBCET
 
3 d transformations
3 d transformations3 d transformations
3 d transformationsAnkit Garg
 
3 d scaling and translation in homogeneous coordinates
3 d scaling and translation in homogeneous coordinates3 d scaling and translation in homogeneous coordinates
3 d scaling and translation in homogeneous coordinatesKRIPA SHNAKAR TIWARI
 
3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics FundamentalsMuhammed Afsal Villan
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D2013901097
 
Composite transformations
Composite transformationsComposite transformations
Composite transformationsMohd Arif
 

Was ist angesagt? (20)

3 D Graphics
3 D Graphics3 D Graphics
3 D Graphics
 
3D TRANSFORMATION: MATRIX REPRESENTATION
3D TRANSFORMATION: MATRIX REPRESENTATION3D TRANSFORMATION: MATRIX REPRESENTATION
3D TRANSFORMATION: MATRIX REPRESENTATION
 
3D Transformation in Computer Graphics
3D Transformation in Computer Graphics3D Transformation in Computer Graphics
3D Transformation in Computer Graphics
 
3d transformation computer graphics
3d transformation computer graphics 3d transformation computer graphics
3d transformation computer graphics
 
3 d transformation
3 d transformation3 d transformation
3 d transformation
 
3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewing
 
Modeling Transformations
Modeling TransformationsModeling Transformations
Modeling Transformations
 
Three dimensional transformations
Three dimensional transformationsThree dimensional transformations
Three dimensional transformations
 
Transformations computer graphics
Transformations computer graphics Transformations computer graphics
Transformations computer graphics
 
Computer Graphics - Lecture 02 transformation
Computer Graphics - Lecture 02 transformationComputer Graphics - Lecture 02 transformation
Computer Graphics - Lecture 02 transformation
 
2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)
 
Overview of 2D and 3D Transformation
Overview of 2D and 3D TransformationOverview of 2D and 3D Transformation
Overview of 2D and 3D Transformation
 
3 d transformations
3 d transformations3 d transformations
3 d transformations
 
3 d transformation
3 d transformation3 d transformation
3 d transformation
 
Lect8 viewing in3d&transformation
Lect8 viewing in3d&transformationLect8 viewing in3d&transformation
Lect8 viewing in3d&transformation
 
3 d transformations
3 d transformations3 d transformations
3 d transformations
 
3 d scaling and translation in homogeneous coordinates
3 d scaling and translation in homogeneous coordinates3 d scaling and translation in homogeneous coordinates
3 d scaling and translation in homogeneous coordinates
 
3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D
 
Composite transformations
Composite transformationsComposite transformations
Composite transformations
 

Andere mochten auch

3D Geometric Transformations
3D Geometric Transformations3D Geometric Transformations
3D Geometric TransformationsIshan Parekh
 
Nanocatalysts in Refining & Petrochemical Processes
Nanocatalysts in Refining & Petrochemical ProcessesNanocatalysts in Refining & Petrochemical Processes
Nanocatalysts in Refining & Petrochemical ProcessesGerard B. Hawkins
 
nano catalysis as a prospectus of green chemistry
nano catalysis as a prospectus of green chemistry nano catalysis as a prospectus of green chemistry
nano catalysis as a prospectus of green chemistry Ankit Grover
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphicanku2266
 
Notes 2D-Transformation Unit 2 Computer graphics
Notes 2D-Transformation Unit 2 Computer graphicsNotes 2D-Transformation Unit 2 Computer graphics
Notes 2D-Transformation Unit 2 Computer graphicsNANDINI SHARMA
 
What is catalysis, its type and its application
What is catalysis, its type and its applicationWhat is catalysis, its type and its application
What is catalysis, its type and its applicationLovnish Thakur
 

Andere mochten auch (12)

3D Geometric Transformations
3D Geometric Transformations3D Geometric Transformations
3D Geometric Transformations
 
Nanocatalysis
NanocatalysisNanocatalysis
Nanocatalysis
 
Curves
CurvesCurves
Curves
 
Nanocatalysts in Refining & Petrochemical Processes
Nanocatalysts in Refining & Petrochemical ProcessesNanocatalysts in Refining & Petrochemical Processes
Nanocatalysts in Refining & Petrochemical Processes
 
nano catalysis as a prospectus of green chemistry
nano catalysis as a prospectus of green chemistry nano catalysis as a prospectus of green chemistry
nano catalysis as a prospectus of green chemistry
 
3 d viewing
3 d viewing3 d viewing
3 d viewing
 
Polygon mesh
Polygon  meshPolygon  mesh
Polygon mesh
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphic
 
Curves and surfaces
Curves and surfacesCurves and surfaces
Curves and surfaces
 
Indifference curves
Indifference curvesIndifference curves
Indifference curves
 
Notes 2D-Transformation Unit 2 Computer graphics
Notes 2D-Transformation Unit 2 Computer graphicsNotes 2D-Transformation Unit 2 Computer graphics
Notes 2D-Transformation Unit 2 Computer graphics
 
What is catalysis, its type and its application
What is catalysis, its type and its applicationWhat is catalysis, its type and its application
What is catalysis, its type and its application
 

Ă„hnlich wie Unit3 3d

Computer Graphics & linear Algebra
Computer Graphics & linear Algebra Computer Graphics & linear Algebra
Computer Graphics & linear Algebra Xad Kuain
 
Lect9 transformation3d
Lect9 transformation3dLect9 transformation3d
Lect9 transformation3dBCET
 
Computer Graphics
Computer GraphicsComputer Graphics
Computer Graphicssaifnasir3
 
Cylindrical and spherical coordinates
Cylindrical and spherical coordinatesCylindrical and spherical coordinates
Cylindrical and spherical coordinatesvenkateshp100
 
3D Transformation
3D Transformation3D Transformation
3D TransformationSwatiHans10
 

Ă„hnlich wie Unit3 3d (6)

Computer Graphics & linear Algebra
Computer Graphics & linear Algebra Computer Graphics & linear Algebra
Computer Graphics & linear Algebra
 
Lect9 transformation3d
Lect9 transformation3dLect9 transformation3d
Lect9 transformation3d
 
Computer Graphics
Computer GraphicsComputer Graphics
Computer Graphics
 
Cylindrical and spherical coordinates
Cylindrical and spherical coordinatesCylindrical and spherical coordinates
Cylindrical and spherical coordinates
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
 
Transforms UNIt 2
Transforms UNIt 2 Transforms UNIt 2
Transforms UNIt 2
 

Unit3 3d

  • 2. 3D Transformation Supriya H. Madane Slide 2
  • 3. Types of 3D reference system according to co-ordiante axes. Left handed System Right handed System 3D Transformation Supriya H. Madane Slide 3
  • 4. 1) Left handed System 3D Transformation Supriya H. Madane Slide 4
  • 5. 2) Right handed System 3D Transformation Supriya H. Madane Slide 5
  • 6. 3D Transformation Supriya H. Madane Slide 6
  • 7. Translation 3D Transformation Rotation 3D Transformation Supriya H. Madane Slide 7
  • 8. Translation in 3D! ď‚— Remembering 2D transformations -> 3x3 matrices, take a wild guess what happens to 3D transformations. 1 0 tx x tx T tx , t y 0 1 ty T=(tx, ty, tz) y ty 0 0 1 1 0 0 tx x tx 0 1 0 ty T tx , t y , tz y ty 0 0 1 tz z tz 0 0 0 1 3D Transformation Supriya H. Madane Slide 8
  • 9. Scaling, 3D Style sx 0 0 S=(sx, sy, sz) sx 0 x S sx , s y * 0 sy 0 0 sy y 0 0 1 sx 0 0 0 sx 0 0 x 0 sy 0 0 S sx , s y , sz 0 sy 0 * y 0 0 sz 0 0 0 sz z 0 0 0 1 3D Transformation Supriya H. Madane 9
  • 10. Rotations about the Z axis R=(0,0,1, ) cos sin 0 cos sin R sin cos 0 sin cos 0 0 1 cos sin 0 0 sin cos 0 0 R (0,0,1, ) 0 0 1 0 0 0 0 1 3D Transformation Supriya H. Madane 10
  • 11. Rotations about the X axis Let’s look at the other axis rotations R=(1,0,0, ) 1 0 0 0 0 cos sin 0 R (1,0,0, ) 0 sin cos 0 0 0 0 1 3D Transformation Supriya H. Madane 11
  • 12. Rotations about the Y axis R=(0,1,0, ) cos 0 sin 0 0 1 0 0 R (0,1,0, ) sin 0 cos 0 0 0 0 1 3D Transformation Supriya H. Madane 12
  • 13. Viewing in 3D 3D Transformation Supriya H. Madane Slide 13
  • 14. ď‚— Man-made objects often have “cube-like” shape. These objects have 3 principal axes. From www.loc.gov/ jefftour/cutaway.html 3D Transformation Supriya H. Madane Slide 14
  • 15. Display device (a screen) is • How do we map 3D objects to 2D space? 2D… 2D to 2D is • 2D window to world.. and a viewport on the 2D surface. straight • Clip what won't be shown in the 2D window, and forward… map the remainder to the viewport. 3D to 2D is • Solution : Transform 3D objects on more to a 2D plane using projections complicated… 3D Transformation Supriya H. Madane Slide 15
  • 16. Rays converge on eye position Rays parallel to view plane Perspective Parallel Orthographic Oblique Elevations Axonometric Cavalier Cabinet Top Left Right Isometric Dimetric Trimetric
  • 17. ď‚— In 3D… ď‚— View volume in the world ď‚— Projection onto the 2D projection plane ď‚— A viewport to the view surface ď‚— Process… ď‚— 1… clip against the view volume, ď‚— 2… project to 2D plane, or window, ď‚— 3… map to viewport. 3D Transformation Supriya H. Madane Slide 17
  • 18. ď‚— Conceptual Model of the 3D viewing process 3D Transformation Supriya H. Madane 18
  • 19. ď‚— 2 types of projections ď‚— perspective and parallel. ď‚— Key factor is the center of projection. ď‚— if distance to center of projection is finite : perspective ď‚— if infinite : parallel 3D Transformation Supriya H. Madane Slide 19
  • 20. ď‚— Perspective: ď‚— visual effect is similar to human visual system... ď‚— has 'perspective foreshortening' ď‚— size of object varies inversely with distance from the center of projection. ď‚— angles only remain intact for faces parallel to projection plane. ď‚— Parallel: ď‚— less realistic view because of no foreshortening ď‚— however, parallel lines remain parallel. ď‚— angles only remain intact for faces parallel to projection plane. 3D Transformation Supriya H. Madane Slide
  • 21. ď‚— Any parallel lines not parallel to the projection plane, converge at a vanishing point. ď‚— There are an infinite number of these, 1 for each of the infinite amount of directions line can be oriented. ď‚— If a set of lines are parallel to one of the three principle axes, the vanishing point is called an axis vanishing point. ď‚— There are at most 3 such points, corresponding to the number of axes cut by the projection plane. 3D Transformation Supriya H. Madane Slide 21
  • 22. One point, two point, three point perspective One point perspective: One principal axis intersects view plane 3D Transformation Supriya H. Madane Slide
  • 23. One point, two point, three point perspective Two point perspective: two principal axes intersect view plane 3D Transformation Supriya H. Madane 23
  • 24. One point, two point, three point perspective 3D Transformation Supriya Three principal axes intersect view plane Three point perspective: H. Madane 24
  • 25. View Plane Three point Two point 3D Transformation Supriya H. Madane One point 25
  • 26. ď‚— 2 principle types: ď‚— orthographic and oblique. ď‚— Orthographic : ď‚— direction of projection = normal to the projection plane. ď‚— Oblique : ď‚— direction of projection != normal to the projection plane. 3D Transformation Supriya H. Madane Slide
  • 27. ď‚— Orthographic (or orthogonal) projections: ď‚— front elevation, top-elevation and side-elevation. ď‚— all have projection plane perpendicular to a principle axes. ď‚— Useful because angle and distance measurements can be made... ď‚— However, As only one face of an object is shown, it can be hard to create a mental image of the object, even when several view are available. 3D Transformation Supriya H. Madane Slide
  • 28. ď‚— Orthogonal projections: 3D Transformation Supriya H. Madane 28
  • 29. 3D Transformation Supriya H. Madane Slide
  • 30. 3D Transformation Supriya H. Madane 30
  • 31. 3D Transformation Supriya H. Madane 31