POV-Ray : Newsgroups : povray.binaries.animations : A sunrise with media and radiosity Server Time
17 May 2024 17:50:02 EDT (-0400)
  A sunrise with media and radiosity (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: ajtribick
Subject: A sunrise with media and radiosity
Date: 19 Oct 2008 09:15:03
Message: <web.48fb31f9ed540e8abc82ce420@news.povray.org>
Test animation of a sunrise using media and radiosity. The atmosphere is created
using Rayleigh scattering media which has a density that falls off exponentially
with height. The test is only partially successful: it seems that the media
atmosphere is not giving any contribution to the radiosity lighting. Still have
to figure out if there's any way to increase the contribution of the scattering
media to the radiosity while still allowing the colour of the sky to remain
visible.


Post a reply to this message


Attachments:
Download 'mediaatmosphere.mpg' (252 KB)

From: nemesis
Subject: Re: A sunrise with media and radiosity
Date: 19 Oct 2008 14:05:00
Message: <web.48fb75de657b8a953906a7480@news.povray.org>
"ajtribick" <nomail@nomail> wrote:
> Test animation of a sunrise using media and radiosity. The atmosphere is created
> using Rayleigh scattering media which has a density that falls off exponentially
> with height. The test is only partially successful: it seems that the media
> atmosphere is not giving any contribution to the radiosity lighting. Still have
> to figure out if there's any way to increase the contribution of the scattering
> media to the radiosity while still allowing the colour of the sky to remain
> visible.

Did you forget hollow?

Take a look at the (short) source code for "Dawn over the mountains":
http://ozviz.wasp.uwa.edu.au/~pbourke/exhibition/scc4/final/


Post a reply to this message

From: ajtribick
Subject: Re: A sunrise with media and radiosity
Date: 19 Oct 2008 18:05:00
Message: <web.48fbae77657b8a95bc82ce420@news.povray.org>
"nemesis" <nam### [at] gmailcom> wrote:
> "ajtribick" <nomail@nomail> wrote:
> > Test animation of a sunrise using media and radiosity. The atmosphere is created
> > using Rayleigh scattering media which has a density that falls off exponentially
> > with height. The test is only partially successful: it seems that the media
> > atmosphere is not giving any contribution to the radiosity lighting. Still have
> > to figure out if there's any way to increase the contribution of the scattering
> > media to the radiosity while still allowing the colour of the sky to remain
> > visible.
>
> Did you forget hollow?
>
> Take a look at the (short) source code for "Dawn over the mountains":
> http://ozviz.wasp.uwa.edu.au/~pbourke/exhibition/scc4/final/

If I'd forgotten hollow, I wouldn't have got any sky effects at all - the sky
color is media. The issue is the radiosity, which isn't used in that "Dawn over
the mountains" image.


Post a reply to this message

From: Kenneth
Subject: Re: A sunrise with media and radiosity
Date: 19 Oct 2008 19:50:00
Message: <web.48fbc74e657b8a9578dcad930@news.povray.org>
"ajtribick" <nomail@nomail> wrote:

> The test is only partially successful: it seems that the media
> atmosphere is not giving any contribution to the radiosity lighting.

There does indeed seem to be a current problem with media in objects not
contributing radiosity lighting to other objects *within* the media. Objects
*outside* do receive rad from it, objects within don't. I've spent considerable
time trying to find workarounds, but no luck. Hopefully v 3.7 will solve this
thorny problem.

Ken W.


Post a reply to this message

From: ajtribick
Subject: Re: A sunrise with media and radiosity
Date: 20 Oct 2008 14:15:01
Message: <web.48fcca45657b8a95bc82ce420@news.povray.org>
"Kenneth" <kdw### [at] earthlinknet> wrote:
> "ajtribick" <nomail@nomail> wrote:
>
> > The test is only partially successful: it seems that the media
> > atmosphere is not giving any contribution to the radiosity lighting.
>
> There does indeed seem to be a current problem with media in objects not
> contributing radiosity lighting to other objects *within* the media. Objects
> *outside* do receive rad from it, objects within don't. I've spent considerable
> time trying to find workarounds, but no luck. Hopefully v 3.7 will solve this
> thorny problem.
>
> Ken W.

Yes the testing I have been doing since I made this animation led me to the same
conclusion. Has this been reported in an official bug reports forum?


Post a reply to this message

From: Kenneth
Subject: Re: A sunrise with media and radiosity
Date: 21 Oct 2008 11:40:01
Message: <web.48fdf56a657b8a9578dcad930@news.povray.org>
"ajtribick" <nomail@nomail> wrote:

> Yes the testing I have been doing since I made this animation led me to the same
> conclusion. Has this been reported in an official bug reports forum?

Don't know.  While experimenting with this last year, I Google'ed the subject
and came across an *old* bug report (or message thread) that mentioned the same
thing. I assumed that the POV team was aware of it. They probably are; it must
be a difficult problem to solve (perhaps tied in with transparency issues.)

In looking back over my own POV test scene (and its MANY notes), I see that I
*did* come up with a workaround. An odd one, to be sure.  Try this: Make a
small sphere, out of camera view, fill it with media, then INVERSE the sphere.
According to my notes, that 'fills the universe' with media, and the scene no
longer shows those radiosity problems! (But to see the media, there needs to be
a 'background object' in this case, like a large flat box way off in the
distance, filling the frame, for the media to appear against. The box could be
textured with some kind of sky pigment or pattern, in your case.)

I'll do some tests again, to see if this is an 'always-true' workaround.

My notes also tell me that plain 'atmospheric' media--that is, not enclosed in
an object--works well too; no rad problems. I'll try that again as well.

KW


Post a reply to this message

From: Kenneth
Subject: Re: A sunrise with media and radiosity
Date: 21 Oct 2008 19:50:00
Message: <web.48fe6a42657b8a9578dcad930@news.povray.org>
"Kenneth" <kdw### [at] earthlinknet> wrote:
>  Try this: Make a
> small sphere, out of camera view, fill it with media, then INVERSE the sphere.
> According to my notes, that 'fills the universe' with media, and the scene no
> longer shows those radiosity problems!

Well...I can't seem to reproduce that result now. I don't remember how I came up
with that idea, but it doesn't work (although my old notes say it does.) Can't
trust those old notes. :-$

Sorry for sending you on a wild goose chase! I'll continue to try and figure out
my error...

Ken W.


Post a reply to this message

From: Rarius
Subject: Re: A sunrise with media and radiosity
Date: 23 Oct 2008 04:45:20
Message: <490039a0$1@news.povray.org>
"ajtribick" <nomail@nomail> wrote in message 
news:web.48fb31f9ed540e8abc82ce420@news.povray.org...
> Test animation of a sunrise using media and radiosity. The atmosphere is 
> created
> using Rayleigh scattering media which has a density that falls off 
> exponentially
> with height. The test is only partially successful: it seems that the 
> media
> atmosphere is not giving any contribution to the radiosity lighting. Still 
> have
> to figure out if there's any way to increase the contribution of the 
> scattering
> media to the radiosity while still allowing the colour of the sky to 
> remain
> visible.

Just a thought... As you are having a problem getting the media to 
contribute to the radiosity of objects within the object containing the 
media, why not excavate a volume for the objects from that object as 
follows:

union
{
    difference
    {
        sphere{0, 100000}
        sphere{0, 1000}
        interior{media{...}}
    }
    union
    {
        //Other objects all within the inner sphere above
    }
}

Rarius


Post a reply to this message

From: Alain
Subject: Re: A sunrise with media and radiosity
Date: 23 Oct 2008 10:18:08
Message: <490087a0$1@news.povray.org>
Kenneth nous illumina en ce 2008-10-21 19:48 -->
> "Kenneth" <kdw### [at] earthlinknet> wrote:
>>  Try this: Make a
>> small sphere, out of camera view, fill it with media, then INVERSE the sphere.
>> According to my notes, that 'fills the universe' with media, and the scene no
>> longer shows those radiosity problems!
> 
> Well...I can't seem to reproduce that result now. I don't remember how I came up
> with that idea, but it doesn't work (although my old notes say it does.) Can't
> trust those old notes. :-$
> 
> Sorry for sending you on a wild goose chase! I'll continue to try and figure out
> my error...
> 
> Ken W.
> 
Filling an inverted sphere out of view is akind of filling the whole scene with 
uncontained media. You don't need the sphere, just the media definition.

-- 
Alain
-------------------------------------------------
When you can't tell the difference between satire and what your opposition 
actually believes, its about time to have a good laugh at it all


Post a reply to this message

From: Alain
Subject: Re: A sunrise with media and radiosity
Date: 23 Oct 2008 10:21:46
Message: <4900887a$1@news.povray.org>
Rarius nous illumina en ce 2008-10-23 04:45 -->
> "ajtribick" <nomail@nomail> wrote in message 
> news:web.48fb31f9ed540e8abc82ce420@news.povray.org...
>> Test animation of a sunrise using media and radiosity. The atmosphere is 
>> created
>> using Rayleigh scattering media which has a density that falls off 
>> exponentially
>> with height. The test is only partially successful: it seems that the 
>> media
>> atmosphere is not giving any contribution to the radiosity lighting. Still 
>> have
>> to figure out if there's any way to increase the contribution of the 
>> scattering
>> media to the radiosity while still allowing the colour of the sky to 
>> remain
>> visible.
> 
> Just a thought... As you are having a problem getting the media to 
> contribute to the radiosity of objects within the object containing the 
> media, why not excavate a volume for the objects from that object as 
> follows:
> 
> union
> {
>     difference
>     {
>         sphere{0, 100000}
>         sphere{0, 1000}
>         interior{media{...}}
>     }
>     union
>     {
>         //Other objects all within the inner sphere above
>     }
> }
> 
> Rarius 
> 
> 
Similar to, but more complicated than:

sphere{0,1000 interion{media...}}hollow texture{...}}

No need to use the union.

-- 
Alain
-------------------------------------------------
If you pick up a starving dog and make him prosperous, he will not bite you; 
that is the principal difference between a dog and a man.

Mark Twain


Post a reply to this message

Goto Latest 10 Messages Next 5 Messages >>>

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