# US 2023/0053410 A1 · Subsurface scattering calculation method for translucent material rendering

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0053410 A1
- Document ID: US20230053410A1
- Status: Published application
- Kind: A1
- Application number: 17/577,223
- Filed: 2022-01-17
- Published: 2023-02-23
- Earliest claimed: 2021-08-19
- Assignees: Beihang University
- Applicants: Beihang University
- Inventors: Yang GAO; Shiyu LIANG; Aimin HAO; Hongyu WU
- Web page: https://patentgrep.com/patent/US20230053410A1

## CPC

- G06T 15/506: {Illumination models}
- G06T 15/30: Clipping
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

The embodiments of the present disclosure disclose subsurface scattering calculation method for translucent material rendering, which relates to the clipping and polynomial fitting of brute-force Monte Carlo photon tracking experimental results to accurately represent the energy attenuation of subsurface scattering in distance. On this basis, an average free path and a single scattering rate are used to determine the relationship of each term in the multinomial fitting formula so as to facilitate the calculation and adjustment of the reflection profile. In the end, through a new real-time importance sampling solution, the outgoing radiation from any point on the object surface is calculated by the Monte Carlo method. This importance sampling solution is also applicable to any other subsurface scattering calculation model. By combining this subsurface scattering calculation result with other results, such as highlight reflection, any translucent material object can be rendered accurately and efficiently.

## Claims

### Claim 1

A subsurface scattering calculation method for translucent material rendering, comprising:
step 1: using a current open source brute-force Monte Carlo photon tracker MCML, defining input file parameters as an upper, middle and lower three-layer object, considering anisotropy using a similarity theory, clipping an output data to avoid an influence of zero value data on a fitting error, and finally fitting the clipped data with a specific polynomial function, to obtain several groups of fitting results, in which upper and lower layers of the upper, middle and lower three-layer object are air layers, a middle layer of the upper, middle and lower three-layer object is a measurement layer, and a thickness of the measurement layer is set to 1.0E+8 to avoid an influence of the transmitted radiation, E represents a power of 10, a refractive index η is set to 1 to avoid an influence of the refractive index, η represents the refractive index, an anisotropy parameter g is set to 0, and g represents the anisotropy parameter;
step 2: through the several groups of fitting results obtained in step 1, using specific input parameters to determine a relationship of unknown terms in the polynomial; based on the selected fitting polynomial, determining a molecular coefficient term, a molecular constant term and a denominator constant term respectively to obtain a reflection profile calculation formula, wherein, the selected input parameters are a total diffuse reflectance considering the selected object surface, and an average free path of an object material, based on an artist friendliness;
step 3: according to the reflection profile calculation formula obtained in step 2, calculating a cumulative distribution function cdf for the reflection profile calculation formula, and inversing the cdf to obtain an importance sampling formula, wherein, there is no numerical solution for the inverse of cdf, which needs to be approximately solved by way of fitting, the importance sampling formula does not depend on a specific profile calculation formula, the importance sampling formula is related to the average free path and a single scattering rate;
step 4: in an operation stage, based on the reflection profile calculation formula obtained in step 2 and the importance sampling formula obtained in step 3, sampling several sample points in the screen space, and using Monte Carlo to calculate an outgoing radiation of a subsurface scattering influence part of object surface points;
step 5: mixing the subsurface scattering influence part with a highlight influence part and a transmitted light influence part, and carrying out subsequent post-processing steps to realize final rendering of translucent objects.

### Claim 2 (depends on 1)

The method of claim 1, wherein, the using the current open source brute-force Monte Carlo photon tracker MCML, defining the input file parameter as an upper, middle and lower three-layer object, considering the anisotropy using the similarity theory, and clipping the output data to avoid the influence of zero value data on the fitting error, comprising:
for a scattering distance r on a coordinate axis, starting from r=0, performing a judgement as to whether the current r is a maximum scattering distance once every time a segment of specific interval is added, wherein, this specific interval is called a clipping interval, and the clipping interval will decrease with a decrease of the maximum scattering distance, wherein, a judgment formula is as follows:
Rd(r′max)≤Rd(0)×∈,
wherein, Rd( ) represents a reflection profile value, r represents the scattering distance, r′max represents the maximum scattering distance selected in a fitting process, Rd(r′max) represents the reflection profile value at r′max, Rd(0) represents the reflection profile value of photons at an origin of the coordinate axis, ∈ represents a fineness when determining to choose the maximum scattering distance r=r′max, and a value of ∈ is set to 0.005,
wherein, the clipping interval is determined as follows: when r′max∈0˜0.5, the clipping interval is 0.05; when r′max∈0.5˜1, the clipping interval is 0.1; when r′max∈1˜2, the clipping interval is 0.2; when r′max∈2˜5, the clipping interval is 0.5; when r′max5, the clipping interval is 1; when the current scattering distance r meets conditions of the above formula, this r is determined as the maximum scattering distance r′max selected in the fitting process, data after r′max is removed, and a data fitting is performed to data before the fitting polynomial selected is as follows:
Rd
⁡
(
r
)
=
ar
+
b
r
+
c
,
wherein, Rd(r) represents the reflection profile value of r, r represents the scattering distance, Rd( ) represents the reflection profile value, a represents the molecular coefficient term, b represents the molecular constant term, and c represents the denominator constant term;
based on this formula, a scattering range of the material can be accurately calculated, and a calculation formula of the maximum scattering distance rmax is as follows:
r
max
=
-
b
a
,
wherein, rmax represents the maximum scattering distance actually calculated, r represents the scattering distance, max represents the maximum value, a represents the molecular coefficient term, b represents the molecular constant term, and
-
b
a
represents an opposite number of a ratio of the molecular constant term to the molecular coefficient term.

