Make Mist pass skip semitransparent objects I am having problems with the Mist pass. I have search other questions but didn't find the answer.

As you can see, I got an ocean (left) and a "river" (right). Don`t mind about the river disappearing towards the right, I need that way but doesn´t affect my problem (but I wanted to keep the settings as I have in the big project).

When trying to get the Mist pass, both objects are semitransparent, as you can see here:


Also the Z pass gets crazy:


I think is because they both have glass and transparent material, and also volume absorption.

The sun is 0.8 in size and 5 Max bounces.

So, the question is: How can I get the Mist pass "skip" the transparency settings of both objects?

Thanks in advance!
Create a new render layer in which the material is overriden by some material that has no transparency, and enable mist for that render layer. Then use the mist pass from that layer to combine over the other layers.



(click on the image to enlarge)