Hey guys!
So, I'm having some issues with the writeToDepthBuffer nodes. I'm using them to store a custom float value in my images (rendering to EXR on mental ray for maya 2013, comping in Nuke 6.something).
Basically, it works great, apart from objects with textured alpha transparency. With standard depth passes you have various options for dealing with transparency:
1) setting the camera's depth type to 'closest visible depth', enabling 'transparency based depth' and setting a threshold
2) setting the shading engine's 'transparency threshold' and ticking 'use shading engine threshold' on the renderPass
3) setting the 'transparency threshold' directly on the render pass
These all work great on regular depth passes...but none of those seem to have an effect on custom depth passes! 1 doesn't seem to do anything, and 2 & 3 aren't even available as options for Custom Depth, Label or Vector renderPasses. Surely there's a way of doing this?
Here's an demo of the difference:
Any help would be appreciated!
