ComfyUI Node
Relight Transfer
Moves the new light of a regenerated shot onto the plate. Light, shadows and reflections come from the regeneration; texture, grain, sharpness and highlights stay the plate's. Each input is linear light, or sRGB as 'plate_space' and 'shot_space' say.
Relight Transfer
- plate
- source
- relit
- light
- shade
- image
◄radius1►
◄strength1.00►
◄aligntrue►
◄plate_spacelinear►
◄shot_spacelinear►
◄shade_density0.70►
CategoryAInVFX/Paint a plate
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| plate | IMAGE | The plate in linear light, any size. | |
| source | IMAGE | The plate as the model saw it, in linear light. The light is measured at this size: half the plate's size is plenty, light is smooth. | |
| relit | IMAGE | The regenerated shot, same size as 'source', in linear light. | |
| radius | INT | 11–256 | The change of light is smoothed over this many pixels of 'source', its colour over four times as many; finer detail stays the plate's. 1 at half the plate's size lets the shot's light through almost pixel for pixel. |
| strength | FLOAT | 1.000–2 | — |
| align | BOOLEAN | true | Realign 'relit' first, by one shift for the whole shot: the median of every frame's. |
| plate_spaceopt | COMBO | linear | How 'plate' and the result are encoded. sRGB is decoded to linear light here, frame by frame in parallel, and the result encoded back: far cheaper than core colour conversions at full size. |
| shot_spaceopt | COMBO | linear | How 'source' and 'relit' are encoded: sRGB, as the model saw and made them, is decoded here. |
| lightopt | IMAGE | A light edit's painted light, in display values on black. Where it is strong, the result keeps at least the plate with that light added, as the brush showed it. | |
| shadeopt | IMAGE | A light edit's shade strokes, white where the shadow is full: the result is darkened there, in linear light, by 'shade_density'. Klein ignores a painted shadow. | |
| shade_densityopt | FLOAT | 0.700–1 | How much light the painted shade takes away where it is full. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |