Map Scalars off does not work for floats in slice mode
The Map Scalars
option in the Display
part of the properties panel allows you to control whether a field is interpreted as a color value or field value to be sent through a color map. When Map Scalars
is off and the field comprises triples of unsigned chars, then the values are interpreted as RGB colors with each channel between 0 and 255. If the field comprises triples of floating point numbers, then the values are interpreted as RGB colors with each channel between 0 and 1.
This all works fine for the Surface
representation. But if you have image data in the Slice
representation, then the RGB colors do not work with floating point numbers. (Unsigned chars still work.) To replicate the problem, do the following:
- Create a
Mandelbrot
source. Apply. - Add the
Random Vectors
filter. Apply. - Change the field to color by from
Iterations
toBrownianVectors
. - Uncheck the
Map Scalars
option. Note that the field is still being mapped by the scalars. - Switch the representation from
Slice
toSurface
. The field is now properly shown directly as colors.
The Slice
representation should correctly display floating point colors.