SlideShare a Scribd company logo
1 of 14
3-D Geometric Transformations
Geometric Transformation : The object itself
    is moved relative to a stationary coordinate
    system or background.
With respect to some 3-D coordinate system, an
    object Obj is considered as a set of points.
       Obj = { P(x,y,z)}
If the Obj moves to a new position, the new
    object Obj’ is considered:
      Obj’ = { P’(x’,y’,z’)}
Translation
Moving an object is called a translation. We
  translate an object by translating each
  vertex in the object.
              x’ = x + tx
              y’ = y + ty
              z’ = z + tz
The translating distance pair( tx, ty, tz) is
called a translation vector or shift vector.
We can also write this equation in a single
Matrix using column vectors:
         x’     1 0 0 tx        x
         y’ = 0 1 0 ty          y
         z’     0 0 1 tz        z
          1     0 0 0 1         1
Rotation
In 2-D, a rotation is prescribed by an angle θ
   & a center of rotation P. But in 3-D
   rotations require the prescription of an
   angle of rotation & an axis of rotation.
 Rotation about the z axis:

          R θ,K  x’ = x cosθ – y sinθ
                  y’ = x sinθ – y cosθ
                  z’ = z
Rotation about the y axis:
         R θ,J  x’ = x cosθ + z sinθ
                  y’ = y
                  z’ = - x sinθ + z cosθ
Rotation about the x axis:
         R θ,I  x’ = x
                  y’ = y cosθ – z sinθ
                  z’ = y sinθ + z cosθ
& the rotation matrix corresponding is
                      cos θ -sin θ 0
            R θ,K = sin θ cos θ 0
                      0       0     1

                     cos θ 0      sin θ
           R θ,J =    0    1       0
                     -sin θ   0 cos θ
1    0     0
R θ,I =   0 cos θ -sin θ
          0   sin θ   cos θ
Scaling
     Changing the size of an object is called
Scaling . The scale factor s determines
whether the scaling is a magnification, s > 1,
Or a reduction, s < 1. Scaling with respect to
the origin, where the origin remains fixed,
                          x’ = x . sx
           Ssx,sy,sz  y’ = y . sy
                     z’ = z . sz
The transformation equations can be written
in the matrix form:
      x’      sx 0 0       x
      y’ = 0 sy 0 . y
      z’      0   0 sz      z
Coordinate Transformation
Translation
If the xyz coordinate system is displaced to a
new position, the coordinates of a point in
both systems are related by the translation
Transformation:
Tv  (x’,y’,z’) = Tv (x,y,z)
where            x’ = x – tx,
           y’ = y – ty , z’ = z – tz
In matrix notation,
         1 0 0 -tx
 Tv = 0 1 0 -ty
         0 0 1 -tz
         0 0 0 1
Similarly, we can express the coordinate
   scaling & rotation transformations.
Composite Transformation
More complex geometric and coordinate
transformations are formed the process of
composition of functions.
Rotation About an Arbitrary Axis in space:
1.) Translate the object so that the rotation
    axis passes through the coordinate origin.
2.) Rotate the object so that the axis of
    rotation coincides with one of the
    coordinate axes.
3.) Perform the specific rotation about the
   coordinate axis.
4.) Apply inverse rotations to bring the
   rotation axis back to its original
   orientation.
5.) Apply the inverse translation to bring the
   rotation axis back to its original position.
We can transform the rotation axis onto any
   of the three coordinate axes. For eg. We
   are taking rotation onto the z-axis.
y
                P2        P2

                                      P1’
                     x
           P1            P1’
z                                   P2’’


                                             P2
                               P2

        P1’

                         P1’                P1
    P2’’

More Related Content

What's hot

Reflection transformation
Reflection transformationReflection transformation
Reflection transformationMani Kanth
 
Window to viewport transformation&amp;matrix representation of homogeneous co...
Window to viewport transformation&amp;matrix representation of homogeneous co...Window to viewport transformation&amp;matrix representation of homogeneous co...
Window to viewport transformation&amp;matrix representation of homogeneous co...Mani Kanth
 
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
 
3 d transformation
3 d transformation3 d transformation
3 d transformationMani Kanth
 
Coordinate transformation
Coordinate transformationCoordinate transformation
Coordinate transformationMohd Arif
 
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPTHOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPTAhtesham Ullah khan
 
Circle drawing algo.
Circle drawing algo.Circle drawing algo.
Circle drawing algo.Mohd Arif
 
Raster scan system & random scan system
Raster scan system & random scan systemRaster scan system & random scan system
Raster scan system & random scan systemshalinikarunakaran1
 
Viewing transformation
Viewing transformationViewing transformation
Viewing transformationUdayan Gupta
 
