Relight Studio: physically based relighting in ComfyUI, free and fully offline
Environmental_Fan600 · reddit · 2026-10-24
Reddit user EnvironmentalFan600 built Relight Studio, an interactive physically based relighting tool inside ComfyUI that can render the same photo under completely different lighting setups — all locally on your GPU, with no generative re-rendering.
- Origin: The author first built a node that indexes a local library of film stills, searchable in plain language (e.g. "neon rain night, hard rim light"), ranked by mood, composition and colour.
- Approach: Generative image-to-image caused face drift and unpredictable lighting, so the workflow switched to physics: BiRefNet cuts out the subject, MoGe-2 estimates surface normals and depth once per image, then the geometry is actually lit with falloff, specular highlights and cast shadows.
- Usage: A browser-based mini studio lets you drag up to 8 lights over a live preview — placing a light behind the subject produces a real hair rim light. Full-res renders take under a second.
- Bonus: Pick a film frame and the studio matches its lighting and colour grade onto your portrait.
- Use cases: pre-shoot lighting preview, consistent product catalogue lighting, subject-to-plate matching in compositing, controlled lighting in AI image pipelines.
The author contrasts it with Photoshop's generative Relight: physically based, every light editable, free and offline. Most effort went into unglamorous fixes like rim light bleeding and jagged backdrop shadows.
More from coding & agent
- How Cloudflare built Artifacts in 3 weeks: lightning talk — ritakozlov · 2026-10-24
- AI-written code share points to full coding autonomy by spring 2028, argues TheZvi — TheZvi · 2026-10-24
- Fan MV drawn entirely in code by Claude Opus 5.5 cost 1B tokens, ~$508 — FunMental1095 · 2026-10-24
- LangChain Academy: agent context engineering starts with retrieval — search small, offload, delegate — LangChain · 2026-10-24
- Autodesk experiments with multiple ChatGPT agents working simultaneously in Fusion — burhop · 2026-10-24
- Happenstance + Claude connector: two prompts that turn your network into a lead list — rubenhassid · 2026-10-24