Skip to content

Fix blackbody node to support temperatures down to 800K#2831

Merged
jstone-lucasfilm merged 1 commit intoAcademySoftwareFoundation:mainfrom
zeel2104:fix/blackbody-low-temperature-range
Mar 26, 2026
Merged

Fix blackbody node to support temperatures down to 800K#2831
jstone-lucasfilm merged 1 commit intoAcademySoftwareFoundation:mainfrom
zeel2104:fix/blackbody-low-temperature-range

Conversation

@zeel2104
Copy link
Copy Markdown
Contributor

Summary

Fixes #2827

Extends the blackbody node temperature range down to ~800K (the Draper
point) from the previous lower limit of 1667K.

Changes

  • GLSL: Lowered clamp from 1667K to 800K. The Kang et al. (2002)
    xc polynomial covers 1000K–4000K with the same formula, so the old
    limit was unnecessarily conservative. Merged the two redundant xc
    branches into one.
  • OSL: Replaced manual polynomial with OSL's built-in blackbody()
    • luminance(), which is physically exact with no lower temperature limit.

Testing

Verified the output chromaticity gradient from 800K–6504K is physically
correct and all temperatures below 1667K now return distinct colors
instead of being clamped to the 1667K value.

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Mar 18, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: zeel2104 / name: Zeel Desai (176e288)

Copy link
Copy Markdown
Contributor

@niklasharrysson niklasharrysson 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 @zeel2104

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 contribution, @zeel2104!

@jstone-lucasfilm jstone-lucasfilm changed the title Fix blackbody node to support temperatures down to 800K (Fixes #2827) Fix blackbody node to support temperatures down to 800K Mar 26, 2026
@jstone-lucasfilm jstone-lucasfilm merged commit 3bb1552 into AcademySoftwareFoundation:main Mar 26, 2026
36 checks passed
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.

Improve blackbody node implementation

3 participants