Skip to content

Commit

Permalink
Adding example materials (#147)
Browse files Browse the repository at this point in the history
Here's a collection of example materials, in .mtlx format, that cover most of the parameters found in the OpenPBR specification, as suggested in this Slack thread: https://academysoftwarefdn.slack.com/archives/C06365EAQMP/p1698709666974279
  • Loading branch information
AntonPalmqvist authored Dec 6, 2023
1 parent d228756 commit 4e0ec21
Show file tree
Hide file tree
Showing 10 changed files with 172 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/open_pbr_aluminum_brushed.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">
<surfacematerial name="Aluminum_Brushed" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="base_color" type="color3" value="0.912, 0.914, 0.920" />
<input name="base_metalness" type="float" value="1.0" />
<input name="specular_color" type="color3" value="0.970, 0.979, 0.988" />
<input name="specular_roughness" type="float" value="0.2" />
<input name="specular_anisotropy" type="float" value="0.9" />
<input name="specular_rotation" type="float" value="0.25" />
</open_pbr_surface>
</materialx>
14 changes: 14 additions & 0 deletions examples/open_pbr_carpaint.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">
<surfacematerial name="Car_Paint" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="base_color" type="color3" value="0.1, 0.6, 0.9" />
<input name="specular_ior" type="float" value="1.6" />
<input name="specular_roughness" type="float" value="0.3" />
<input name="coat_weight" type="float" value="1" />
<input name="coat_roughness" type="float" value="0.02" />
<input name="coat_ior" type="float" value="1.6" />
</open_pbr_surface>
</materialx>
13 changes: 13 additions & 0 deletions examples/open_pbr_glass.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">
<surfacematerial name="Glass" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="specular_roughness" type="float" value="0.0" />
<input name="specular_ior" type="float" value="1.52" />
<input name="transmission_weight" type="float" value="1.0" />
<input name="transmission_dispersion_abbe_number" type="float" value="64" />
<input name="transmission_dispersion_scale" type="float" value="1.0" />
</open_pbr_surface>
</materialx>
14 changes: 14 additions & 0 deletions examples/open_pbr_honey.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">
<surfacematerial name="Honey" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="specular_roughness" type="float" value="0.0" />
<input name="specular_ior" type="float" value="1.504" />
<input name="transmission_weight" type="float" value="1.0" />
<input name="transmission_color" type="color3" value="0.83, 0.4, 0.04" />
<input name="transmission_depth" type="float" value="2" />
<input name="transmission_scatter" type="color3" value="0.9, 0.9, 0.9" />
</open_pbr_surface>
</materialx>
14 changes: 14 additions & 0 deletions examples/open_pbr_ketchup.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">
<surfacematerial name="Ketchup" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="base_color" type="color3" value="0.164, 0.006, 0.002" />
<input name="specular_roughness" type="float" value="0" />
<input name="specular_ior" type="float" value="1.3" />
<input name="subsurface_weight" type="float" value="1.0" />
<input name="subsurface_color" type="color3" value="0.164, 0.006, 0.002" />
<input name="subsurface_radius_scale" type="color3" value="0.476, 0.058, 0.039" />
</open_pbr_surface>
</materialx>
10 changes: 10 additions & 0 deletions examples/open_pbr_lightbulb.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">
<surfacematerial name="Light_Bulb" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="emission_color" type="color3" value="1.000, 0.415, 0.099" />
<input name="emission_luminance" type="float" value="10000" />
</open_pbr_surface>
</materialx>
19 changes: 19 additions & 0 deletions examples/open_pbr_pearl.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">
<surfacematerial name="Pearl" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="base_color" type="color3" value="0.8, 0.75, 0.7" />
<input name="specular_roughness" type="float" value="0.35" />
<input name="specular_ior" type="float" value="1.5" />
<input name="subsurface_weight" type="float" value="1.0" />
<input name="subsurface_color" type="color3" value="0.8, 0.75, 0.7" />
<input name="subsurface_radius_scale" type="color3" value="0.3, 0.5, 0.3" />
<input name="coat_weight" type="float" value="1" />
<input name="coat_roughness" type="float" value="0.15" />
<input name="coat_ior" type="float" value="1.68" />
<input name="thin_film_thickness" type="float" value="420" />
<input name="thin_film_ior" type="float" value="2" />
</open_pbr_surface>
</materialx>
14 changes: 14 additions & 0 deletions examples/open_pbr_soapbubble.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">
<surfacematerial name="Soap_Bubble" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="specular_roughness" type="float" value="0" />
<input name="specular_ior" type="float" value="1.0" />
<input name="transmission_weight" type="float" value="1.0" />
<input name="thin_film_thickness" type="float" value="500" />
<input name="thin_film_ior" type="float" value="1.4" />
<input name="geometry_thin_walled" type="boolean" value="true" />
</open_pbr_surface>
</materialx>
47 changes: 47 additions & 0 deletions examples/open_pbr_surface_default.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">
<surfacematerial name="Default" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
<input name="displacementshader" type="displacementshader" value="" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="base_weight" type="float" value="1.0" />
<input name="base_color" type="color3" value="0.8, 0.8, 0.8" />
<input name="base_roughness" type="float" value="0.0" />
<input name="base_metalness" type="float" value="0.0" />
<input name="specular_weight" type="float" value="1.0" />
<input name="specular_color" type="color3" value="1, 1, 1" />
<input name="specular_roughness" type="float" value="0.3" />
<input name="specular_ior" type="float" value="1.5" />
<input name="specular_ior_level" type="float" value="0.5" />
<input name="specular_anisotropy" type="float" value="0.0" />
<input name="specular_rotation" type="float" value="0.0" />
<input name="transmission_weight" type="float" value="0.0" />
<input name="transmission_color" type="color3" value="1, 1, 1" />
<input name="transmission_depth" type="float" value="0.0" />
<input name="transmission_scatter" type="color3" value="0, 0, 0" />
<input name="transmission_scatter_anisotropy" type="float" value="0.0" />
<input name="transmission_dispersion" type="float" value="0.0" />
<input name="subsurface_weight" type="float" value="0" />
<input name="subsurface_color" type="color3" value="0.8, 0.8, 0.8" />
<input name="subsurface_radius" type="float" value="1.0" />
<input name="subsurface_radius_scale" type="color3" value="1.0, 0.5, 0.25" />
<input name="subsurface_anisotropy" type="float" value="0.0" />
<input name="fuzz_weight" type="float" value="0.0" />
<input name="fuzz_color" type="color3" value="1, 1, 1" />
<input name="fuzz_roughness" type="float" value="0.5" />
<input name="coat_weight" type="float" value="0.0" />
<input name="coat_color" type="color3" value="1, 1, 1" />
<input name="coat_roughness" type="float" value="0.0" />
<input name="coat_anisotropy" type="float" value="0.0" />
<input name="coat_rotation" type="float" value="0.0" />
<input name="coat_ior" type="float" value="1.6" />
<input name="coat_ior_level" type="float" value="0.5" />
<input name="thin_film_thickness" type="float" value="0" />
<input name="thin_film_ior" type="float" value="1.5" />
<input name="emission_luminance" type="float" value="0.0" />
<input name="emission_color" type="color3" value="1, 1, 1" />
<input name="geometry_opacity" type="color3" value="1, 1, 1" />
<input name="geometry_thin_walled" type="boolean" value="false" />
</open_pbr_surface>
</materialx>
13 changes: 13 additions & 0 deletions examples/open_pbr_velvet.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">
<surfacematerial name="Velvet" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="base_color" type="color3" value="0.02, 0.02, 0.02" />
<input name="specular_roughness" type="float" value="0.8" />
<input name="fuzz_weight" type="float" value="1" />
<input name="fuzz_color" type="color3" value="0.4, 0.4, 0.4" />
<input name="fuzz_roughness" type="float" value="0.2" />
</open_pbr_surface>
</materialx>

0 comments on commit 4e0ec21

Please sign in to comment.