14/2/07, pm-n.
Week: 7 ( 12/2 - 16/2 )
Lectures:
Example programs:
The directory /users/pmn/public/cgf07/week7 contains
two programs:
- main_geoG is the same as week5/geoG except that
the cube is 'tumbling'.
- main_surfaceG is the same as week5/surfaceG except that
the surface is oscillating in accordans with a solution to
the '2D wave equation'. The mathematics behind the wave equation
can be found here.
Correction:
The class random has been renamed to random_cgf07
in order to avoid name clash with a function in stdlib.
Exercises:
- Create a fish ( or any other object ) that circulates in
the x-y plane around the origo.
- Create a fish that is heading in a given direction V=(vx, vy, vz)
from a given position P=(px, py, pz ).
- Add a sphere the scene in main_surfaceG so that it appears to
be floating on top of the surface.
Reading:
- OpenGL, Programming Guide ( "The red book" )
Chapter 5 ( p. 190 - 218 ), Lighting
Chapter 2 ( p. 37 - 66 ), State management and ...