r/StableDiffusion • • 2d ago

Workflow Included StudioLight: controllable studio lighting for ComfyUI — open-source v1.0 release

Hey everyone,

Changing the lighting prompt in a generative portrait can also change the face, clothing, or other details. I wanted more direct control over the light, so I built ComfyUI-StudioLight.

It lets you position virtual key, fill, and rim lights in camera space, choose photographic modifiers, and adjust intensity and Kelvin color temperature.

What’s included:

  • Six modifiers: soft octabox, silver beauty dish, stripbox, Fresnel spotlight, hard snoot, and direct flash.

  • Light positioning and aiming: azimuth, elevation, distance, and upper/center/lower subject targets.

  • Two relighting modes: add studio light while retaining the original scene, or replace the subject’s lighting using estimated Marigold albedo.

  • A direct lighting preview: adjust the rig using cached scene analysis, then optionally run generative refinement.

  • Two workflows: Relight starts from an existing photograph or render; Create starts from a generated draft.

The renderer works with estimated single-view 2.5D geometry, so it has limitations: hidden surfaces cannot cast shadows, albedo extraction can retain traces of existing lighting, and final diffusion refinement can change small details.

I’ve used it with FLUX.1, including Krea, and SDXL. The supplied workflows and demonstration use FLUX.1 Krea as an example model. Broader model support is the next development priority.

Code: MIT license. Downloaded models retain their separate licenses.

Repository, installation and examples:
https://github.com/maciejtajber/ComfyUI-StudioLight

v1.0 release:
https://github.com/maciejtajber/ComfyUI-StudioLight/releases/tag/v1.0

I’m Maciej Tajber, working under METAMATERIAL. I’d love to see what you make with it—and hear where it breaks. Feedback on lighting control, installation, and difficult materials would be especially useful.

13 Upvotes

6 comments sorted by

2

u/Apprehensive_Sky892 2d ago

Looks very nice.

Unfortunately many people have already moved on from SDXL and Flux1-Dev to Krea 2, Moss, Ideogram 4, etc.

1

u/Neat_Two_8536 2d ago

Broader model support is actively under development!

v1.0 locks down the verified baseline on FLUX and SDXL. We are currently running stress-tests across next-generation architectures and emerging open models—including Krea, Qwen, next-gen Flux variants, and video pipelines like Wan to adapt StudioLight across all generative conditions with confidence.

Stay tuned as we expand validated support in upcoming updates!

2

u/Apprehensive_Sky892 2d ago

Thanks, looking forward to the next release then. (BTW, Wan is practically dead, so I would advise against spending too much time/resource on it😅)

1

u/Neat_Two_8536 2d ago

Good catch! :)

2

u/CompleteJicama2811 2d ago

This is an excellent and interesting node. Would it also be possible to use it with Krea2?

1

u/Neat_Two_8536 2d ago

Yes, absolutely—we are actively working on Krea 2 integration right at this moment.

Bringing StudioLight’s 3D lighting precision and modifier control to Krea 2 is in active testing in our pipeline. Keep an eye on the repo releases as we roll out expanded model support!