POV-Ray : Newsgroups : povray.general : Struggling to understand diffuse Server Time
1 Nov 2024 01:23:34 EDT (-0400)
  Struggling to understand diffuse (Message 1 to 6 of 6)  
From: FNH
Subject: Struggling to understand diffuse
Date: 2 Mar 2014 05:10:01
Message: <web.53130302924e72735f52a9c30@news.povray.org>
In the following scene I expect the white sphere to show a hint of red or green
across its surface, thrown up by the nearby objects. Can anyone tell me what
I've misunderstood about diffuse? Is there something that needs to be added to
the sphere's texture?

#version 3.7;
global_settings{ assumed_gamma 1.0 }

#include "colors.inc"
camera {/*ultra_wide_angle*/ angle 75      // front view
                            location  <0.2 , 1.7 ,-3.2>
                            right     x*image_width/image_height
                            look_at   <0.3 , 1.0 , 0.0>}
light_source{<-1500,2500,-2500> color White}
light_source{ <-1000, 800, 3000>
              color White
            }

plane { <0,1,0>, 0
        texture { pigment{ color Green} finish { diffuse 1 }
                }
      }

light_source { <-11,103,0>, White}

cylinder{
        <-1,0,0>,
        <-1,0,5>,
        1
        texture {
                pigment { Red }
                finish  {
                        diffuse 1
                        brilliance .2
                        reflection 0.1
                        }
                }
        }

sphere  {
        <1,1,1.2>,1
        texture {
                pigment { White }
                finish { ambient 0 diffuse 1}

                }
        }


Post a reply to this message

From: Le Forgeron
Subject: Re: Struggling to understand diffuse
Date: 2 Mar 2014 05:18:55
Message: <5313058f$1@news.povray.org>
Le 02/03/2014 11:08, FNH nous fit lire :
> In the following scene I expect the white sphere to show a hint of red or green
> across its surface, thrown up by the nearby objects. Can anyone tell me what
> I've misunderstood about diffuse? Is there something that needs to be added to
> the sphere's texture?

Study the scene radiosity/cornell.pov

(from the delivered scenes with povray)


Post a reply to this message

From: Doctor John
Subject: Re: Struggling to understand diffuse
Date: 2 Mar 2014 06:06:33
Message: <531310b9@news.povray.org>
On 02/03/14 10:18, Le_Forgeron wrote:
> Le 02/03/2014 11:08, FNH nous fit lire :
>> In the following scene I expect the white sphere to show a hint of red or green
>> across its surface, thrown up by the nearby objects. Can anyone tell me what
>> I've misunderstood about diffuse? Is there something that needs to be added to
>> the sphere's texture?
> 
> Study the scene radiosity/cornell.pov
> 
> (from the delivered scenes with povray)
> 

As Le Forgeron hinted, it's not additions to texture you need, but
radiosity. Add the following into your global_settings:

radiosity{
    pretrace_start 0.04
    pretrace_end 0.01
    count 200
    recursion_limit 3
    nearest_count 10
    error_bound 0.5
}

John
-- 
Protect the Earth
It was not given to you by your parents
You hold it in trust for your children


Post a reply to this message

From: FNH
Subject: Re: Struggling to understand diffuse
Date: 2 Mar 2014 07:10:00
Message: <web.53131f434ef600025f52a9c30@news.povray.org>
> As Le Forgeron hinted, it's not additions to texture you need, but
> radiosity. Add the following into your global_settings:
>
> radiosity{
>     pretrace_start 0.04
>     pretrace_end 0.01
>     count 200
>     recursion_limit 3
>     nearest_count 10
>     error_bound 0.5
> }
>
> John
> --
> Protect the Earth
> It was not given to you by your parents
> You hold it in trust for your children

Thank you! Totally missed that!


Post a reply to this message

From: Doctor John
Subject: Re: Struggling to understand diffuse
Date: 2 Mar 2014 07:15:49
Message: <531320f5@news.povray.org>
On 02/03/14 12:08, FNH wrote:
> 
> Thank you! Totally missed that!
> 
> 

As I've said before to others, you're welcome. We learn by making mistakes.

John
-- 
Protect the Earth
It was not given to you by your parents
You hold it in trust for your children


Post a reply to this message

From: Alain
Subject: Re: Struggling to understand diffuse
Date: 2 Mar 2014 18:27:58
Message: <5313be7e@news.povray.org>
Le 14-03-02 06:04, Doctor John a écrit :
> On 02/03/14 10:18, Le_Forgeron wrote:
>> Le 02/03/2014 11:08, FNH nous fit lire :
>>> In the following scene I expect the white sphere to show a hint of red or green
>>> across its surface, thrown up by the nearby objects. Can anyone tell me what
>>> I've misunderstood about diffuse? Is there something that needs to be added to
>>> the sphere's texture?
>>
>> Study the scene radiosity/cornell.pov
>>
>> (from the delivered scenes with povray)
>>
>
> As Le Forgeron hinted, it's not additions to texture you need, but
> radiosity. Add the following into your global_settings:
>
> radiosity{
>      pretrace_start 0.04
>      pretrace_end 0.01
>      count 200
>      recursion_limit 3
>      nearest_count 10
>      error_bound 0.5
> }
>
> John
>

That's a rather high quality radiosity setting.

You can get descent results using only radiosity{} to enable radiosity 
using the default parameters.
For a test render, it's often enough.
The radiosity defaults are:
radiosity{
pretrace_start 0.08
pretrace_end 0.04
count 35
nearest_count 5
error_bound 1.8
low_error_factor 0.5
minimum_reuse 0.015
recursion_limit 2
normals off
media off
}



Alain


Post a reply to this message

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