POV-Ray : Newsgroups : povray.newusers : Distance to camera as pigment : Re: Distance to camera as pigment Server Time: 20 Jun 2019 19:07:18 GMT
  Re: Distance to camera as pigment  
From: Thomas de Groot
Date: 19 Mar 2019 10:02:54
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-2008 Persistence of Vision Raytracer Pty. Ltd.