An example program is available in $OIVHOME/src/TerrainViz. The program has an optional dialog box for changing parameters interactively.
Figure 6.16. Grand Canyon visualized with TerrainViz