Practise skin sub surface scattering (SSS) effect in renderman Production

Source: Internet
Author: User

Bo schwarzstein

Copyright

The referred graphs have been announced.

We 'd better view some principle about bssrdf and human skin. repeat, this is not a math hell. bssrdf is not used for completely remove the brdfs (include Phong, BlinN, cook-Torrance etc .) from the earth. it's only for correctly representing translucent material in computer graphics. if you want to learn something deepter, you 'd better ask your solid physics or applied optics teacher. they will explain to you that all the problem is about the reaction between light energy and atom at quantum level. oh, it sounds terrible, not easy at all. so, we will show something much easier than you dive into papers all by your self.

In computer graphics, we want to "correctly" illuminate the appearances of objects in scene, whatever from psychology, like Phong shading, or physical, just like the Monte Carlo method. so we have used some classic BRDF model in computer graphics. in fact, the BRDF is a approximation of bssrdf, it is assumed that light enters and leaves at the same point [a practical model for subsurface light transport]. but if we investigate the translucent objects near us, such as grape, marble, milk, skin, we will know that every lighten points we saw on them were held ted by nearby point even inner of them when the light was traveling through them. the origin formula is:

 

 

If we want to solve equation is quite stupid. in reality, artist likes to face to parse linear parameters, modifies them by simple arithmetic, or just in a compositing software such as shake, after effect, not these mathematics devils. so we have to separate something important parts from the origin formula. let's continue now.

The radiant exitance is our final wanted result, because we can use it as diffuse radiance data directly.

EPIs Irradiance at the location P, calculated like this:

It means thatEPIs the sum of ambient and diffuse components multiplyKdtSurface Color, also the radiance diffusely transmitted through the surface.APIs the area of the location. from simple to difficult, the last part can be expressed like this:

 

Oh, we attract more unknown variable quantities, before we can solve this, we have to get something ready:

 

And more:

Solving RD is just for get α '. because:

But this function is not easily to invertible, otherwise we can directly get everything. But we first shoshould see its graph:

It has a simple monotonic shape in the valid region α 'is in [0, 1], we can use a secant root Finder to compute α '.

Now, do not feel complicated about so many symbol. the most important parameters which dominate skin appearance are sigma_s 'and sigma_a, luckily, these two parameters can be measured from experiment. so this is the plot from [Analysis of Human Faces using a measurement-based skin refectance model]:

This plot gives us a very valuable reference to our deciding approximate parameters for different human skins. the circle shape encodes male the other is female. mark size encodes age, the bigger the older. color encodes skin appearance, from black, dark brown, to brown, white to Olive, until White, very white.

Shot

Reduced scattering coeff.

Absorption coeff.

Addtion

0.74 0.88 1.01 0.032 0.17 0.48 Built-in skin1

1.09 1.59 1.79

0.013 0.070 0.145

Built-in skin2

1.4 1.18 1.3

0.07 0.23 0.46

Table Data

2.18 1.67 1.9

 

0.025 0.18 0.4

Table Data

In Pixar renderman Pro Server there is a tool names ptfilter. we can use this command line tool to do sub-surface diffusion in a point cloud. then we can make a brick file and use the illumination data in surface shader by texture3d () op. we will touch 4 parameters if we want to get correct SSS effect manually. they are:

Unit length, Important physical-based parameter, depend on size of your 3D model, if you miss it and your scece unit is not mm, you will get wrong result.

Diffuse mean free path, We use "dmfp" for short. this is a also physical-based parameter. this parameter is a attribute of transpoliccy material surface. this parameter will be convert to mean free path (MFP), means the average distance at which light scatters. this parameters will multiply with unit length above, so it's physical preparation of material, even it's spatially-varying.

Scattering coefficient, Just the σ s', main parameters in controlling SSS effect, shocould be fixed before modify others.

Absorption Coefficient, The σ A, as the same as σ s '.

Albedo, For simple, it's the diffuse color, to represent different degree of light scattering.

We have to know that this tool is based on Dipole diffusion approximation algorithm in [a practical model for subsurface light transport]. so it can't represent the effect such as refraction of light at the boundary casing internal caustics, translucent inter-scattering. for that we can use more advance method such as photon diffusion, but it have not been supplied public tool.

The next stage is about choosing which BRDF model used to fit the data. in [Analysis of Human Faces using a measurement-based skin Reflectance Model], they have discussed enough about the BRDF model. the Torrance-Sparrow BRDF is physically-based, so it is quite suitable to represent the bump skin surface. there is nobody's face is perfect flat. this BRDF must be used spatially-varying, not uniform. so we have to reconstruct all the needed render data.

Refer to [Analysis of Human Faces using a measurement-based skin Reflectance Model], artists shoshould divide the whole face texture map into different part so that each region will be painted with correct BRDF parameters. and each region owns its distribution.

first, we shoshould make sure what kind of human skin we want to simulate, male or female, how old, black or white. from these conditions we have had the bound of scattering parameter σ a and absorption parameter σ s '. general speaking, dark brown and black skin have higher absorption and lower scattering coefficients than white skin. it's natural that the Absorption Coefficient σ a is highest for the blue and green channels, this is caused by blood in deep level of skin. from the function graph we know σ a decreases with higher scattering coefficient σ s '.

then we can along the path showed by using E Hery in [Implementing a skin bssrdf]. when we have fixed the σ s ', then we modify the σ a, even the diffuse mean free path. but these parameters are quite unfriendly to artist. the origin data is measured in laboratory, is not intuitive. the less key parameters the artist will control, the more easier to handle. the index of refraction is fixed to 1.3 about tables materials, such as skin, ketchup, skimmilk. we suggest that all of physical parameter such as dmpf, σ s' and σ a shoshould be fixed by Technical Director (TD), then artist can convert approximate parameters into textures, combined with shading program, here are the channels baked by renderman shaders. even TD manually write little c ++ program to calculate these numbers by Pixar renderman SDK after discussing with artist or some specialist about material.

the perfect effect must be handed by artist. SSS is not the everything, a compellent cinematic effect comes from heavy compositing, high quality texture maps, accurate displacement, good lighting design, the SSS is just a good way to illuminate translucent materials. good luck.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.