RE: changing color mapping

Hello John,

>Apparently, the "sensitivity" of Display.RGB was 
>set to be so sensitive initially when the shape was a sphere that the new 
>mapping immediately covers the entire object with the color blue.

does this mean that you performed a "setRange()" on the
Display.RGB scalar map?

If you know the minimum and maximum values of the distance between
the origin and any point on the surface, then you can use these values
in "ScalarMap.setRange()".

For example,
ScalarMap map = new ScalarMap(v, Display.RGB);
map.setRange(minDistance, maxDistance);

This will ensure that you have good colour resolution throughout
the surface of the shape you are interested in.

Hope this helps,
Jim Koutsovasilis
Bureau of Meteorology, Australia

  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: