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

Raster Scan and Raster Scan Displays
Raster Scan and Raster Scan DisplaysRaster Scan and Raster Scan Displays
Raster Scan and Raster Scan DisplaysSaravana Priya
 
Projection In Computer Graphics
Projection In Computer GraphicsProjection In Computer Graphics
Projection In Computer GraphicsSanu Philip
 
Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)shalinikarunakaran1
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformationAnkit Garg
 
2D Transformation in Computer Graphics
2D Transformation in Computer Graphics2D Transformation in Computer Graphics
2D Transformation in Computer GraphicsA. S. M. Shafi
 
Composite transformations
Composite transformationsComposite transformations
Composite transformationsMohd Arif
 
Reflection transformation
Reflection transformationReflection transformation
Reflection transformationMani Kanth
 
Midpoint circle algo
Midpoint circle algoMidpoint circle algo
Midpoint circle algoMohd Arif
 
Coordinate transformation
Coordinate transformationCoordinate transformation
Coordinate transformationMohd Arif
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics systemKamal Acharya
 
Two dimensional geometric transformations
Two dimensional geometric transformationsTwo dimensional geometric transformations
Two dimensional geometric transformationsMohammad Sadiq
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer GraphicsKamal Acharya
 
Intro to scan conversion
Intro to scan conversionIntro to scan conversion
Intro to scan conversionMohd Arif
 
Hearn and Baker 2 D transformations
Hearn and Baker 2 D transformations   Hearn and Baker 2 D transformations
Hearn and Baker 2 D transformations Taher Barodawala
 
Bezier Curve in Computer Graphics.docx
Bezier Curve in Computer Graphics.docxBezier Curve in Computer Graphics.docx
Bezier Curve in Computer Graphics.docxbcanawakadalcollege
 
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
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clippingMohd Arif
 

What's hot (20)

Raster Scan and Raster Scan Displays
Raster Scan and Raster Scan DisplaysRaster Scan and Raster Scan Displays
Raster Scan and Raster Scan Displays
 
Projection In Computer Graphics
Projection In Computer GraphicsProjection In Computer Graphics
Projection In Computer Graphics
 
Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)
 
Clipping
ClippingClipping
Clipping
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
 
2D Transformation in Computer Graphics
2D Transformation in Computer Graphics2D Transformation in Computer Graphics
2D Transformation in Computer Graphics
 
Composite transformations
Composite transformationsComposite transformations
Composite transformations
 
BRESENHAM’S LINE DRAWING ALGORITHM
BRESENHAM’S  LINE DRAWING ALGORITHMBRESENHAM’S  LINE DRAWING ALGORITHM
BRESENHAM’S LINE DRAWING ALGORITHM
 
Reflection transformation
Reflection transformationReflection transformation
Reflection transformation
 
3D Transformation
3D Transformation 3D Transformation
3D Transformation
 
Midpoint circle algo
Midpoint circle algoMidpoint circle algo
Midpoint circle algo
 
Coordinate transformation
Coordinate transformationCoordinate transformation
Coordinate transformation
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics system
 
Two dimensional geometric transformations
Two dimensional geometric transformationsTwo dimensional geometric transformations
Two dimensional geometric transformations
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
 
Intro to scan conversion
Intro to scan conversionIntro to scan conversion
Intro to scan conversion
 
Hearn and Baker 2 D transformations
Hearn and Baker 2 D transformations   Hearn and Baker 2 D transformations
Hearn and Baker 2 D transformations
 
Bezier Curve in Computer Graphics.docx
Bezier Curve in Computer Graphics.docxBezier Curve in Computer Graphics.docx
Bezier Curve in Computer Graphics.docx
 
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
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clipping
 

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
 
liquid crystal display
liquid crystal displayliquid crystal display
liquid crystal displayDinesh Pasi
 

Viewers also liked (16)

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)
 
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 Graphics - transformations in 2d
Computer Graphics - transformations in 2dComputer Graphics - transformations in 2d
Computer Graphics - transformations in 2d
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - 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
 
Two dimentional transform
Two dimentional transformTwo dimentional transform
Two dimentional transform
 
Em03 t
Em03 tEm03 t
Em03 t
 
Nyquist Stability Criterion
Nyquist  Stability CriterionNyquist  Stability Criterion
Nyquist Stability Criterion
 

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’’