POV-Ray : Newsgroups : povray.advanced-users : Clipped radiosity samples Server Time
25 Nov 2024 09:34:11 EST (-0500)
  Clipped radiosity samples (Message 1 to 10 of 10)  
From: Kari Kivisalo
Subject: Clipped radiosity samples
Date: 4 Mar 2003 09:37:38
Message: <3E64BA3D.883AE539@luxlab.com>
I did a quick test on this and it seems diffuse reflection
from a surface is clipped to the diffuse value.

// output as 48bit and adjust histogram to compare

#declare M=1; // set levels max point to 255/51=5
//#declare M=51; 

global_settings{
  max_trace_level 6
  radiosity{
    pretrace_start 0.04
    pretrace_end 0.01
    count 800
    recursion_limit 5
    nearest_count 3
    error_bound 0.2
    max_sample 100
  }
}

camera{
  location <0,0,-39>
  direction 1.5*z
}


box{<-3,-3,-40>,<3,3,2>
  pigment{rgb 1}
  finish{diffuse 0.75 ambient 0}
}

light_source{
  <2.5,2.5,1>
  rgb 1/0.75
  spotlight radius 10 falloff 30 tightness 1 point_at<-2.5,-2.5,-1>
}


_____________
Kari Kivisalo


Post a reply to this message

From: Christoph Hormann
Subject: Re: Clipped radiosity samples
Date: 4 Mar 2003 10:17:28
Message: <3E64C387.E4A49477@gmx.de>
Kari Kivisalo wrote:
> 
> I did a quick test on this and it seems diffuse reflection
> from a surface is clipped to the diffuse value.
> 

You have to elaborate a bit more on that - the scene renders just fine
here and i have no idea what this 'M' is meant for.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Kari Kivisalo
Subject: Re: Clipped radiosity samples
Date: 4 Mar 2003 12:29:24
Message: <3E64E27E.AA5DBE1D@luxlab.com>
Christoph Hormann wrote:
> 
> You have to elaborate a bit more on that - the scene renders just fine
> here and i have no idea what this 'M' is meant for.

The idea is that M=1 limits all the reflected rays below 1.
The directly lit area is the brigtest and emits at intensity 1 which
should be ok even if there is clipping done anywhere.

M=51 should look equal to M=1 when M=1 image is adjusted to same
brightness. It doesn't so there is clipping present. You'll notice
the back wall intensity is clipped to 0.75. The corridor is also
darker.



_____________
Kari Kivisalo


Post a reply to this message

From: Christoph Hormann
Subject: Re: Clipped radiosity samples
Date: 4 Mar 2003 12:47:52
Message: <3E64E6C8.B46794F3@gmx.de>
Kari Kivisalo wrote:
> 
> > You have to elaborate a bit more on that - the scene renders just fine
> > here and i have no idea what this 'M' is meant for.
> 
> The idea is that M=1 limits all the reflected rays below 1.
> The directly lit area is the brigtest and emits at intensity 1 which
> should be ok even if there is clipping done anywhere.
> 
> M=51 should look equal to M=1 when M=1 image is adjusted to same
> brightness. It doesn't so there is clipping present. You'll notice
> the back wall intensity is clipped to 0.75. The corridor is also
> darker.

Fine but 'M' is not used anywhere in your code - the image will always
look the same.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Kari Kivisalo
Subject: Re: Clipped radiosity samples
Date: 5 Mar 2003 10:19:48
Message: <3E6615A0.2C7EA8D1@luxlab.com>
Christoph Hormann wrote:
> 
> Fine but 'M' is not used anywhere in your code - the image will always
> look the same.

Should be like:

light_source{
  <2.5,2.5,1>
  rgb 1/0.75*M
  spotlight radius 10 falloff 30 tightness 1 point_at<-2.5,-2.5,-1>
}

Posted image to binaries.images where M=1 is adjusted to same
brightness.


_____________
Kari Kivisalo


Post a reply to this message

From: Christoph Hormann
Subject: Re: Clipped radiosity samples
Date: 5 Mar 2003 11:06:19
Message: <3E66207B.C6B14F94@gmx.de>
Kari Kivisalo wrote:
> 
> Should be like:
> 
> light_source{
>   <2.5,2.5,1>
>   rgb 1/0.75*M
>   spotlight radius 10 falloff 30 tightness 1 point_at<-2.5,-2.5,-1>
> }

All right, i already assumed something like that.

This effect is cause by the clipping of prediction values (stored
illuminance values plus gradients) in ra_average_near() (line 461 ff. in
radiosit.cpp).  I am not completely sure why this clipping is used but i
suppose it was meant to reduce artefacts when there was no
Maximum_Sample_Brightness yet.  Using max_sample you can achieve about the
same effect.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: T J Viking
Subject: Re: Clipped radiosity samples
Date: 5 Mar 2003 11:30:45
Message: <3e662635@news.povray.org>
> This effect is cause by the clipping of prediction values (stored
> illuminance values plus gradients) in ra_average_near() (line 461 ff. in
> radiosit.cpp).  I am not completely sure why this clipping is used but i
> suppose it was meant to reduce artefacts when there was no
> Maximum_Sample_Brightness yet.  Using max_sample you can achieve about the
> same effect.

Nope :)

You simply do not understand gradients in the Ward's method....
It does not limit the interpolated values.. it limits overestimation by
gradient method and
has no connection to the Kari's sample.

I will show you in a few days all clipping places in the radiosit.cpp and
more :)


Post a reply to this message

From: Christoph Hormann
Subject: Re: Clipped radiosity samples
Date: 5 Mar 2003 11:38:03
Message: <3E6627EB.2472C45A@gmx.de>
"T.J.Viking" wrote:
> 
> [...]
> 
> You simply do not understand gradients in the Ward's method....
> It does not limit the interpolated values.. it limits overestimation by
> gradient method and
> has no connection to the Kari's sample.

Well, in contrast to you i changed it and tested the results...

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: T J Viking
Subject: Re: Clipped radiosity samples
Date: 5 Mar 2003 11:43:52
Message: <3e662948@news.povray.org>
> > You simply do not understand gradients in the Ward's method....
> > It does not limit the interpolated values.. it limits overestimation by
> > gradient method and
> > has no connection to the Kari's sample.
>
> Well, in contrast to you i changed it and tested the results...

And you led to the overestimation of interpolated samples....


Post a reply to this message

From: T J Viking
Subject: Re: Clipped radiosity samples
Date: 5 Mar 2003 11:56:20
Message: <3e662c34@news.povray.org>
Some info 4 you Chris.
I would really appreciate if you read that:

http://radsite.lbl.gov/radiance/papers/erw92/paper.html

http://positron.cs.berkeley.edu/~gwlarson/papers.html

Those are papers of Greg Ward, and current POVRAY "radiosity" is
modified Ward's Irradiance Cache.


Post a reply to this message

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