Z-buffer output from blender as file
The values of the Z Buffer are in float values, and then they get clipped to &lt;0,1> (&lt;0,255>) range in your file format.


Either save the images in some hdr format (.exr for example) that will support float values
or re-map the values to the &lt;0,1> range yourself with Map Value node.