|
![](/i/fill.gif) |
Wasn't it nfm who wrote:
>Is this possible in POVRAY? A map with the depth of each pixel in the image,
>without the need of altering the input file like texture and light
>deletion, z-gradients etc. Thanks!
You need to use MEGAPov 1.1 rather than official POVRay. There's a post
processing facility which does it.
Take a copy of the supplied example file postproc\depth.pov, then make
the following changes:
1. Replace the line that says #include "ppcontent.inc" with one that
#includes your original scene file.
2. Set the DepthMin and DepthMax values appropriately for your scene, so
that the distances from the camera to the objects you are interested
in lie between these values.
Do not make any changes to your original scene file.
This will render your scene in the normal way but then also output a
depth postprocessed version.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
![](/i/fill.gif) |