POV-Ray : Newsgroups : povray.advanced-users : SSLT samples explanation Server Time
23 Dec 2024 02:49:15 EST (-0500)
  SSLT samples explanation (Message 1 to 4 of 4)  
From: OJD
Subject: SSLT samples explanation
Date: 16 May 2013 21:55:01
Message: <web.51958d3cd6bc07934b64393e0@news.povray.org>
I am looking for some clarity on what the 'samples' setting actually controls
for subsurface in global settings.

version 3.7 RC7

The documentation (3.4.6.3.3.4 Subsurface Light Transport) states the setting
controls "the number of samples for the diffuse scattering and single-scattering
approximation". What is the difference in diffuse scattering and single
scattering??

Now according to what I have read on the theory behind subsurface light
scattering there are so many bounces going on that regardless of the material
you will always get an isotropic scattering effect. So this would account for
the diffuse setting. I would assume this would be a similar setting to
scattering media type 1 and increasing samples will control how evenly light is
distributed.

 So I am puzzled at what is meant for single scattering and what that setting
will effect/control.


Post a reply to this message

From: Alain
Subject: Re: SSLT samples explanation
Date: 17 May 2013 16:15:38
Message: <51968fea$1@news.povray.org>

>   I am looking for some clarity on what the 'samples' setting actually controls
> for subsurface in global settings.
>
> version 3.7 RC7
>
> The documentation (3.4.6.3.3.4 Subsurface Light Transport) states the setting
> controls "the number of samples for the diffuse scattering and single-scattering
> approximation". What is the difference in diffuse scattering and single
> scattering??
>
> Now according to what I have read on the theory behind subsurface light
> scattering there are so many bounces going on that regardless of the material
> you will always get an isotropic scattering effect. So this would account for
> the diffuse setting. I would assume this would be a similar setting to
> scattering media type 1 and increasing samples will control how evenly light is
> distributed.
>
>   So I am puzzled at what is meant for single scattering and what that setting
> will effect/control.
>
>

Single scattering is for rays that only scatters once in the material. 
Enter, scatter, exit.
A low value for that can create some star shapes around highlights, at 
least, that's what I got in my experiments.

Diffuse scattering is for rays that scatters many times.

The best thing to do, is to make a test scene with only a single simple 
shape, like a plain white sphere, a single light_source and the camera.

Now, play around with the parameters.



Alain


Post a reply to this message

From: Alain
Subject: Re: SSLT samples explanation
Date: 19 May 2013 16:16:58
Message: <5199333a@news.povray.org>


>>   I am looking for some clarity on what the 'samples' setting actually
>> controls
>> for subsurface in global settings.
>>
>> version 3.7 RC7
>>
>> The documentation (3.4.6.3.3.4 Subsurface Light Transport) states the
>> setting
>> controls "the number of samples for the diffuse scattering and
>> single-scattering
>> approximation". What is the difference in diffuse scattering and single
>> scattering??
>>
>> Now according to what I have read on the theory behind subsurface light
>> scattering there are so many bounces going on that regardless of the
>> material
>> you will always get an isotropic scattering effect. So this would
>> account for
>> the diffuse setting. I would assume this would be a similar setting to
>> scattering media type 1 and increasing samples will control how evenly
>> light is
>> distributed.
>>
>>   So I am puzzled at what is meant for single scattering and what that
>> setting
>> will effect/control.
>>
>>
>
> Single scattering is for rays that only scatters once in the material.
> Enter, scatter, exit.
> A low value for that can create some star shapes around highlights, at
> least, that's what I got in my experiments.
>
> Diffuse scattering is for rays that scatters many times.
>
> The best thing to do, is to make a test scene with only a single simple
> shape, like a plain white sphere, a single light_source and the camera.
>
> Now, play around with the parameters.
>
>
>
> Alain
That "star" shape can be elusive and seem to be very scene dependent.


Post a reply to this message

From: clipka
Subject: Re: SSLT samples explanation
Date: 15 Jul 2013 20:15:19
Message: <51e49097@news.povray.org>
Am 17.05.2013 03:51, schrieb OJD:
>   I am looking for some clarity on what the 'samples' setting actually controls
> for subsurface in global settings.
>
> version 3.7 RC7
>
> The documentation (3.4.6.3.3.4 Subsurface Light Transport) states the setting
> controls "the number of samples for the diffuse scattering and single-scattering
> approximation". What is the difference in diffuse scattering and single
> scattering??
>
> Now according to what I have read on the theory behind subsurface light
> scattering there are so many bounces going on that regardless of the material
> you will always get an isotropic scattering effect. So this would account for
> the diffuse setting. I would assume this would be a similar setting to
> scattering media type 1 and increasing samples will control how evenly light is
> distributed.
>
>   So I am puzzled at what is meant for single scattering and what that setting
> will effect/control.

To elaborate on what Alain already mentioned:

The math behind the subsurface light scattering as implemented in 
POV-Ray is based on scientific research on the matter, and - within 
certain limitations - simulates the whole thing. But its core is a model 
that only accounts for light scattered at least twice in the material, 
while in reality some light rays bounce right out after a single 
scattering event; so the algorithm is augmented by another - quite 
different - method that takes care exclusively of the portion of the 
light that experiences a single scattering event. The two contributions 
are then simply added. (And, in POV-Ray, yet another term is added to 
account for light that passes through entirely unscattered, to also get 
acceptable results for very thin or highly translucent objects that 
border on being transparent.)

Each of the two algorithms take their own set of samples (there's really 
no way either of the algorithms could make use of the other one's 
samples), and the number of those samples can be controlled independently.

With the single-scattering contribution being typically much lower than 
the dual-or-more-scattering contribution, it makes sense to have POV-Ray 
spend less time on that one by choosing a lower number of samples for 
the former than for the latter. I typically use a factor of 10.


Post a reply to this message

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