POV-Ray : Newsgroups : povray.newusers : Distance to camera as pigment : Re: Distance to camera as pigment Server Time
23 Apr 2024 23:35:51 EDT (-0400)
  Re: Distance to camera as pigment  
From: Thomas de Groot
Date: 19 Mar 2019 06:02:54
Message: <5c90be4e@news.povray.org>
On 19-3-2019 9:22, iljah wrote:
> I'd like to color all objects by how far each part of them that's visible in a
> particular pixel of final image is from the camera. Apparently this can be done
> by using some pigment but I have no idea what to do after spending about an hour
> reading https://www.povray.org/documentation/view/3.6.1/332/ and other pages.
> Google wasn't helpful either. Any suggestions? Thanks!
> 
> 

The small attached scene does that (thanks to Alain and ChrisB).

-- 
Thomas


Post a reply to this message


Attachments:
Download 'tdg_depth_map.pov.txt' (3 KB)

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