WEEK 3:  September 22  - September 28

OUTLINE:

Review:  Real World Windows and Viewports

  • Automatically choosing the viewport that preserves aspect ratio of the real window (prevents distortion when mapped to the screen.)
  • Using the reshaping function
    • to use default viewport of the newly reshaped window
    • to use the automatically determined viewport of the newly reshaped window that prevents distortion
  • Tiling
    • setting the viewport as a percentage of a normalized rectangle.

Making the Open GL commands more user-friendly

  • the Scene (or Canvas) class -as described by Hill: Appendix 3
  • collection of useful tools
  • makefile

Managing Your Graphics Project Using a makefile

Cohen-Sutherland Line Clipping Algorithm Hill: Section 3.3

Parametric Representation for a Line Hill: Section 3.5

Morphing (tweening) Hill: Section 4.5.4

Other Tricks of the Trade

 

REFERENCE(S):

Computer Graphics Using OpenGL (Hill):

  • Chapter 3 (3.1 - 3.5)
  • Section 4.5.4 Tweening for Art and Animation
  • Section 4.2 Review of Vectors


OpenGL Manual/v.1.2:
p. 129-130
GLUT Programming Interface:

DEMOS and FILES:

/classes/cs3014/files/week3/picking
/classes/cs3014/files/week3/spinning

/classes/cs3014/demos/viewports
/classes/cs3014/canvas

EXERCISES: CLICK FOR PRINTABLE VERSION OF EXERCISES