POV-Ray : Newsgroups : povray.advanced-users : Depth Map Server Time
25 Nov 2024 03:29:46 EST (-0500)
  Depth Map (Message 1 to 4 of 4)  
From: Andrew Coppin
Subject: Depth Map
Date: 8 Nov 2003 07:34:02
Message: <3face2ba$3@news.povray.org>
Hi folks.

Is there a way to get POV-Ray to render an image using "depth queing?" That
is, having the brightness of each pixel be (linearly) proportional to the
object's position on the Z-axis. I can't currently think of a way to do
thing...

(In case you're wondering... I wanna feed POV-Ray's output into a SIRDS
generator ;-)

Thanks.
Andrew.


Post a reply to this message

From: Gilles Tran
Subject: Re: Depth Map
Date: 8 Nov 2003 07:38:01
Message: <3face3a9@news.povray.org>

news:3face2ba$3@news.povray.org...
> Hi folks.
>
> Is there a way to get POV-Ray to render an image using "depth queing?"
That
> is, having the brightness of each pixel be (linearly) proportional to the
> object's position on the Z-axis. I can't currently think of a way to do
> thing...

Here are two :
- use a black fog
- use a gradient texture (I have used this one to fake focal blur in
post-process)

G.

-- 
**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Christoph Hormann
Subject: Re: Depth Map
Date: 8 Nov 2003 08:02:01
Message: <8q5v71-p91.ln1@triton.imagico.de>
Gilles Tran wrote:
> 
> Here are two :
> - use a black fog
> - use a gradient texture (I have used this one to fake focal blur in
> post-process)

For focal blur you should use a spherical pattern translated at the 
camera position and not a gradient.  With small camera angles this does 
not matter much but it is also easier to set up (you don't need to worry 
about camera view direction).

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 25 Oct. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Andrew Coppin
Subject: Re: Depth Map
Date: 8 Nov 2003 08:05:29
Message: <3facea19$1@news.povray.org>
> Here are two :
> - use a black fog

Yeah... that was the only one that occurred to me (after a while, I might
add).

> - use a gradient texture

Mmm... had't thought of that... sounds like it might be quicker... although,
I suppose there's not much in it!

Thanks.
Andrew.


Post a reply to this message

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