POV-Ray : Newsgroups : povray.unofficial.patches : Photons and max_gradient : Re: Photons and max_gradient Server Time
6 Oct 2024 12:42:41 EDT (-0400)
  Re: Photons and max_gradient  
From: Ron Parker
Date: 13 Jul 2001 11:24:46
Message: <slrn9ku4lv.hs6.ron.parker@fwi.com>
On Fri, 13 Jul 2001 14:26:39 +0100, Tom Melly wrote:
>The whole business confuses me though - if eval "knows" what the true
>max_gradient should have been, why didn't it just use it in the first place?
>Okay, presumably it can only "know" the max_gradient after the event, but how?
>Without using a higher max_gradient, how can it know what value to predict?

It keeps track of the actual values as it subdivides the space, and if it 
finds a ray where two adjacent tests give values that would require a 
gradient above the current maximum, it assumes that the "real" maximum is at 
least as large as the observed value.  Of course, at that point it's too
late to retrace all the rays it's already done, so it just tells you about
it for next time.

Setting the starting maximum higher causes it to take more samples, which
in turn increases the chance that it will find any regions of even higher
gradient that might exist. 

-- 
plane{-z,-3normal{crackle scale.2#local a=5;#while(a)warp{repeat x flip x}rotate
z*60#local a=a-1;#end translate-9*x}pigment{rgb 1}}light_source{-9red 1rotate 60
*z}light_source{-9rgb y rotate-z*60}light_source{9-z*18rgb z}text{ttf"arial.ttf"
"RP".01,0translate-<.6,.4,.02>pigment{bozo}}light_source{-z*3rgb-.2}//Ron Parker


Post a reply to this message

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