chapter 4.2

Objectives<next>


General Transformations


Affine Transformations


Pipeline Implementation



Notation

 


Translation


How many ways?


Translation Using Representations

Translation Matrix


Rotation (2D)



Rotation about the z axis

 

Rotation Matrix



Rotation about x and y axes


Scaling


Reflection



Inverses


Concatenation


Order of Transformations



General Rotation About the Origin

  • Note that rotations do not commute. We can use rotations in another order but with different angles

Rotation About a Fixed Point other than the Origin

  • Move fixed point to origin
  • Rotate
  • Move fixed point back
  • M = T(pf) R() T(-pf)


Instancing

  • In modeling, we often start with a simple object centered at the origin, oriented with the axis, and at a standard size
  • We apply an instance transformation to its vertices to
    • Scale
    • Orient
    • Locate


Shear

  • Helpful to add one more basic transformation
  • Equivalent to pulling faces in opposite directions


Shear Matrix


  • Consider simple shear along x axis