Projection In Computer Graphics
Projection In Computer GraphicsProjection In Computer Graphics
Projection In Computer GraphicsSanu Philip
 
Two dimentional transform
Two dimentional transformTwo dimentional transform
Two dimentional transformPatel Punit
 
3D Transformation
3D Transformation3D Transformation
3D TransformationSwatiHans10
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphicanku2266
 
Two dimensional viewing
Two dimensional viewingTwo dimensional viewing
Two dimensional viewingMohd Arif
 
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath YogiTekendra Nath Yogi
 
Homogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearingHomogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearingManthan Kanani
 

What's hot (20)

Reflection transformation
Reflection transformationReflection transformation
Reflection transformation
 
Window to viewport transformation&amp;matrix representation of homogeneous co...
Window to viewport transformation&amp;matrix representation of homogeneous co...Window to viewport transformation&amp;matrix representation of homogeneous co...
Window to viewport transformation&amp;matrix representation of homogeneous co...
 
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
 
3 d transformation
3 d transformation3 d transformation
3 d transformation
 
Coordinate transformation
Coordinate transformationCoordinate transformation
Coordinate transformation
 
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPTHOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
 
Circle drawing algo.
Circle drawing algo.Circle drawing algo.
Circle drawing algo.
 
Raster scan system & random scan system
Raster scan system & random scan systemRaster scan system & random scan system
Raster scan system & random scan system
 
Spline representations
Spline representationsSpline representations
Spline representations
 
Viewing transformation
Viewing transformationViewing transformation
Viewing transformation
 
Bresenham circle
Bresenham circleBresenham circle
Bresenham circle
 
Projection In Computer Graphics
Projection In Computer GraphicsProjection In Computer Graphics
Projection In Computer Graphics
 
Two dimentional transform
Two dimentional transformTwo dimentional transform
Two dimentional transform
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphic
 
BRESENHAM’S LINE DRAWING ALGORITHM
BRESENHAM’S  LINE DRAWING ALGORITHMBRESENHAM’S  LINE DRAWING ALGORITHM
BRESENHAM’S LINE DRAWING ALGORITHM
 
Two dimensional viewing
Two dimensional viewingTwo dimensional viewing
Two dimensional viewing
 
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
 
Homogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearingHomogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearing
 
Dda algorithm
Dda algorithmDda algorithm
Dda algorithm
 

Viewers also liked

3 d projections
3 d projections3 d projections
3 d projectionsMohd Arif
 
Introduction to Computer graphics
Introduction to Computer graphics Introduction to Computer graphics
Introduction to Computer graphics PrathimaBaliga
 
Display devices CRT and LCD screen
Display devices CRT and LCD screenDisplay devices CRT and LCD screen
Display devices CRT and LCD screenManoj Harsule
 
Computer Graphics Notes
Computer Graphics NotesComputer Graphics Notes
Computer Graphics NotesGurpreet singh
 
CG - Display Devices
CG - Display DevicesCG - Display Devices
CG - Display Devicesvinay arora
 
3D Geometric Transformations
3D Geometric Transformations3D Geometric Transformations
3D Geometric TransformationsIshan Parekh
 
Video display device
Video display deviceVideo display device
Video display devicemissagrata
 
Computer Graphics Notes (B.Tech, KUK, MDU)
Computer Graphics Notes (B.Tech, KUK, MDU)Computer Graphics Notes (B.Tech, KUK, MDU)
Computer Graphics Notes (B.Tech, KUK, MDU)Rajesh Kamboj
 
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
 
applications of computer graphics
applications of computer graphicsapplications of computer graphics
applications of computer graphicsAaina Katyal
 
2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinatesTarun Gehlot
 
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displaysSomya Bagai
 
3d transformation computer graphics
3d transformation computer graphics 3d transformation computer graphics
3d transformation computer graphics University of Potsdam
 
liquid crystal display
liquid crystal displayliquid crystal display
liquid crystal displayDinesh Pasi
 

Viewers also liked (17)

3 d projections
3 d projections3 d projections
3 d projections
 
lecture1 introduction to computer graphics(Computer graphics tutorials)
lecture1 introduction to computer graphics(Computer graphics tutorials)lecture1 introduction to computer graphics(Computer graphics tutorials)
lecture1 introduction to computer graphics(Computer graphics tutorials)
 
Introduction to Computer graphics
Introduction to Computer graphics Introduction to Computer graphics
Introduction to Computer graphics
 
Display devices CRT and LCD screen
Display devices CRT and LCD screenDisplay devices CRT and LCD screen
Display devices CRT and LCD screen
 
Computer Graphics Notes
Computer Graphics NotesComputer Graphics Notes
Computer Graphics Notes
 
CG - Display Devices
CG - Display DevicesCG - Display Devices
CG - Display Devices
 
