Skip to content

Support IOR in Standard Surface to glTF PBR translation#2589

Merged
jstone-lucasfilm merged 3 commits intoAcademySoftwareFoundation:mainfrom
bowald:stdsurf-gltf-ior
Sep 28, 2025
Merged

Support IOR in Standard Surface to glTF PBR translation#2589
jstone-lucasfilm merged 3 commits intoAcademySoftwareFoundation:mainfrom
bowald:stdsurf-gltf-ior

Conversation

@bowald
Copy link
Copy Markdown
Contributor

@bowald bowald commented Sep 25, 2025

Passthrough of Index of Refraction.

closes #2582

Note that glTF uses IoR for Fresnel when Specular extension is used. So if Specular is 1.0 in both gltf_pbr and standard_surface, the result will differ (more info in KHR_materials_specular ), see last figure. However, if not the specular extension in glTF is used, the ior matches.

Test material: Glass - AMD GPU Open (but with varying Index of refraction and specular)

Index of Refraction 1.0 | Specular 0.0


Standard Surface

Translated to gltf_pbr
Diff

Index of Refraction 1.1 | Specular 0.0


Standard Surface

Translated to gltf_pbr
Diff

Index of Refraction 1.5 | Specular 0.0


Standard Surface

Translated to gltf_pbr
Diff

Index of Refraction 1.0 | Specular 1.0


Standard Surface

Translated to gltf_pbr
Diff

Copy link
Copy Markdown
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this improvement, @bowald! I had just a minor note about the inclusion of doc strings, but otherwise this looks great.

Comment thread libraries/bxdf/translation/standard_surface_to_gltf_pbr.mtlx Outdated
bowald and others added 2 commits September 25, 2025 19:14
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
Copy link
Copy Markdown
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thanks @bowald!

@jstone-lucasfilm jstone-lucasfilm changed the title Passthrough Index of Refraction Support IOR in Standard Surface to glTF PBR translation Sep 26, 2025
@jstone-lucasfilm jstone-lucasfilm merged commit 95073cb into AcademySoftwareFoundation:main Sep 28, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support IOR in Standard Surface to glTF PBR translation

2 participants