POV-Ray : Newsgroups : povray.newusers : Radiosity example Server Time
22 Dec 2024 06:16:02 EST (-0500)
  Radiosity example (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: taftj
Subject: Radiosity example
Date: 6 Nov 2012 01:00:04
Message: <web.5098a702d2be5305aaeb765e0@news.povray.org>
Could somebody kindly post complete code for a very simple scene that uses
radiosity?  Maybe a white plane with a white box and nothing else.  No matter
what I try, I get either blackness or no effect.  Something's not clicking I
guess :(

Thank you!


Post a reply to this message

From: Thomas de Groot
Subject: Re: Radiosity example
Date: 6 Nov 2012 03:14:26
Message: <5098c6e2$1@news.povray.org>
On 6-11-2012 6:58, taftj wrote:
> Could somebody kindly post complete code for a very simple scene that uses
> radiosity?  Maybe a white plane with a white box and nothing else.  No matter
> what I try, I get either blackness or no effect.  Something's not clicking I
> guess :(
>
> Thank you!
>
>

Take one of the basic scenes from the Insert Menu, and add the following 
block (using version 3.7 btw):

global_settings {
   adc_bailout 0.003922
   assumed_gamma 1.0
   max_trace_level 10
   number_of_waves 10
   noise_generator 2
   radiosity {
     brightness       1.0
     count            100, 500
     error_bound      1.8
     gray_threshold   0.0
     low_error_factor 0.5
     minimum_reuse    0.015
     nearest_count    10, 5
     recursion_limit  2
     adc_bailout      0.01
     media            off
     normal           off
     always_sample    off
     pretrace_start   0.08
     pretrace_end     0.004
   }
}

Thomas


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Radiosity example
Date: 6 Nov 2012 06:30:33
Message: <5098f4d9$1@news.povray.org>
taftj wrote:
> Could somebody kindly post complete code for a very simple scene that uses
> radiosity?  Maybe a white plane with a white box and nothing else.  No matter
> what I try, I get either blackness or no effect.  Something's not clicking I
> guess :(

Try this:


#default {finish {ambient 0}}

#include "colors.inc"
#include "rad_def.inc"

global_settings
{
   assumed_gamma 1.0
   radiosity {Rad_Settings(Radiosity_Normal, off, off)}
}

camera
{
   location  <0.0, 1.0, -3.0>
   look_at   <0.0, 1.0,  0.0>
   angle 90
}


light_source {< -10,  10, -10> color White}

sphere
{
   0, 1000 pigment {color SkyBlue} hollow
}

plane {y, 0 pigment{checker color White color Black}}

sphere {y,1 pigment {color White}}


Post a reply to this message

From: taftj
Subject: Re: Radiosity example
Date: 7 Nov 2012 22:10:00
Message: <web.509b2221108ff70baaeb765e0@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> taftj wrote:
> > Could somebody kindly post complete code for a very simple scene that uses
> > radiosity?  Maybe a white plane with a white box and nothing else.  No matter
> > what I try, I get either blackness or no effect.  Something's not clicking I
> > guess :(
>
> Try this:
>
>
> #default {finish {ambient 0}}
>
> #include "colors.inc"
> #include "rad_def.inc"
>
> global_settings
> {
>    assumed_gamma 1.0
>    radiosity {Rad_Settings(Radiosity_Normal, off, off)}
> }
>
> camera
> {
>    location  <0.0, 1.0, -3.0>
>    look_at   <0.0, 1.0,  0.0>
>    angle 90
> }
>
>
> light_source {< -10,  10, -10> color White}
>
> sphere
> {
>    0, 1000 pigment {color SkyBlue} hollow
> }
>
> plane {y, 0 pigment{checker color White color Black}}
>
> sphere {y,1 pigment {color White}}

Thank you- that did work, but apparently I'm still not understanding something
because when I remove the light source I see blackness.  I thought the point of
radiosity was that there was some "general" light without needing a specific
light source.

So I was expecting that even without an explicitly defined light source there
would still be some light.

Kind of like this:

http://www.povray.org/documentation/images/tutorial/radB_01.jpg

I also tried making the SkyBlue sphere glow by adding finish{ambient 1} to it's
definition, but still got blackness.  What am I missing?


Post a reply to this message

From: James Holsenback
Subject: Re: Radiosity example
Date: 8 Nov 2012 07:11:59
Message: <509ba18f$1@news.povray.org>
On 11/07/2012 10:08 PM, taftj wrote:
> Christian Froeschlin <chr### [at] chrfrde> wrote:
>> taftj wrote:
>>> Could somebody kindly post complete code for a very simple scene that uses
>>> radiosity?  Maybe a white plane with a white box and nothing else.  No matter
>>> what I try, I get either blackness or no effect.  Something's not clicking I
>>> guess :(
>>
>> Try this:
>>
>>
>> #default {finish {ambient 0}}
>>
>> #include "colors.inc"
>> #include "rad_def.inc"
>>
>> global_settings
>> {
>>     assumed_gamma 1.0
>>     radiosity {Rad_Settings(Radiosity_Normal, off, off)}
>> }
>>
>> camera
>> {
>>     location  <0.0, 1.0, -3.0>
>>     look_at   <0.0, 1.0,  0.0>
>>     angle 90
>> }
>>
>>
>> light_source {< -10,  10, -10> color White}
>>
>> sphere
>> {
>>     0, 1000 pigment {color SkyBlue} hollow
>> }
>>
>> plane {y, 0 pigment{checker color White color Black}}
>>
>> sphere {y,1 pigment {color White}}
>
> Thank you- that did work, but apparently I'm still not understanding something
> because when I remove the light source I see blackness.  I thought the point of
> radiosity was that there was some "general" light without needing a specific
> light source.
>
> So I was expecting that even without an explicitly defined light source there
> would still be some light.
>
> Kind of like this:
>
> http://www.povray.org/documentation/images/tutorial/radB_01.jpg
>
> I also tried making the SkyBlue sphere glow by adding finish{ambient 1} to it's
> definition, but still got blackness.  What am I missing?
>

Because if using radiosity is used any ambient term are effectively zero 
... try emission instead

http://wiki.povray.org/content/Reference:Finish#Emission


Post a reply to this message

From: clipka
Subject: Re: Radiosity example
Date: 8 Nov 2012 08:20:57
Message: <509bb1b9$1@news.povray.org>
Am 08.11.2012 04:08, schrieb taftj:

> Thank you- that did work, but apparently I'm still not understanding something
> because when I remove the light source I see blackness.  I thought the point of
> radiosity was that there was some "general" light without needing a specific
> light source.

No, the main point of radiosity is that shadows are illuminated by 
diffuse light from other objects.

A side effect of radiosity is that you /can/ also get illumination from 
a sky sphere or background (this is automatic), and even objects (this 
requires a suitable finish setting; previously this could be done by 
using a non-zero "ambient" finish term, but this was originally just a 
hack and has always been troublesome, so as of POV-Ray 3.7 the new 
"emission" term needs to be used instead).


Post a reply to this message

From: Todd Carnes
Subject: Re: Radiosity example
Date: 19 Jun 2013 10:48:59
Message: <51c1c4db@news.povray.org>
On 11/6/2012 3:14 AM, Thomas de Groot wrote:
> On 6-11-2012 6:58, taftj wrote:
>> Could somebody kindly post complete code for a very simple scene that
>> uses
>> radiosity?  Maybe a white plane with a white box and nothing else.  No
>> matter
>> what I try, I get either blackness or no effect.  Something's not
>> clicking I
>> guess :(
>>
>> Thank you!
>>
>>
> 
> Take one of the basic scenes from the Insert Menu, and add the following
> block (using version 3.7 btw):
> 
> global_settings {
>   adc_bailout 0.003922
>   assumed_gamma 1.0
>   max_trace_level 10
>   number_of_waves 10
>   noise_generator 2
>   radiosity {
>     brightness       1.0
>     count            100, 500
>     error_bound      1.8
>     gray_threshold   0.0
>     low_error_factor 0.5
>     minimum_reuse    0.015
>     nearest_count    10, 5
>     recursion_limit  2
>     adc_bailout      0.01
>     media            off
>     normal           off
>     always_sample    off
>     pretrace_start   0.08
>     pretrace_end     0.004
>   }
> }
> 
> Thomas
> 
> 

Hi Thomas,

I know this is kind of an old message, but I'm hoping you are still out
there...

I tried your suggestion with several of the canned examples from the
insert menu and have found an unexpected (by me) result.

On scenes such as Basic_Scene_05: Grass with small clouds in sky, your
settings cause the sky to go from a bright sunny blue sky in the
original scene, to a dark, grey, stormy-looking sky.

I was wondering if you, or anyone else, could explain what is going on.

I'm using POVray 3.7 RC7.

Todd


Post a reply to this message

From: Thomas de Groot
Subject: Re: Radiosity example
Date: 19 Jun 2013 10:59:35
Message: <51c1c757$1@news.povray.org>
On 19-6-2013 16:48, Todd Carnes wrote:
> Hi Thomas,
>
> I know this is kind of an old message, but I'm hoping you are still out
> there...
>
> I tried your suggestion with several of the canned examples from the
> insert menu and have found an unexpected (by me) result.
>
> On scenes such as Basic_Scene_05: Grass with small clouds in sky, your
> settings cause the sky to go from a bright sunny blue sky in the
> original scene, to a dark, grey, stormy-looking sky.
>
> I was wondering if you, or anyone else, could explain what is going on.
>
> I'm using POVray 3.7 RC7.

Elementary, my dear Watson ;-)

The basic scene comes from an older version of POV. In version 3.7, the 
ambient parameter in finish does not work as before. You have to replace 
it by emission and the scene renders correctly.

Thomas


Post a reply to this message

From: Todd Carnes
Subject: Re: Radiosity example
Date: 19 Jun 2013 11:22:14
Message: <51c1cca6$1@news.povray.org>
On 6/19/2013 10:59 AM, Thomas de Groot wrote:
> Elementary, my dear Watson ;-)
> 
> The basic scene comes from an older version of POV. In version 3.7, the
> ambient parameter in finish does not work as before. You have to replace
> it by emission and the scene renders correctly.
> 
> Thomas

Thank you for the prompt answer. :)


Post a reply to this message

From: Thomas de Groot
Subject: Re: Radiosity example
Date: 20 Jun 2013 03:06:18
Message: <51c2a9ea$1@news.povray.org>
Musing...

It is not a /bug/ strictly speaking, as the scene renders correctly in 
its original state, without the radiosity block. The reason is 
adequately described in the wiki Docs (section 1.3.5.3.2).

However, it is something to remain aware of when building scenes from 
pre-defined ones.

Thomas


Post a reply to this message

Goto Latest 10 Messages Next 5 Messages >>>

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