POV-Ray : Newsgroups : povray.binaries.images : RockTest.pov reference image Server Time
1 May 2024 03:55:10 EDT (-0400)
  RockTest.pov reference image (Message 21 to 24 of 24)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: clipka
Subject: Re: RockTest.pov reference image
Date: 14 Dec 2016 03:41:32
Message: <585105bc$1@news.povray.org>
Am 13.12.2016 um 22:15 schrieb [GDS|Entropy]:

> Any idea why this is, and how to fix it? Is the only choice to bound the media?
> I am guessing that this is because it is not reasonable to calculate media for
> an infinite space, but I could be wrong.

Yes, I have an idea now.

It's a flaw in media computation regarding the self-extinction effect of
media.

With sampling method 3, in essence POV-Ray divides the media interval
into a number of sub-intervals, and for each sub-interval computes (a)
the emissive(*) effect and (b) the extinction effect. It then multiplies
the emissive effect of that sub-interval by a factor to account for the
extinction effect of earlier sub-intervals as self-extinction within the
sub-interval itself.

It does a clean job at accounting for the extinction effect from earlier
sub-intervals; however, when it comes to self-extinction, POV-Ray simply
pretends that a sub-interval's emissive effect is precisely located at
the center of the sub-interval, while its extinction effect is
distributed evenly alongt the entire length of the sub-interval.

That's a good enough approximation when the length of a sub-interval is
reasonably small compared to the density of the medium. However, with
sufficiently dense media or sufficiently large distances involved, this
approximation will tend to underestimate the net emissive effect, to the
point where it can turn out pitch black.

This can be fixed, by using a more precise formula for the
sub-interval's self-extinction.


Media sampling methods 1 and 2 are different beasts, which do an even
poorer job at estimating the self-extinction effect, and it may not be
feasible to fix those.


(*From the perspective of the media computations code, scattering is
also an emissive effect, the only difference being that its brightness
depends on incoming light.)


Post a reply to this message

From: [GDS|Entropy]
Subject: Re: RockTest.pov reference image
Date: 14 Dec 2016 10:35:01
Message: <web.5851663f67b6c8b61c3f31c90@news.povray.org>
Hey thanks everyone, adjusting the plane to remove no_image did the trick, and
thank you Clipka for explaining the media internals, it is interesting to learn
how these things work!

Now I can get back to making useful bits for this. :)

I will update when more progress has been made.

Ian


Post a reply to this message

From: clipka
Subject: Re: RockTest.pov reference image
Date: 14 Dec 2016 11:57:25
Message: <585179f5@news.povray.org>
Am 14.12.2016 um 16:33 schrieb [GDS|Entropy]:
> Hey thanks everyone, adjusting the plane to remove no_image did the trick, and
> thank you Clipka for explaining the media internals, it is interesting to learn
> how these things work!
> 
> Now I can get back to making useful bits for this. :)

... or try this one, with media sampling method 3:

https://github.com/POV-Ray/povray/releases/tag/v3.7.1-alpha.8917471

(Unfortunately sampling methods 1 and 2 don't lend themselves to an easy
fix for the problem.)


Post a reply to this message

From: Jérôme M. Berger
Subject: Re: RockTest.pov reference image
Date: 14 Dec 2016 14:01:04
Message: <585196f0$1@news.povray.org>
On 12/14/2016 08:32 AM, omniverse wrote:
> Must be the no_image. I tried doing that, pigment {rgbt 1}, and it isn'
t needed
> either.
> 
	rgbt 1 is not needed to make the media appear, but it is needed if you
want the plane to be invisible in all circumstances (of course, this is
not really necessary since the plane should be hidden by the media anyway
).

	You need to remove no_reflection if you want your media to work in
mirrors (not an issue with your test scene but could be an issue for
others).

		Jerome
-- 
mailto:jeb### [at] freefr
http://jeberger.free.fr
Jabber: jeb### [at] jabberfr


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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