
Spring 2009
22C:251 Visualization
Assignment 2
Due: Wednesday, March 25th at 11:59pm
Goal: Create a simple volume-rendering program using the Visualization Toolkit. Explore various datasets to find
good isosurfaces and transfer functions.
Problem 1 (25 points): Download and compile (or reproduce) the VTK volume rendering programs discussed in
class, namely an isosurface extraction program and a ray marching program.
ā¢5 points: Get the programs running, load in the head model shown in class.
ā¢10 points: Add a keyboard callback, allowing you to change the isovalue (for the isosurface program) and the ray step size
(for the ray marching program).
ā¢10 points: Load in at least three other volumes (not necessarily simultaneously). A number of alternative models are
provided on the class web page, but at least one model you use must be downloaded from elsewhere (links are also
provided). Datasets from other departments or your own research qualify.
ā¢Hint: It might be nice if you add an additional keyboard callback that allows you to alternate rendering modes between ray
marching and isosurface extraction in the same program.
Problem 2 (25 points): Add to your program(s) the ability to interact with the data in more complex ways. You can
do this by adding additional keyboard callbacks, or by using VTK widgets. (Note: VTK 5.2 has a few additional
widgets, such as sliders, that may make compiling VTK-5.2 worthwhile.)
ā¢10 points: Locate interesting surfaces by varying the isovalue used to extract isosurfaces in your datasets.
Answer in your submitted README file (and/or your webpage): How many important surfaces does each of
your volumes have? What do these surfaces correspond to (e.g., āskinā)?
ā¢10 points: For each volume, setup a transfer function for the dataset that uses appropriate colors and clearly
displays multiple relevant isosurfaces (e.g., the skin and bone from the head dataset shown in class). You must
either show all important isosurfaces (using the transfer function) or discuss why a larger number of surfaces
makes the image hard to comprehend. If your chosen datasets do not have clearly defined āsurfaces,ā make sure
your transfer function has a smoothly changing opacity to allow visibility of the internal structure.
ā¢5 points: Add some additional user-controllable parameter(s) to the ray marching program. This is an open
ended problem, and you can select any parameter (other than the ray step size, from Problem 1) to implement.
Some suggestions might include: dynamically modifying the opacity transfer function, dynamically modifying
the color transfer function, adding a multi-dimensional transfer function.
ā¢IMPORTANT! Please make sure all user-controls are either obvious on screen when I run your code or are
clearly documented in a submitted āREADMEā file you turn in with your assignment.
REMEMBER: If you have not yet done so, immediately send me an e-mail listing your web address where I can go
to see your homework results.