SciVisFall2007/Assignment 2

From VistrailsWiki
Revision as of 01:01, 17 October 2007 by Cscheid (talk | contribs)
Jump to navigation Jump to search

The assignment is due at midnight on October 30th. You will need to use the CADE handin functionality to turn in your assignment. The class account is "cs5630".

The purpose of this assignment is to make sure you understand (and experiment with) the basic concepts involved in the visualization of 2D scalar and vector fields. As you work on the assignment, we encourage highly you to read the available documentation on both python and VTK. Some of the problems will require you to use VTK modules you might not have previously seen. These are indicated in the problems.

General Hints

Some of the fields in this assignment are such that most of the points in the field have values in a small region of the range. Because of this, a linear path through the color space might be inappropriate. You might consider using vtkColorTransferFunction for more effective results.

When generating visualizations that overlay multiple actors, it will be convenient to displace some of them along the Z direction so they "stack" the right way. Use the "AddPosition" method on the vtkActor module to do that.

Problem 1: Simple color mapping

In this problem, you will design colormaps for a dataset. In particular, you will design two different colormaps for two different tasks. The dataset you are given is a digital elevation map (DEM) of Honolulu on Oahu, HI. The elevations are given in meters, and the range of the data is [-2.0, 956.0]. Look up Honolulu on (or your favorite map application) to give you context for this problem: Google maps link to Honolulu

a. Apply the colormap design principles described in class to create a visualization where it is easy to tell which of two points are higher. Describe in the notes why you chose this colormap.

b. Apply the colormap design principles described in class to create a visualization where it is easy to tell the height of any given point.

c. Generate a visualization that is suited to both previous tasks.

Grads only

d. Generate colormaps that give a good visualization of the low areas (ie: first 5 or 10 meters) of the DEM. Potentially relevant modules: vtkColorTransferFunction.