VRML Concepts



  1. Make a copy of the "terrain.c" program:

    In complex visualizations, the height and color of a terrain may each vary with the output of a mathematical function or simulation. Your task is to modify the terrain1.c program to vary the terrain color with the height. You will need to add one color to each vertex in the terrain. For simplicity, compute the color based upon the height, though you could use a separate function if you like.

    Recompile and run the new terrain1 program, and view the resulting VRML scene (call it "terrain1.wrl").

    SOLUTION: terrain1.c, terrain1.wrl