Hello All,
  I have recently begun transitioning from AVS 5 to OpenDX for my space
physics visualization applications.  I've written several modules to
import our data strcutures into OpenDX and have been quite pleased with
the capabilities of this package. I am have a problem with the AutoColor module. I have created a
visual program to make color cutplanes with the value of the scalar
parameters in my dataset.  We like to look at visualization with
multiple cut planes, eg XY and XZ, so we need one color table for the
entire dataset.  In the current visual program the scalar parameter for
the entire data set is used as input to the AutoColor module and then
its passed several MapToPlane modules to create the need cutplanes with
the same color table.  The problem comes into play when I try and limit
color range by setting the min/max values in AutoColor.  Instead of the
data outside the range being plotted with the outofrange color value it
is simply removed from the graphic object.  Any ideas as to why this is
occuring a possible sugguestions for fixing are appericated.


You are seeing exactly what I expect: data outside the valid range for Autocolor or Colormap is "invalidated" (use Print("rd") to observe this new component in your field or group, post colorizing).

What you want is to restrict the color range, not the data range. Not sure how you do this in Autocolor, cause I only use it for quick and dirty first pass tests, then switch to Colormap and Color. You can in fact create your own colormaps (1D positions, connected into a line with RGB data 3-vectors at each position can be fed directly into Colormap's colormap input). So since you are programming anyway, you might find it convenient to construct a data-driven colormap that sets the data min and max to very small and large numbers (well outside the range of interest), then assigns colors only to the range of interest within that greater range.

So: if the "good data" is 0-100 but you might have values from -100 to 200 and want to flag bad data with magenta, make a colormap with magenta from -100 to 0, blue at 0, green at 50, red at 100, magenta from 100-200. (To force a step at 0 and 100, duplicate those positions with one magenta, one blue, then one red, one magenta 3-vector.)

Simple colormaps can be made with a couple of List modules feeding Construct. I do it all the time. The List values can be data-driven by upstream calculations or input.
--

Chris Pelkie
Vice President/Scientific Visualization Producer
Conceptual Reality Presentations, Inc.
30 West Meadow Drive
Ithaca, NY 14850
[EMAIL PROTECTED]

Reply via email to