POV-Ray : Newsgroups : povray.general : media brightness flickers as scale changes Server Time
28 Nov 2024 19:38:21 EST (-0500)
  media brightness flickers as scale changes (Message 1 to 4 of 4)  
From: Eric Buddington
Subject: media brightness flickers as scale changes
Date: 25 Aug 2006 21:45:01
Message: <web.44efa682c9b3168fabef64010@news.povray.org>
I'm rendering an earth fly-in using Pov-Ray 3.6.1/Athlon XP/homebrew Linux.
I'm using scattering media for the atmosphere.
Each frame calculates units so that the camera is 1000 POV units from the
origin (earth center).
The media color is divided that frame's meter size (i.e. POV units per
meter), to make it scale properly. This makes for some pretty
large-magnitude colors.

Problem:
As I zoom in, the atmosphere's brightness flickers, apparently in a sawtooth
wave (it takes a few frames to get bright and dark again).

Is there some obvious reason why this would happen? When I get rid of the
atmosphere, I have no flicker, so it's not my light source.

-Eric


Post a reply to this message

From: Eric Buddington
Subject: Re: media brightness flickers as scale changes
Date: 26 Aug 2006 15:40:01
Message: <web.44f0a348671db759abef64010@news.povray.org>
Looks like it was another scale issue. My density function:
1013.25 * pow(e,-.029*9.8*(pow(x*x+y*y+z*z,0.5)-earth_radius)/8.134/298)
with earth_radius a little less than 1000, may have pushed some
floating-point limits. Shrinking the entire scene helped, for now.


Post a reply to this message

From: Kenneth
Subject: Re: media brightness flickers as scale changes
Date: 8 Sep 2006 03:10:01
Message: <web.4501161d671db75953ec07f0@news.povray.org>
"Eric Buddington" <ebu### [at] wesleyanedu> wrote:

> Problem:
> As I zoom in, the atmosphere's brightness flickers, apparently in a sawtooth
> wave (it takes a few frames to get bright and dark again).
>
> Is there some obvious reason why this would happen? When I get rid of the
> atmosphere, I have no flicker, so it's not my light source.
>
> -Eric

Sounds like it might be related to the number of samples (and/or intervals)
in the media. Too low, perhaps? If you have the time for an animation
experiment, try REDUCING the number of samples, to see if the problem gets
worse. (Each image should render a bit more quickly as well.)

Ken W.


Post a reply to this message

From: Kenneth
Subject: Re: media brightness flickers as scale changes
Date: 8 Sep 2006 03:25:00
Message: <web.45011a85671db75953ec07f0@news.povray.org>
Oh, forgot to mention:

Some of the default values given in the POV documentation for media are
incorrect. I posted something about this awhile ago...

http://news.povray.org/povray.documentation.inbuilt/thread/%3Cweb.434c8b2fe42c859ad82bb7c00%40news.povray.org%3E/

Also, since media density doesn't "scale" with an object, as your media
sphere(?) gets larger or smaller, the media samples and/or intervals need
to change along with it, to preserve the same "look" --that is, so
discontinuities don't start appearing in the media as the container is
scaled larger.  At least, this has been my experience.

Ken


Post a reply to this message

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