Tom Kelliher, CS 320
Feb. 16, 2011
Read Chapter 3.1-3.3, 3.6.
2-D OpenGL lab.
Project day.
Interactive techniques.
Additive color. Tristimulus values vs. continuous frequency of light.
Two color models:
The color cube.
In 8-bit mode, which 256 colors get displayed? Color map clashes in X Window system.
Now we see the mapping:
glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
What happens when the aspect ratio of the clipping region doesn't match that of the window?
How can we fix that:
glViewport(GLint x, GLint y, GLsizei width, GLsizei height);We have a call-back whose parameters are the size of the resized window.
This essentially adjusts the window's aspect ratio to match the clipping region.