Map Scalars off does not work for floats in slice mode
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
- Add the
Random Vectorsfilter. Apply.
- Change the field to color by from
- Uncheck the
Map Scalarsoption. Note that the field is still being mapped by the scalars.
- Switch the representation from
Surface. The field is now properly shown directly as colors.
Slice representation should correctly display floating point colors.