3D Geometric Transformations
3D Geometric Transformations3D Geometric Transformations
3D Geometric Transformations
 
transformation 3d
transformation 3dtransformation 3d
transformation 3d
 
Video display device
Video display deviceVideo display device
Video display device
 
Computer Graphics Notes (B.Tech, KUK, MDU)
Computer Graphics Notes (B.Tech, KUK, MDU)Computer Graphics Notes (B.Tech, KUK, MDU)
Computer Graphics Notes (B.Tech, KUK, MDU)
 
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)
 
applications of computer graphics
applications of computer graphicsapplications of computer graphics
applications of computer graphics
 
2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates
 
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displays
 
2d/3D transformations in computer graphics(Computer graphics Tutorials)
2d/3D transformations in computer graphics(Computer graphics Tutorials)2d/3D transformations in computer graphics(Computer graphics Tutorials)
2d/3D transformations in computer graphics(Computer graphics Tutorials)
 
3d transformation computer graphics
3d transformation computer graphics 3d transformation computer graphics
3d transformation computer graphics
 
liquid crystal display
liquid crystal displayliquid crystal display
liquid crystal display
 

Similar to 3 d geometric transformations

Similar to 3 d geometric transformations (20)

2D Translation.pdf
2D Translation.pdf2D Translation.pdf
2D Translation.pdf
 
2d transformation
2d transformation2d transformation
2d transformation
 
Three dimensional transformations
Three dimensional transformationsThree dimensional transformations
Three dimensional transformations
 
2D-transformation-1.pdf
2D-transformation-1.pdf2D-transformation-1.pdf
2D-transformation-1.pdf
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
 
2D transformations
2D transformations2D transformations
2D transformations
 
3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewing
 
2-D Transformations.pdf
2-D Transformations.pdf2-D Transformations.pdf
2-D Transformations.pdf
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D
 
Computer Graphics - transformations in 2d
Computer Graphics - transformations in 2dComputer Graphics - transformations in 2d
Computer Graphics - transformations in 2d
 
09transformation3d
09transformation3d09transformation3d
09transformation3d
 
2D Transformation.pdf
2D Transformation.pdf2D Transformation.pdf
2D Transformation.pdf
 
Unit 3 notes
Unit 3 notesUnit 3 notes
Unit 3 notes
 
Computer graphics presentation
Computer graphics presentationComputer graphics presentation
Computer graphics presentation
 
Three dimensional geometric transformations
Three dimensional geometric transformationsThree dimensional geometric transformations
Three dimensional geometric transformations
 
2 d transformations
2 d transformations2 d transformations
2 d transformations
 
seminar on 2D transformation
seminar on 2D transformationseminar on 2D transformation
seminar on 2D transformation
 
Em03 t
Em03 tEm03 t
Em03 t
 
Nyquist Stability Criterion
Nyquist  Stability CriterionNyquist  Stability Criterion
Nyquist Stability Criterion
 
Transforms UNIt 2
Transforms UNIt 2 Transforms UNIt 2
Transforms UNIt 2
 

More from Mohd Arif

Bootp and dhcp
Bootp and dhcpBootp and dhcp
Bootp and dhcpMohd Arif
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarpMohd Arif
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocolMohd Arif
 
Project identification
Project identificationProject identification
Project identificationMohd Arif
 
Project evalaution techniques
Project evalaution techniquesProject evalaution techniques
Project evalaution techniquesMohd Arif
 
Presentation
PresentationPresentation
PresentationMohd Arif
 
Pointers in c
Pointers in cPointers in c
Pointers in cMohd Arif
 
Peer to-peer
Peer to-peerPeer to-peer
Peer to-peerMohd Arif
 
Overview of current communications systems
Overview of current communications systemsOverview of current communications systems
Overview of current communications systemsMohd Arif
 
Overall 23 11_2007_hdp
Overall 23 11_2007_hdpOverall 23 11_2007_hdp
Overall 23 11_2007_hdpMohd Arif
 
Objectives of budgeting
Objectives of budgetingObjectives of budgeting
Objectives of budgetingMohd Arif
 
Network management
Network managementNetwork management
Network managementMohd Arif
 
Networing basics
Networing basicsNetworing basics
Networing basicsMohd Arif
 
Iris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platformIris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platformMohd Arif
 
Ip sec and ssl
Ip sec and  sslIp sec and  ssl
Ip sec and sslMohd Arif
 
Ip security in i psec
Ip security in i psecIp security in i psec
Ip security in i psecMohd Arif
 
Intro to comp. hardware
Intro to comp. hardwareIntro to comp. hardware
Intro to comp. hardwareMohd Arif
 

More from Mohd Arif (20)

Bootp and dhcp
Bootp and dhcpBootp and dhcp
Bootp and dhcp
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
Project identification
Project identificationProject identification
Project identification
 
