POV-Ray : Newsgroups : povray.general : Depth Maps : Re: Depth Maps Server Time
7 Aug 2024 05:22:59 EDT (-0400)
  Re: Depth Maps  
From: Simon Adameit
Date: 9 Jan 2002 09:43:38
Message: <3c3c571a$1@news.povray.org>
>   Err.. hmmm... sorry, but IMHO, it is possible with any version of
POV-Ray
> having gradient pattern. I've done this in the past with great success...
>
>   You only have to texture your whole scene with a gradient from white to
> black, along the direction of the camera view (this may require a bit of
> good and old trial&error scaling and translating the gradient). Use a
> finish with ambient 1 and diffuse 0, and no lights. Simple, isn't?
>

If you want to get the distance to the camera you should use a spherical
pattern.

--
#local T=text{ttf"timrom.ttf""Simon Adameit".01,0}#local Y=1;#while(Y>-1)
#local X=0;#while(X<7)#local O=trace(T<X,Y><X,Y>+z);cylinder{<X-3,Y,5>*.01
<X-3,Y,5>*.01+5e-3,5e-5pigment{rgb 25*O}}#debug chr(83-(O.x=0)*51)#local
X=X+.05;#end#debug"\n"#local Y=Y-.05;#end


Post a reply to this message

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