Skip to content

Commit 7870058

Browse files
authored
Merge branch 'dev_1.1' into resources_section
2 parents 41271ff + 5bb9a13 commit 7870058

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

examples/open_pbr_default.mtlx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<input name="transmission_scatter" type="color3" value="0, 0, 0" />
2121
<input name="transmission_scatter_anisotropy" type="float" value="0.0" />
2222
<input name="transmission_dispersion_scale" type="float" value="0.0" />
23-
<input name="transmission_dispersion_abbe_number" type="float" value="0.0" />
23+
<input name="transmission_dispersion_abbe_number" type="float" value="20.0" />
2424
<input name="subsurface_weight" type="float" value="0" />
2525
<input name="subsurface_color" type="color3" value="0.8, 0.8, 0.8" />
2626
<input name="subsurface_radius" type="float" value="1.0" />
@@ -35,9 +35,9 @@
3535
<input name="coat_roughness_anisotropy" type="float" value="0.0" />
3636
<input name="coat_ior" type="float" value="1.6" />
3737
<input name="coat_darkening" type="float" value="1.0" />
38-
<input name="thin_film_weight" type="float" value="0.0" />
39-
<input name="thin_film_thickness" type="float" value="0" />
40-
<input name="thin_film_ior" type="float" value="1.5" />
38+
<input name="thin_film_weight" type="float" value="0" />
39+
<input name="thin_film_thickness" type="float" value="0.5" />
40+
<input name="thin_film_ior" type="float" value="1.4" />
4141
<input name="emission_luminance" type="float" value="0.0" />
4242
<input name="emission_color" type="color3" value="1, 1, 1" />
4343
<input name="geometry_opacity" type="float" value="1" />

examples/open_pbr_velvet.mtlx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
<input name="specular_roughness" type="float" value="0.8" />
99
<input name="fuzz_weight" type="float" value="1" />
1010
<input name="fuzz_color" type="color3" value="0.4, 0.4, 0.4" />
11-
<input name="fuzz_roughness" type="float" value="0.2" />
11+
<input name="fuzz_roughness" type="float" value="0.5" />
1212
</open_pbr_surface>
1313
</materialx>

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@
868868
--------------------------|-----------|----------|:---------------:|:-------------:|:--------:|----------------------------------------------
869869
**`thin_film_weight`** | Weight | `float` | $ [0, 1] $ | | $ 0 $ | Coverage weight of the thin film
870870
**`thin_film_thickness`** | Thickness | `float` | $ [0, \infty) $ | $ [0, 1] $ | $ 0.5 $ | Thickness of the film in micrometers ($\mathrm{\mu m}$)
871-
**`thin_film_ior`** | IOR | `float` | $ (0, \infty) $ | $ [1, 3] $ | $ 1.5 $ | Refractive index of the film
871+
**`thin_film_ior`** | IOR | `float` | $ (0, \infty) $ | $ [1, 3] $ | $ 1.4 $ | Refractive index of the film
872872

873873
![](images/thin_film_0nm.png width=99%) ![](images/thin_film_300nm.png width=99%) ![](images/thin_film_600nm.png width=99%)
874874
<div class="shifted-caption">
@@ -1074,7 +1074,7 @@
10741074

