Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add blackbody PBR node implementations #1367

Merged

Conversation

nicolassavva-autodesk
Copy link
Contributor

Address the missing targets for the PBR blackbody node implementation ( #1356 )
using the following approximation: Wikipedia: Planckian Locus Approximation
Add a simple Standard Surface material example using the above blackbody node for emission.
Reenable blackbody node tests.

Fix blackbody node MaterialXGen tests.
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented May 25, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@jstone-lucasfilm
Copy link
Member

This looks really promising, thanks @nicolassavva-autodesk. Let us know if you run into any issues with the Autodesk CLA, and the Linux Foundation is usually very responsive if you file a support ticket using the link above.

@nicolassavva-autodesk
Copy link
Contributor Author

Thanks Jonathan
I just re-authorized the Autodesk CLA with the account in question

@niklasharrysson
Copy link
Contributor

Looks great @nicolassavva-autodesk , I just noted an issue with the clamps above.

@nicolassavva-autodesk
Copy link
Contributor Author

Good catch Niklas.
Added a quick fix for the missing clamping

Copy link
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 great, thanks @nicolassavva-autodesk. My one recommendation would be to move the example material from the Standard Surface examples folder to the test suite, where it would be a better fit:
https://github.com/AcademySoftwareFoundation/MaterialX/tree/main/resources/Materials/TestSuite/pbrlib/bsdf

The example material could additionally be simplified to a simple nodegraph containing the blackbody node, rather than making it a Standard Surface material with pure emission.

@jstone-lucasfilm jstone-lucasfilm changed the title Add blackbody PBR node implementations (#1356) Add blackbody PBR node implementations Jun 11, 2023
Copy link
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 @nicolassavva-autodesk!

@jstone-lucasfilm jstone-lucasfilm merged commit 3e838e2 into AcademySoftwareFoundation:main Jul 12, 2023
13 checks passed
@krohmerNV
Copy link
Contributor

is there an MDL implementation missing now?

@lgritz
Copy link
Contributor

lgritz commented Jul 19, 2023

I hope I'm not opening a can of worms on a topic that has long since been settled, but is this function merely trying to return the color corresponding to a blackbody temperature, normalized to some standard luminance? Or is it supposed to be returning the actual emittance of the blackbody (W/m^2 or whatever)?

Michaelredaa pushed a commit to Michaelredaa/MaterialX that referenced this pull request Oct 21, 2023
Address the missing targets for the PBR blackbody node implementation
using the following approximation: Wikipedia: Planckian Locus Approximation
Add a simple unlit surface material example using the above blackbody node for emission.
Reenable blackbody node tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants