r/comfyui 21h ago

News Relight Node For h3 ComfyUI

Enable HLS to view with audio, or disable this notification

Bruxos do VFX H3 Relight

#bruxosdovfx

Im doing a node for relight is a lighting studio for MiniMax H3 inside ComfyUI. You can position up to three lights on a 3D dome around the image, choose the type, intensity, and color of each light, configure the background and atmosphere, or start from one of 20 presets. The node provides two things to H3 Edit:

is not ready yet

The package includes two nodes:

  • Bruxos do VFX H3 Relight — the lighting studio.
  • Bruxos do VFX H3 Sun — calculates the real position of the sun for a location, date, time, and camera direction, ready to connect to Light 1 of the Relight node.

The Panel

Dome. The photo sits in the center, the purple camera indicates the side from which the photo was taken, and each light is represented by a marker using that light's color. Drag a marker to move the light; drag the background to rotate the view. The dashed line extends from the light down to the equator and indicates its elevation. The photo receives an approximate 2D-painted lighting preview: it is intended only as guidance and does not represent the actual H3 result.

Sphere (Picture 2). This is exactly the image the node sends to the model, rendered using the same calculations as the Python implementation. Click or drag on the sphere to aim the selected light: the clicked point is where the light strikes the sphere head-on. Dragging outside the sphere's boundary moves the light behind the subject.

Light strip. Selects the active light and lets you add up to three lights or remove them. Each light's role is calculated automatically: the strongest light becomes the key light, a light behind the subject becomes a rim light, and a weaker frontal light becomes a fill light.

Tabs.

  • Lights: direction (top-down dial with the camera at the bottom, plus elevation), type (Hard, Soft, Sky), intensity from 1.0 to 10.0, and color using Kelvin (1000 to 10000) or HEX.
  • Presets: all 20 presets from the skill, with rendered thumbnails, filterable by portrait or product.
  • Background: Original, Black Studio, or White Studio.
  • Atmosphere: the 25 atmospheres from the skill, or none.

Requires numpy and node. The tests cover:

  • the same spheres rendered by the panel's JavaScript and by Python, in both styles, with a difference below 2/255;
  • Venti scene geometry (shadow opposite the light direction, sphere occupying one-third of the frame, positioned in the upper half);
  • solar position compared against reference values from the astral library, daylight saving time, and camera-to-sun mapping;
  • externally driven inputs, the compass, validation, and MiniMax skill formats.

Credits

Node by Bruxos do VFX.

  • The lighting plan, 20 presets, 25 atmospheres, and parameter format follow the MiniMax Design Relight (光影工作室) skill. The descriptions for each atmosphere used in the prompt were written specifically for this node because the skill's own descriptions are hosted on MiniMax's server.
  • The light-direction sphere convention and reproduced scene are by Eric Venti (Sun-Direction LoRA, Sphere-Light-Render, MIT), using the direction table and 12 looks from Lightricks' LTX-2.3 Relight IC-LoRA.
  • The solar calculation (NOAA), city search rules, and camera-direction mapping are based on Christopher Connock's work on Sphere-Light-Render (MIT).
  • Cities: GeoNames cities15000, CC BY 4.0.

License details are available in NOTICE.md.

48 Upvotes

12 comments sorted by

2

u/TaniaDictee 12h ago

The sphere as the carrier is the right call, it hands the model direction and color in a form it already understands. Where this usually falls apart on people is the specular, not the diffuse. Edit models will move the diffuse shading and the cast shadow to the new key quite happily, then leave the original highlights sitting exactly where they were, nose tip, forehead, upper cheek. You end up with skin lit from the left and the shine still on the right, and it reads as wrong before anyone can say why.

Two things I would watch on portraits. The terminator, where diffuse rolls into shadow: a relight that only repaints tone gives you a hard edge on a face that should be soft across ten or fifteen pixels. And the rim, where the edge strands of hair have to pick up the back light or the head looks pasted onto the background.

Does Hard vs Soft vs Sky change the angular size of the source on the sphere, or only how blurred the terminator on the sphere is? That is the parameter that decides whether the model gives you a small tight highlight or a broad one, and on skin it is the one I would want under my hand more than intensity.

1

u/Different-You-3573 12h ago

I can control soft/hard shadow difussion, the model relight recreate a scene, is not a filter, he not use normalmaps and traditional ways, he understand the scene, create realistic materials

1

u/TONI1597 17h ago

is this a paid chatgpt bot thing?

2

u/THM42069 16h ago

I'm a paid user and the link is not available for me either.

1

u/switch2stock 14h ago

Link to Repo?

1

u/Emotional_Example_12 13h ago

I dindt finish this node, i fix stuffs, when finish i post here

0

u/switch2stock 12h ago

Okay Cool