Project evalaution techniques
Project evalaution techniquesProject evalaution techniques
Project evalaution techniques
 
Presentation
PresentationPresentation
Presentation
 
Pointers in c
Pointers in cPointers in c
Pointers in c
 
Peer to-peer
Peer to-peerPeer to-peer
Peer to-peer
 
Overview of current communications systems
Overview of current communications systemsOverview of current communications systems
Overview of current communications systems
 
Overall 23 11_2007_hdp
Overall 23 11_2007_hdpOverall 23 11_2007_hdp
Overall 23 11_2007_hdp
 
Objectives of budgeting
Objectives of budgetingObjectives of budgeting
Objectives of budgeting
 
Network management
Network managementNetwork management
Network management
 
Networing basics
Networing basicsNetworing basics
Networing basics
 
Loaders
LoadersLoaders
Loaders
 
Lists
ListsLists
Lists
 
Iris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platformIris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platform
 
Ip sec and ssl
Ip sec and  sslIp sec and  ssl
Ip sec and ssl
 
Ip security in i psec
Ip security in i psecIp security in i psec
Ip security in i psec
 
Intro to comp. hardware
Intro to comp. hardwareIntro to comp. hardware
Intro to comp. hardware
 
Heap sort
Heap sortHeap sort
Heap sort
 

3 d geometric transformations

  • 1. 3-D Geometric Transformations Geometric Transformation : The object itself is moved relative to a stationary coordinate system or background. With respect to some 3-D coordinate system, an object Obj is considered as a set of points. Obj = { P(x,y,z)} If the Obj moves to a new position, the new object Obj’ is considered: Obj’ = { P’(x’,y’,z’)}
  • 2. Translation Moving an object is called a translation. We translate an object by translating each vertex in the object. x’ = x + tx y’ = y + ty z’ = z + tz
  • 3. The translating distance pair( tx, ty, tz) is called a translation vector or shift vector. We can also write this equation in a single Matrix using column vectors: x’ 1 0 0 tx x y’ = 0 1 0 ty y z’ 0 0 1 tz z 1 0 0 0 1 1
  • 4. Rotation In 2-D, a rotation is prescribed by an angle θ & a center of rotation P. But in 3-D rotations require the prescription of an angle of rotation & an axis of rotation.  Rotation about the z axis: R θ,K  x’ = x cosθ – y sinθ y’ = x sinθ – y cosθ z’ = z
  • 5. Rotation about the y axis: R θ,J  x’ = x cosθ + z sinθ y’ = y z’ = - x sinθ + z cosθ Rotation about the x axis: R θ,I  x’ = x y’ = y cosθ – z sinθ z’ = y sinθ + z cosθ
  • 6. & the rotation matrix corresponding is cos θ -sin θ 0 R θ,K = sin θ cos θ 0 0 0 1 cos θ 0 sin θ R θ,J = 0 1 0 -sin θ 0 cos θ
  • 7. 1 0 0 R θ,I = 0 cos θ -sin θ 0 sin θ cos θ
  • 8. Scaling Changing the size of an object is called Scaling . The scale factor s determines whether the scaling is a magnification, s > 1, Or a reduction, s < 1. Scaling with respect to the origin, where the origin remains fixed, x’ = x . sx Ssx,sy,sz  y’ = y . sy z’ = z . sz
  • 9. The transformation equations can be written in the matrix form: x’ sx 0 0 x y’ = 0 sy 0 . y z’ 0 0 sz z
  • 10. Coordinate Transformation Translation If the xyz coordinate system is displaced to a new position, the coordinates of a point in both systems are related by the translation Transformation: Tv  (x’,y’,z’) = Tv (x,y,z) where x’ = x – tx, y’ = y – ty , z’ = z – tz
  • 11. In matrix notation, 1 0 0 -tx Tv = 0 1 0 -ty 0 0 1 -tz 0 0 0 1 Similarly, we can express the coordinate scaling & rotation transformations.
  • 12. Composite Transformation More complex geometric and coordinate transformations are formed the process of composition of functions. Rotation About an Arbitrary Axis in space: 1.) Translate the object so that the rotation axis passes through the coordinate origin. 2.) Rotate the object so that the axis of rotation coincides with one of the coordinate axes.
  • 13. 3.) Perform the specific rotation about the coordinate axis. 4.) Apply inverse rotations to bring the rotation axis back to its original orientation. 5.) Apply the inverse translation to bring the rotation axis back to its original position. We can transform the rotation axis onto any of the three coordinate axes. For eg. We are taking rotation onto the z-axis.
  • 14. y P2 P2 P1’ x P1 P1’ z P2’’ P2 P2 P1’ P1’ P1 P2’’