Nodes/radiance/HDR Region EV (RUDRA)
ComfyUI Node

HDR Region EV (RUDRA)

Grade in nits, not in masquerading 8-bit — three bands, pushed in stops

By FXTD-Studios·Created 11 months ago·Updated 9 days ago· 264
HDR Region EV (RUDRA)
  • image
  • mask1
  • mask2
  • mask3
  • image
◄exposure_ev0.00►
◄softness_stops1.00►
◄band1_low_nits400.00►
◄band1_high_nits2000.00►
◄band1_ev0.00►
◄band2_low_nits2000.00►
◄band2_high_nits8000.00►
◄band2_ev0.00►
◄band3_low_nits0.05►
◄band3_high_nits12.00►
◄band3_ev0.00►
◄reference_white_nits203►

The thing this fixes

Once your master is scene-linear, every normal exposure slider in ComfyUI is wrong. A brightness node thinks 1.0 is white and clamps there; a curves node works in display-referred 0..1. In a linear master, 1.0 is 203 nits of diffuse white and a specular highlight might legitimately be at 15.0. Pull those sliders and you either crush the highlights or blow them.

HDR Region EV is a grade that thinks in absolute nits. Three bands of Rec.2020 luma, each defined by a low and a high edge in nits, each pushed up or down in stops with a soft edge, each optionally gated by a mask. The highlights band defaults to 400–2000 nits, speculars 2000–8000, shadows 0.05–12. You push the shadow band +0.5 and pull the specular band −1 and the whole top end sits down without the mid-tones noticing.

Anywhere with a proper finishing tool you'd do this with a luminance keyer and a grade node. This is the ComfyUI version, and it's the one node here I'd argue is genuinely useful even to someone who never touches HDR delivery - it's a better highlight roll-off control than anything in the default node set.

How it works

exposure_ev moves the whole image first. Then the bands read the exposed picture - the tooltip is explicit about that ordering and it matters, because moving the exposure changes which pixels fall inside each band. softness_stops (default 1) is how gradually each band's edges fade, in stops; how wide that ramp is decides whether the band boundary reads as a deliberate look or as a mistake.

Everything is measured on Rec.2020 luma, so a saturated blue and a grey at the same luminance get the same treatment. reference_white_nits is what 1.0 in your tensor means - 203 by default, so if you're grading a master where 1.0 was 100 nits you'd tell it that.

All three bands at 0 EV is a genuine identity: the node documents that 0 EV everywhere changes nothing. So it's safe to drop in ahead of time and leave flat.

Inputs and outputs

Required: image (scene-linear, Rec.709 or ACES primaries), exposure_ev, softness_stops, then the nine band fields - band1_low_nits, band1_high_nits, band1_ev, and the same for bands 2 and 3 - plus reference_white_nits. Optional: mask1, mask2, mask3, one per band, if you want a band to apply only in part of the frame.

One output: image. There's no mask or report out, which is the only real annoyance - if the result looks wrong you're diagnosing by eye.

Note the ranges: exposure_ev is ±6 stops, band EV is ±4, and band edges go up to 40,000 nits. Nothing here is clamped to a "reasonable" number, so typos like band1_high_nits = 20000 will quietly turn the band into "the entire highlight range" rather than erroring.

Install

Part of Radiance, so:

cd ComfyUI/custom_nodes
git clone https://github.com/fxtd-studios/radiance
cd radiance
python -m pip install -r requirements.txt

Manager route: search Radiance → Install → restart → refresh the browser. Windows portable: pip with python_embeded\python.exe. No downloads for this node.

Where people get burned

Low must be below high. Each band validates and raises a clear error if you swap them - that's a good error, but it's usually a sign you're editing the fields out of order and have just set a low edge above the old high edge.

Watch your scopes, not your monitor. If your display is SDR, a 2000-nit highlight just looks like white and your shadow-lift looks fine. Any SDR preview is showing you a tonemap, not the thing you're grading. The Radiance Viewer's exposure map is the point-and-look fix; without it, work in numbers and check with EV brackets.

Bands overlap happily. There's no enforcement that band 1 ends where band 2 starts, and overlapping soft edges means an area can be pushed twice, additively. Two stops of unintended lift is a very normal accident here. Keep the edges meeting at the same value.

A mask is per-frame or single. Passing one mask for a clip is fine; if you pass a sequence, make sure the frame count actually matches, because a mismatch gets clamped to the last frame and silently holds one mask for the rest of the shot.

CategoryFXTD STUDIOS/Radiance/HDR

Inputs (16)

NameTypeDefaultDescription
imageIMAGEScene-linear HDR (Rec.709 or ACES primaries), 1.0 = reference_white_nits.
exposure_evFLOAT0.00-6–6The whole picture, in stops, before the bands read it.
softness_stopsFLOAT1.000.05–4How soft each band's edges are, in stops.
band1_low_nitsFLOAT400.000.001–40000Band 1 (highlights by default): low edge, nits.
band1_high_nitsFLOAT2000.000.002–40000Band 1: high edge, nits.
band1_evFLOAT0.00-4–4Band 1: push in stops (0 = untouched).
band2_low_nitsFLOAT2000.000.001–40000Band 2 (speculars by default): low edge, nits.
band2_high_nitsFLOAT8000.000.002–40000Band 2: high edge, nits.
band2_evFLOAT0.00-4–4Band 2: push in stops (0 = untouched).
band3_low_nitsFLOAT0.050.001–40000Band 3 (shadows by default): low edge, nits.
band3_high_nitsFLOAT12.000.002–40000Band 3: high edge, nits.
band3_evFLOAT0.00-4–4Band 3: push in stops (0 = untouched).
reference_white_nitsFLOAT203100–1000What 1.0 means in the image.
mask1optMASKLimit band 1 to this mask.
mask2optMASKLimit band 2 to this mask.
mask3optMASKLimit band 3 to this mask.

Outputs (1)

NameTypeDescription
imageIMAGE—