10751075
The fuzz BRDF $f_\mathrm{fuzz}$ and VDF $V_\mathrm{fuzz}$ are assumed to be derived from an anisotropic microflake volume model with a fiber-like distribution. We recommend the specific model of [#Zeltner2022] (based on the earlier work of [#Heitz2015]), which has the following characteristics:
10761076

1077-
- The fuzz represents a homogeneous volumetric layer with a fiber-like SGGX microflake [#Heitz2015] phase function. This is approximated using a Linearly Transformed Cosines (LTC) model [#Heitz2016b] fitted to volumetric simulations. The microflake fibers are assumed to have a single-scattering albedo that effectively produces a reflection tinted with the **`fuzz_color`** after multiple scattering.
1077+
- The fuzz represents a homogeneous volumetric layer with a fiber-like SGGX microflake [#Heitz2015] phase function. This is approximated using a Linearly Transformed Cosines (LTC) model [#Heitz2016b] fitted to volumetric simulations. The microflake fibers are assumed to have a single-scattering albedo that effectively produces a reflection tinted with the **`fuzz_color`** after multiple scattering, allowing the fuzz to darken as well as lighten.
10781078
- The volumetric fuzz layer is assumed to have a fixed unit optical thickness in all channels, and is purely scattering so no energy is absorbed. Thus any light not reflected after multiple scattering is assumed to transmit to the lower layers, and the transmittance is gray so the base is not tinted by the fuzz. The amount of this fixed thickness fuzz is controlled via the layer coverage weight **`fuzz_weight`**. The fuzz layer is also assumed to be index-matched with the adjacent slab above it, i.e. the fibers are embedded in the surrounding dielectric medium, thus there is no Fresnel reflection from the slab.
10791079
- The **`fuzz_roughness`** parameter controls how fibre-like the microflake distribution of the layer is. At low roughness the microflakes are highly fibre-like (i.e. thin fibres oriented along the normal) producing a high-sheen fabric appearance, while at high roughness the microflakes are spherical producing a dusty appearance.
10801080

parametrization.md.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
| **Thin-film** |
6464
| `thin_film_weight` | Weight | `float` | $ [0, 1] $ | | $ 0 $ | |
6565
| `thin_film_thickness` | Thickness | `float` | $ [0, \infty) $ | $ [0, 1] $ | $ 0.5 $ | $\mathrm{\mu m}$ |
66-
| `thin_film_ior` | IOR | `float` | $ (0, \infty) $ | $ [1, 3] $ | $ 1.5 $ | |
66+
| `thin_film_ior` | IOR | `float` | $ (0, \infty) $ | $ [1, 3] $ | $ 1.4 $ | |
6767
| **Geometry** |
6868
| `geometry_opacity` | Opacity | `float` | $ [0, 1] $ | | $ 1 $ | |
6969
| `geometry_thin_walled` | Thin walled | `boolean` | {false, true} | | false | |

reference/open_pbr_surface.mtlx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
doc="Coverage weight of the thin-film. Use for materials such as multi-tone car paint or soap bubbles." />
7070
<input name="thin_film_thickness" type="float" value="0.5" uimin="0.0" uisoftmax="1.0" uiname="Thin Film Thickness" uifolder="Thin Film" uiadvanced="true"
7171
doc="The thickness of the thin-film layer on the base (in micrometers)." />
72-
<input name="thin_film_ior" type="float" value="1.5" uimin="0.0" uisoftmin="1.0" uisoftmax="3.0" uiname="Thin Film Index of Refraction" uifolder="Thin Film" uiadvanced="true"
72+
<input name="thin_film_ior" type="float" value="1.4" uimin="0.0" uisoftmin="1.0" uisoftmax="3.0" uiname="Thin Film Index of Refraction" uifolder="Thin Film" uiadvanced="true"
7373
doc="The index of refraction of the thin-film." />
7474
<input name="emission_luminance" type="float" value="0.0" uimin="0.0" uisoftmax="1000.0" uiname="Emission Luminance" uifolder="Emission"
7575
doc="The amount of emitted light, as a luminance in nits." />
@@ -558,12 +558,12 @@
558558
</layer>
559559

560560
<!-- Fuzz Layer -->
561-
<!-- TODO: Add a new BSDF node for the selected fuzz model in OpenPBR -->
562561
<sheen_bsdf name="fuzz_bsdf" type="BSDF">
563562
<input name="weight" type="float" interfacename="fuzz_weight" />
564563
<input name="color" type="color3" interfacename="fuzz_color" />
565564
<input name="roughness" type="float" interfacename="fuzz_roughness" />
566565
<input name="normal" type="vector3" interfacename="geometry_normal" />
566+
<input name="mode" type="string" value="zeltner" />
567567
</sheen_bsdf>
568568
<layer name="fuzz_layer" type="BSDF">
569569
<input name="top" type="BSDF" nodename="fuzz_bsdf" />

0 commit comments

Comments
 (0)