Assignment 4
DUE: Thursday, 20 November 2003, 12:00 noon
(electronically, to depape@buffalo.edu)
Create a scene that uses a moving spotlight and fog.
The spotlight should be attached to an object in the scene,
and move with that object.
There should be some other objects in the scene, which
can be illuminated at times by the spotlight.
The exact nature of the scene is up to you. It could be a vehicle
with a headlight, a lighthouse or spinning searchlight, an alien death ray,
or something else.
The fog should use different parameters than my example programs.
Extra credit:
- Create some terrain, or other surface(s), using your own GL geometry
(i.e. not using GLUT or GLU geometry). Make sure to calculate appropriate
normals for the geometry.
Spheres & cylinders are not allowed, since they're in my examples.
- Use timing functions to calculate how fast your program runs
(how many milliseconds does it take to draw a frame). Vary the amount of
geometry, such as the resolution of the terrain or the number of objects,
and see how that affects the speed. Calculate how many triangles per second
your program can draw, on whatever computer you're using, and report
the results.