POV-Ray : Newsgroups : povray.beta-test : Philosophical objection to fog distance=0 : Re: 3.1g & 3.5 bug report Server Time
30 Jul 2024 18:15:46 EDT (-0400)
  Re: 3.1g & 3.5 bug report  
From: Greg M  Johnson
Date: 6 Nov 2001 13:45:48
Message: <3be82fdc@news.povray.org>


> On Tue, 06 Nov 2001 10:39:40 -0500, "Greg M. Johnson"
> <"gregj56590[:-0]"@aol.com> wrote:
>
> > This bug-carry-over-from 3.1g could be fixed by changing:
> > PIXEL_COLOR = exp(-d/D) * OBJECT_COLOR + (1-exp(-d/D)) * FOG_COLOR
> > to
> > PIXEL_COLOR = exp(-d/(D+GGG)) * OBJECT_COLOR + (1-exp(-d/(D+GGG))) * FOG_COLOR
> > Where GGG= an infitesimal, just bigger than the smallest number pov can handle
>
> Balancing between floating point accuracy and division by zero is rather not
> very best thing. "The smallest number pov can handle" depends on platform.
> Morover why this addition should be done for all values (even large integers)?
> It is rather bug in parser which allows even "distance -1".

Oh, how about
GGG=1.5*max(smallest_number_for_platform [n])    for all n's?


Post a reply to this message

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