CS 420 Computer Graphics


Lab 17
Dr. Tong Yu, Fall 2004

Fog

  • Login and open two windows, one for editing and one for compiling and executing programs. ( Tips of working like a computer scientist or engineer: Try to reduce the browser size so that it won't occupy the whole screen and you can observe a few things on the screen at the same time. )

  • Copy the program fog.cpp from the lecture notes. Compile and execute it. Press 'f' to see different modes of operations.

  • Modify the program in the following mannes. Make observations for every single change of your parameters.

    1. Use different fog colors.

    2. Adjust the fog density.

    3. Adjust the distances of the spheres.

    4. Adjust the start and end parameters.