I'm trying to use Mist data for getting values of [0,255] for Mist range of [Start, Start+Depth]. but I'v got into two problems:
- Output values range is only [0,206] for [Start, Start+Depth]
- Output values are non linear relative to [Start, Start+Depth] values
I'm Using Blender 3.1.2
Here is how I did up to now:
Building a scene of 5 elements, with heights of 0m, 1m, 2m, 3m and 4m.
Camera was placed directly above at height of 12m.
Mist start was set to 7.99 (in order to ensure the 4m height is in the Mist range)
Mist Depth was set to 4.02 (in order to ensure the 0m height is in the Mist range)
The Mist Falloff was set to be Linear.
Camera was set to Orthographic:
Only Mist data was enabled for output, that is the only data I need:
Now, checking the Mist data output yields the values: 0, 144, 178, 194 and 206, while I would expect to have 0,64,128,192 and 255: