|
![](/i/fill.gif) |
nfm 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!
Short answer: no.
Long answer: MegaPOV offers access to the distance of the first
intersection as part of the post processing patch but this requires a
change in the scene file as well. This is however no way the 'depth of
a pixel' - in a raytracer this is not clearly defined at all since the
contributions to the color of a pixel can come from different distances.
It is however quite convenient to generate a depth image with what you
call 'hacks' simply using conditionals in SDL.
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 23 Sep. 2004 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
![](/i/fill.gif) |