POV-Ray : Newsgroups : povray.binaries.images : mcpov sss Server Time
31 Jul 2024 20:19:44 EDT (-0400)
  mcpov sss (Message 1 to 5 of 5)  
From: fidos
Subject: mcpov sss
Date: 5 Apr 2009 03:45:01
Message: <web.49d861484d82de4af270fa080@news.povray.org>
Hello,

A test of sss with mcpov.
Here the first acceptable results.
Around 15h on 4 cores.

Regards,
Fidos


Post a reply to this message


Attachments:
Download 'happy_sss.jpg' (111 KB)

Preview of image 'happy_sss.jpg'
happy_sss.jpg


 

From: Severi Salminen
Subject: Re: mcpov sss
Date: 5 Apr 2009 03:53:46
Message: <49d8638a@news.povray.org>
fidos wrote:

> A test of sss with mcpov.
> Here the first acceptable results.
> Around 15h on 4 cores.

Looks great!

What is the basic method you use?

-- 
Severi Salminen
http://www.iki.fi/severi


Post a reply to this message

From: fidos
Subject: Re: mcpov sss
Date: 5 Apr 2009 05:55:00
Message: <web.49d87ed9f840050cf270fa080@news.povray.org>
> What is the basic method you use?
The mcpov modification is very simple (80 extra lines).
It is the same technics then in a previous experiment :
http://news.povray.org/web.4838403f151ae76dd309f1e00%40news.povray.org
I replaced the refract function with a new one that sample the hemisphere after
a shift of 0.001 below the surface.
I used an interior attenuation (interior { ior 1.0001 fade_distance 0.5
fade_power 1 }) in order to control the depth of the sss effect.

Regards,
Fidos


Post a reply to this message

From: clipka
Subject: Re: mcpov sss
Date: 5 Apr 2009 07:50:00
Message: <web.49d89a65f840050c3a0bfd2e0@news.povray.org>
"fidos" <fid### [at] wanadoofr> wrote:
> I replaced the refract function with a new one that sample the hemisphere after
> a shift of 0.001 below the surface.
> I used an interior attenuation (interior { ior 1.0001 fade_distance 0.5
> fade_power 1 }) in order to control the depth of the sss effect.

Nice one.
Why an ior of only 1.0001 instead of the more realistic 1.5 or something?

Note that the approach has a few drawbacks (or, rather, it doesn't go far
enough) regarding realism:


* In reality, attenuation will follow a much more complex term; see the 2001
Siggraph paper "A Practical Model for Subsurface Light Transport" by Jensen et
al (which also formed the basis of the Tariq & Ibarria patch) for the formula.

(The material parameters of the formula, although based on physical properties,
do not really lend themselves to toying around; an approach to compute them
from a more intuitive set of parameters is presented in chapter 4 of the 200?
follow-up Siggraph paper "A Rapid Hierarchical Rendering Technique for
Translucent Materials" by Jensen & Buhler, which also contains a re-phrased
version of the formula.)

Note that there are actually two main formulae: One modelling multiple
scattering only ("diffusion approximation"), and another one modelling
single-scattering, while "zero-scattering" (i.e. straightforward transparency)
was seemingly forgotten about in the paper. The latter two are probably quite
easy to model in MCPov: Just trace another light ray a random distance from the
exit point into the medium (using an exponential distributon, with the mean at
1/sigma'[s]; see the Jensen paper) to give you a point where the ray may have
last been scattered; if you find the point to be outside the object, it's a
"zero-scattering" ray, and you just need to attenuate it according to sigma[a]
(again, see the Jensen paper) and distance traveled; otherwise, trace another
ray from the scattering point to the object's surface; attenuate the ray
according to sigma'[s] and the distance traveled in this scattered ray, and
according to sigma[a] and the distance traveled through the object as a whole.

Attenuation will also differ by wavelength.


* In reality, diffuse reflection is just a special case of SSS as well, so for a
realistic approach the classic diffuse term should be disabled, and incident
light from "this side" be sampled as well; otherwise you will not be able to
model, for instance, light "bleeding" into shadows cast on a marble slab.

You may like to hear, however, that your sampling pattern can easily be adapted
to this one as well for good effect; as a matter of fact, POV's upcoming
subsurface light transport code will use a full-sphere sampling pattern from a
point slightly below the surface (though not at a fixed distance, but based on
material parameters instead).


Post a reply to this message

From: Sven Littkowski
Subject: Re: mcpov sss
Date: 15 Apr 2009 14:31:43
Message: <49e6280f$1@news.povray.org>
Sooo beautiful. Buddha is, indeed, a symbol of luch and happiness...

Sven


Post a reply to this message

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