POV-Ray : Newsgroups : povray.advanced-users : Pov-Ray to generate Depth Images : Re: Pov-Ray to generate Depth Images Server Time
28 Jul 2024 20:32:23 EDT (-0400)
  Re: Pov-Ray to generate Depth Images  
From: Christopher James Huff
Date: 20 Jan 2004 17:12:03
Message: <cjameshuff-7867D4.17123020012004@netplex.aussie.org>
In article <400da1ca$1@news.povray.org>,
 "Rodrigo Almeida" <rod### [at] hotmailcom> wrote:

> Does someone knows how to convert 3D scenes to Depth Images (or Layered
> Depth Images). I know some guys that have done that by modifying Pov-Ray (
> http://www.cs.nthu.edu.tw/~chunfa/pcm2002.pdf ) but I don't know how.

Several people have done this, it's a pretty easy patch to create. I did 
it by adding a special global_settings option, I think Ron Parker did it 
as a command line option, and MegaPOV versions earlier than 1.0 allowed 
the depth information to be output with a post-process filter. However, 
it isn't absolutely necessary to modify POV to do so, it's just the 
easiest way...you can give all objects a flat white texture with ambient 
1 and use black fog (or a flat black texture and white fog), or give 
everything a texture using a spherical pattern centered on the camera.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

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