Tom Kelliher, CS 320
Feb. 5, 2001
Friday is project day.
Read Chapter 3.
2-D graphics lab.
Rendering techniques (recursive sub-division), 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 ration 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.