POV-Ray : Newsgroups : povray.beta-test : Philosophical objection to fog distance=0 : 3.1g & 3.5 bug report Server Time
30 Jul 2024 12:28:41 EDT (-0400)
  3.1g & 3.5 bug report  
From: Greg M  Johnson
Date: 6 Nov 2001 10:41:28
Message: <3BE8043C.FB0E9E02@aol.com>


> On Tue, 06 Nov 2001 08:41:43 -0500, "Greg M. Johnson"
> <"gregj56590[:-0]"@aol.com> wrote:
>
> > The following scene file gives a black screen.  IMHO it should give a
> > green screen.
>
> The behaviour is probably undefined becouse of fog formula from 6.9.3 chapter.

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


Post a reply to this message

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