Help with understanding the color theory of Blender's color ramps

I attempted to create a straightforward material that utilizes a grayscale texture. The goal is to assign different materials for the values 0, 0.5, and 1 (black, gray, white) of the texture.

Here’s the object with the original texture applied:
image

To achieve this, I employed Color Ramps set to “Constant” mode. However, here come the problematic part:
The grayscale value of the gray part is 0.5 (0.5,0.5,0.5).
but on the color ramp it’s work just if I set the position of the white step to 0.21 or less instead 0f 0.5.
2023-12-28 19-31-40

Any assistance in resolving this issue would be appreciated.

Hi GoldenDragon,
your image texture node probably uses the wrong color space. Atleast it would make sense to me as 0.5^2.2 results in a value of 0.218…

2 Likes

alright! thank you so much!

1 Like

@Zebrahead is right, you should change your image texture to “non-color data” so that it doesn’t go through color management and uses the actual pixel values from the image file.

2 Likes