3
$\begingroup$

In Cycles there are two different render passes which seem to give some kind of depth information: the Mist pass and the Z-Buffer pass. I know that the z-buffer gives the actual distance (thus producing values >1) while the mist pass's range is [0,1]. But even after normalizing the z-buffer pass the two are still not the same, the mist pass is darker.

Here is a comparison (starting with the standard render).

enter image description here
enter image description here
enter image description here

So what is the mathematical difference between a mist pass and a normalized z-buffer?

$\endgroup$
7
$\begingroup$

Some differences:

The Mist pass is antialiased. The Z pass isn't.

The range for the mist pass is set independently of the camera's clip point.

enter image description here

Start sets the black (0) portions of the image. Depth sets the range in which the mist pass will convert the distance to a grayscale. Past that range everyting is white (1).

enter image description here

The falloff on the mist pass can be changed to quadratic, linear or Inverse quadratic. The Z pass is always linear.

If you set the clip distance and a mist pass to the same range and set the falloff to linear, the only difference is the antialiasing.

enter image description here

$\endgroup$
  • $\begingroup$ Where are the settings for the mist pass? $\endgroup$ – PGmath Dec 25 '15 at 16:43
  • $\begingroup$ In the world settings, they are available once you enable the mist pass in the render layers. $\endgroup$ – cegaton Dec 25 '15 at 16:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.