Sign in to follow this  
alek314??

skin and SH lighting problem

Recommended Posts

Hi!

I'm trying to use pre-integrated sss with SH as mention in the RAD 2013 course note, and I have some question.

 

1. One need to convolute  D(theta,r) with Y(l,0), why is theta in the range of [0, Pi/2]? For clamped cos, only the upper hemisphere matters, but for skin scattering function, shouldn't it be [0, Pi]?

 

2. I have compute three 1D texture, parameterized by curvature, using R8G8B8 format, and the color of the l=3 texture looks too blue.

I have the same problem with directional light texture as well, especially in the bright side of the small radius(big curvature)  region. But after some curve adjustment in photoshop, the blue vanish and look exactly like the one in the Penner and Borshukov PPT.

 

Any suggestion? Thank you.

[attachment=23250:sh2.jpg][attachment=23251:scatter.jpg]

Share this post


Link to post
Share on other sites

Regarding #1, that was a typo in the course notes. It should indeed be [0, Pi], so that the integration range covers the entire sphere. I have it fixed locally, I'm sure waiting for Stephen to finish with the 2014 material to ask him to re-upload the PDF.

 

For #2, I'm not sure what the problem is. I would assume it's an issue with your integration, but it's hard to say without more information.

Edited by MJP

Share this post


Link to post
Share on other sites

I think the blue part has something to do with the Gaussian. 

According to http://http.developer.nvidia.com/GPUGems3/gpugems3_ch14.html , the weight of the blue light at variance 0.0064 is greater then the red light, so on the left side of the curve, blue should be "taller" then red. This is confirm by the plot given in the Penner PPT. But in GPU Gem3, the red curve is always on top of the blue and green one(GPU Gem3 plot  is r x R(r), while Penner PPT plot is R(r)). I have try to plot the  r x R(r) curve, the blue one is still the tallest.

 

This Gamasutra post also has the "blue problem" : http://www.gamasutra.com/view/news/128934/Indepth_Skin_shading_in_Unity3D.php

Edited by alek314??

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this