POV-Ray : Newsgroups : povray.advanced-users : depth map? : Re: depth map? Server Time
25 Apr 2024 20:04:59 EDT (-0400)
  Re: depth map?  
From: Thibaut Jonckheere
Date: 23 Mar 2009 15:39:53
Message: <49c7e589$1@news.povray.org>

> Dear all,
> 
> For a technical project I am doing concerning stereo reconstruction, it would be
> helpful to be able to have access to the depth (z) coordinate of the directly
> visible object at each pixel in the rendered image.
> 
> Ideally, I would have a file that gives (IMAGEHEIGHT x IMAGEWIDTH) floating
> point numbers (IEEE-754 format), each giving the projected "z" value for the
> corresponding pixel (or "infinity" if there is no object in the eye->pixel ray
> path).
> 
> Has something like this perhaps been done before? If not, how difficult would it
> be to add this myself (I am proficient in C, but I have never looked at the
> source code of POV-Ray) ?
> 
> Best regards, Sidney
> 
> 
> 

I think you may have access to depth with MegaPov : have a look at 
"2.7.5. Post processing" in the Megapov doc 
(http://megapov.inetart.net/manual-1.2.1/global_settings.html#post_processing)



Thibaut


Post a reply to this message

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