CS 455 Lecture 3 – Color, Uniforms, and Geometry
Before class
Color and Uniforms
- Watch http://youtu.be/Jqrdxucra7w.
- Read http://www.catb.org/jargon/html/L/LERP.html.
- Read http://en.wikipedia.org/wiki/Linear_interpolation.
Geometry
- Watch http://youtu.be/KkrBwHbjsB8.
- Read section 2.1 of http://www.informit.com/articles/article.aspx?p=461848. (Consider QUAD and POLYGON are deprecated.)
- Read http://stackoverflow.com/questions/2954349/when-should-i-use-indexed-arrays-of-opengl-vertices.
In class
- Make sure your renderer from last time is working.
- Generate a flat ring (a circle with a smaller concentric circle punched out)without repeating any position attributes. Add a color attribute at each vertex, giving some variation. [It’d be good to do all this in a new renderer, a subclass of BaseRenderer, but this may not be the best use of your time. (See Adding Executables under Visual Studio, CMake, and OpenGL.)]
If you finish early, try some other geometry: a cube, a cylinder, a cone, etc.
Haiku
The good ones keyframe.
So-so ones tween. And the rest?
They slip ‘tween the cracks.
So-so ones tween. And the rest?
They slip ‘tween the cracks.