0
$\begingroup$

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:

  1. Output values range is only [0,206] for [Start, Start+Depth]
  2. 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. enter image description here

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.

enter image description here enter image description here

Camera was set to Orthographic:

enter image description here

Only Mist data was enabled for output, that is the only data I need:

enter image description here

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:

enter image description here

$\endgroup$

1 Answer 1

1
$\begingroup$

In order to solve it, there is need to set Color Management parameters.

Display Device: sRGB, View Transform: Raw

or

Display Device: None, View Transform: Standard

enter image description here

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .