I am having a problem rendering the Z-Depth pass in Maya. It renders, but I get this flickering effect. You can view a section of it here:
After close observation I noted that it changes when a new object becomes the closest thing to the camera within the frame. But that's not what I want. I'm using this in After Effects both for DoF and for fog, and this will not do. What I want is that everything stay the same value as it is in frame 1, no matter how the camera or character moves. I have tried both "Furthest from camera" and "Closest to camera" and they both have the same problem. I tried checking and unchecking Auto Render Clip Plane in the camera attributes and it didn't seem to make a difference. One thing I read that might work is fake a z-depth pass by applying a grey lambert to everything and then using a volume fog, but I'd rather not have to resort to that, as it sounds like a pain. Any thoughts?