Week 7:  October 20 - October 26

OUTLINE:

Transformations of Objects (Continued)      Hill: Chapter 5;   

  • 3D Affine Modeling Transformations   (MODELVIEW matrix)
    • scale (sx, sy, sz)
    • translate (tx, ty, tz)
    • rotate with respect to a vector

  • The Viewing Matrix (MODELVIEW matrix)  
    • positioning and aiming the camera
      • default
      • using gluLookAt( )
  • Setting the Camera for Parallel (Orthographic) Projection
    • using glOrtho(left, right, bottom, top, near, far)

  • Building Complex Objects Using Affine Transformations of Primitives

  • Using gluQuadrics

REFERENCE(S):

Computer Graphics Using OpenGL (Hill):
      Chapter 5;

OpenGL Manual/v.1.2:
  Modeling Transformations, pages 104 - 112;
GLUT Programming Interface:

DEMOS and FILES:

/classes/cs3014/files/Transformations/demo_transform1.cpp
/classes/cs3014/files/Transformations/demo_transform2.cpp
/classes/cs3014/files/Transformations/demo_transform3.cpp
/classes/cs3014/files/Transformations/demo_transform4.cpp
/classes/cs3014/files/Transformations/ortho_demo.cpp
/classes/cs3014/files/Quadrics/demo_ortho_quadric.cpp

EXERCISES: week 7