I wonder how I can set the values in the Map Value node to get the best output. I want the pixels values of objects to be rendered according the to the distance from the camera in meters unit. I'm using blender-render Any advice please?
I tried using the normalize node but it causes flickering when my file has animation that's why I want to know how I can set the values of the Map Value node correctly.
Like the nearest point of the object to the camera should be white then pixels of the object degrades to grey until the furthest pixel of the dog to be black with the background, where the z value of each pixel will have the distance between it and the camera in metric unit, so that closer pixels (white) will have lower z value than further pixels (black).
My .blend file can be found here: Blend File