I’m trying to produce a B&W depth map of a 3D object, the sort of image one would use for an autostereogram or controlling the depth of an automated carving tool. In other words, I want the place(s) on the object having maximum Z coordinate to map to pure white, and those with minimum Z to map to pure black, with linear variation in between.
I’m real close, but not quite there, and I wonder if any kind person here can help me out. Here is what I am doing:
Set to Orthographic projection, Cycles rendering
Place the camera directly above the object
For the material, set:
Surface - Emission
Color - RGB
Strength - Separate X,Y,Z - choose Z
Vector - Text coordinate generated (I have no idea why this works, but it is the only one that does)
For Texture, choose Blend.
This appears to provide ALMOST what I want. The only problem is that the contrast is insufficient.
Instead of ranging from black to white, it ranges from dark gray to light gray.
Does anyone have a suggestion for how to do better? Thank you!