POV-Ray : Newsgroups : povray.general : image depth information : Re: image depth information Server Time
7 Aug 2024 21:25:19 EDT (-0400)
  Re: image depth information  
From: Chris Huff
Date: 13 May 2001 20:11:08
Message: <3aff229b@news.povray.org>
Ian Bishop <i.b### [at] engunimelbeduau> wrote:
> Is there a way to store the depth/range of each pixel - i.e. its
> distance from the camera - into an output file? This can be done in, at
> least, older versions of Alias/Wavefront software and the .rla format is
> set up to retain pixel depths.

This isn't available in the official version, though you can fake it
by using all white textures and black fog, or by applying a black and
white gradient texture to everything (use ambient 1 on the textures
when using these techniques, and remove all lights).

Or you could use MegaPOV, which has a "depth" post process filter that
outputs the depth information into a separate grayscale image.
MegaPOV is available here: http://nathan.kopp.com/patched.htm


-- 
Christopher James Huff - chr### [at] maccom
Home Page: http://homepage.mac.com/chrishuff/
POV-Ray TAG e-mail: chr### [at] povrayorg
POV-Ray TAG web site: http://tag.povray.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.