3-D Visualization Previous page   Next Page

Example -- Modifying the Alphamap

This example uses slice planes to examine volume data. The slice planes use the color data for alpha data and employ a rampdown alphamap (the values range from 1 to 0):

  1. Create the volume data by evaluating a function of three variables.
  2. Create the slice planes, set the alpha data equal to the color data, and specify interpolated FaceAlpha.
  3. Install the rampdown alphamap and increase each value in the alphamap by .1 to achieve the desired degree of transparency. Specify the hsv colormap.

This alphamap causes the smallest values of the function (around zero) to be displayed with the least transparency and the greatest values to display with the most transparency. This enables you to see through the slice planes, while at the same time preserving the data around zero.





Previous page  Selecting an Alphamap Creating 3-D Models with Patches Next page

© 1994-2005 The MathWorks, Inc.