### Claim 3 (depends on 2)

The method of claim 2, wherein, the using specific input parameters to determine the relationship of the unknown terms in the polynomial through the several groups of fitting results obtained in step 1 and determining the molecular coefficient term, molecular constant term and denominator constant term respectively to obtain a reflection profile calculation formula based on the selected fitting polynomial, comprising:
making a simple fitting representation of a complex calculation relationship between the total diffuse reflectance and the single scattering rate, with a calculation formula being as follows:
α
=
5.67
A
A
2
+
3.84
A
+
0.84
,
wherein, α represents the single scattering rate, A represents the total diffuse reflectance, and A2 represents a square of the total diffuse reflectance;
determining a relationship of the molecular coefficient term, with a calculation formula being as follows:
a
=
-
0.0064
×
1
l
×
α
+
0.00316
×
1
l
×
0.1
-
30
⁢
(
α
-
1
)
,
wherein, a represents the molecular coefficient term, α represents the single scattering rate and l represents the average free path;
determining a relationship of the molecular constant term, with a calculation formula being as follows:
b=0.062×α(6.7×(α−0.45)2+2.6)×α+1.3,
wherein, b represents the molecular constant term and α represents the single scattering rate;
determining a relationship of the denominator constant term, with a calculation formula being as follows:
c=0.0097×l×exp(4.2×α)+0.166×l,
wherein, c represents the denominator constant term, l represents the average free path, exp( ) represents an exponential function with e as a base, e represents a natural constant, and α represents the single scattering rate;
calculating the reflection profile value at each scattering distance through the total diffuse reflectance and the average free path.

### Claim 4 (depends on 3)

The method of claim 3, wherein, the according to the reflection profile calculation formula obtained in step 2, calculating a cumulative distribution function cdf for the reflection profile calculation formula, and inversing the cdf to obtain an importance sampling formula, comprising:
for the calculated reflection profile value Rd(r), performing an integral calculation within a [0, rmax] interval to the r as a variable, to obtain the cumulative distribution function, with a calculation formula being as follows:
cdf
⁡
(
r
)
=
ar
+
(
b
-
ac
)
⁢
ln
(
r
c
+
1
)
A
×
2
⁢
π
,
wherein, cdf(r) represents the cumulative distribution function r, r represents the scattering distance, cdf( ) represents the cumulative distribution function, a represents the molecular coefficient term, b represents the molecular constant term, c represents the denominator constant term, ln( ) represents a logarithm with e as the base, e represents the natural constant, A represents the total diffuse reflectance, and π represents a circumference ratio;
based on a normalization of the reflection profile value Rd(r), a value of this cdf at rmax being 1, wherein, because the profile calculation formula is a formula based on the approximate fitting, it does not necessarily meet the condition that the value of cdf at rmax is 1, but needs to correct the reflection profile to meet the normalization, the correction formula being as follows:
{
Rd
co
(
r
)
=
Rd
⁡
(
r
)
cdf
⁡
(
r
max
)
cdf
co
(
r
)
=
cdf
⁡
(
r
)
cdf
⁡
(
r
max
)
,
wherein, Rdco(r) represents the corrected reflection profile of r conforming to energy conservation, r represents the scattering distance, Rdco( ) represents the corrected reflection profile conforming to the energy conservation, Rd(r) represents the reflection profile value of r, cdf(rmax) represents the cumulative distribution function of rmax, cdf( ) represents the cumulative distribution function, rmax represents the maximum scattering distance, cdfco(r) represents the corrected cumulative distribution function of r, cdfco( ) represents the corrected cumulative distribution function, cdf(r) represents the cumulative distribution function of r;
inversing the cdf to obtain the importance sampling formula, wherein, an inverse function of the cdf has no numerical representation and needs to be approximately represented by function fitting, and in order to make the importance sampling formula independent of a specific profile calculation formula and meet the artist friendliness, the input parameters are set as the single scattering rate and the average free path, the sampling formula being as follows:
{
ℊ
⁡
(
ξ
)
=
(
k
⁢
1
×
ξ
-
k
⁢
2
)
×
ξ
×
ln
⁡
(
1.01
-
ξ
)
k
⁢
1
=
1.504
×
l
×
α
2.175
×
α
0.7
+
0.19
k
⁢
2
=
3.993
×
l
×
α
3.268
×
α
+
0.2838
,
wherein, g(ξ) represents the sampling calculation formula of the scattering distance r, ξ represents a random number between [0,1], k1 represents a first correlation between the parameter average free path l and the single scattering rate α, k2 represents a second correlation between the parameter average free path l and the single scattering rate α, √{square root over ( )} represents a square operation, ln( ) represents the logarithm with e as a base, e represents the natural constant and l represents the average free path, and α represents the single scattering rate;
limiting a sampling distance within the scattering range, with a calculation formula being as follows:
r′=min(g(ξ),rmax),
wherein, r′ represents the sampling distance, g(ξ) represents the sampling calculation formula for the scattering distance r, rmax represents the maximum scattering distance, and min(,) represents a minimum of two values;
calculating the sampling distance through the above formula, and further obtaining several sampling points, so as to carry out subsequent Monte Carlo calculation to obtain the outgoing radiation.
