POV-Ray : Newsgroups : povray.advanced-users : depth map? : Re: depth map? Server Time
25 Apr 2024 13:00:35 EDT (-0400)
  Re: depth map?  
From: Alain
Date: 9 May 2009 20:06:43
Message: <4a061a93@news.povray.org>
Marvin nous illumina en ce 2009-05-08 09:49 -->
> "Sidney Cadot" <sid### [at] jigsawnl> wrote:
>> Chris, Thibaut, Clipka,
>>
>>
>> Thanks for your excellent suggestions. I wasn't aware of the mega-pov
>> post-processing feature or the "trace" feature in povray. I will experiment a
>> bit, this will probably work out -- both approaches seem promising.
>>
>> Regards, Sidney
> 
> Sidney,
> 
> I've been thinking about this thread and what is explained on
> http://www.wowvx.com/create/Format.aspx
> 
> Depth map may allow creating of 2D-plus-Depth image.
> 
> Is there a way to extract "Declypse" information from POV-Ray model?
> 
> 
> 
> 
You can't with a single image.
What you can do:
- Render only the background then the foreground.
- Render twice from two different points of view shifted left and right.

For the depth map, just render the scene with all textures replaced by a single 
gradient oriented toward the camera. The gradient direction goes from the 
look_at to the camera location, black for far, white for close.


Post a reply to this message

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