MaterialX icon indicating copy to clipboard operation
MaterialX copied to clipboard

Thin-film inputs are not applied to specular transmission in Standard Surface

Open jstone-lucasfilm opened this issue 3 months ago • 7 comments

As @niklasharrysson notes in his review of #2998, the Standard Surface specification states that thin-film iridescence applies to transmission as well as reflection:

These effects are incorporated in the microfacet closures, which applies to the metal or specular reflection and transmission layers, whichever is present.

In our nodegraph implementation, the thin_film_thickness and thin_film_IOR inputs are connected to the specular reflection and metal lobes, but not to the transmission lobe.

Since <dielectric_bsdf> accepts its thin-film inputs independently of scatter_mode, one proposed fix would be to connect thin_film_thickness and thin_film_IOR to transmission_bsdf in the same manner as specular_bsdf, updating the functional definition and removing the corresponding note in the PBR specification at the same time.

jstone-lucasfilm avatar Aug 09 '26 22:08 jstone-lucasfilm

Hi, I would be interested in working on this as a follow-up to my related thin-film work in #3005.

My understanding is that the intended change is to wire the Standard Surface thin_film_thickness and thin_film_IOR interface inputs to the thinfilm_thickness and thinfilm_ior inputs of transmission_bsdf, update the corresponding Standard Surface functional definition in the PBR specification and remove its temporary divergence note, and add focused validation for thin-film transmission. If that scope sounds right, I would be happy to put together a PR.

r800360 avatar Aug 13 '26 21:08 r800360

Much appreciated, @r800360, and I've assigned this to you!

jstone-lucasfilm avatar Aug 13 '26 22:08 jstone-lucasfilm

@r800360 Since we're approaching our ASWF Dev Days event on September 17th, I thought I'd check in to see whether you'd still like to work on this issue. If so, we're happy to leave this assigned to you; if not, then we completely understand, and we'll mark it as available for other Dev Days contributors.

jstone-lucasfilm avatar Sep 11 '26 00:09 jstone-lucasfilm

For now, I'll unassign this task, so that it's available to the full Dev Days community, but feel free to re-request it if you'd like!

jstone-lucasfilm avatar Sep 12 '26 22:09 jstone-lucasfilm

Hello, I'd like to pick this one up for Dev Days.

agetroortega avatar Sep 17 '26 19:09 agetroortega

Welcome, @agetroortega, and I've assigned it to you!

jstone-lucasfilm avatar Sep 17 '26 20:09 jstone-lucasfilm

Thank you @jstone-lucasfilm! I opened a PR for it

agetroortega avatar Sep 18 '26 06:09 agetroortega