SpotLight: Shadow-Guided Object Relighting via Diffusion

Frédéric Fortier-Chouinard, Zitian Zhang, Louis-Etienne Messier, Mathieu Garon, Anand Bhattad, Jean-François Lalonde

TL;DR

SPOTLIGHT is a training-free framework that enables precise, manual control over the lighting of virtual objects inserted into images. By using a simple 2D shadow as a guide, it steers pre-trained diffusion models to realistically shade objects and blend shadows, outperforming specialized models that require expensive retraining.

What Problem Does This Paper Address?

When you drop a virtual object (like a 3D chair) into a photo, it needs to be "relit" to match the scene. Traditional 3D graphics pipelines do this by explicitly modeling lights and materials, but they struggle with the messy complexity of real-world photos.

Recently, "diffusion renderers"—AI models trained to turn geometric maps into photorealistic images—have become the go-to tool for this. However, these models are often "black boxes" when it comes to lighting. You can't easily tell them, "make the light come from the top-left." This lack of control makes it difficult to achieve a perfect artistic match or to personalize a scene.

Methods

The core innovation of SPOTLIGHT is that it achieves lighting control without any additional training. It "hacks" the generative process of existing diffusion models (like ZeroComp) using two main steps:

  1. Shadow Blending: The user provides a coarse 2D shadow mask. SPOTLIGHT uses a latent blending technique to progressively merge this shadow into the background during the image generation process. This ensures the shadow isn't just "pasted on" but interacts naturally with the floor and surrounding objects.
  2. Local Guidance (The "Secret Sauce"): To make the lighting on the object itself change, the authors run two parallel paths through the model. One path uses the desired shadow (the "positive" branch), and the other uses an opposite shadow or no shadow at all (the "negative" branch). By applying classifier-free guidance, the model is pushed away from the negative appearance and toward the positive one, significantly amplifying the shading effects on the object's surface.
Overview of the SPOTLIGHT framework showing the dual-branch guidance system.

Datasets

The researchers evaluated their method using a new benchmark built on Blender-rendered scenes:

  • Reference-based scenario: 210 images where the virtual object is lit by the actual "ground truth" lighting of the background. This allows for hard quantitative comparisons.
  • User-controlled scenario: 1,680 images where the light is rotated to 8 different positions around the object. This tests how well the model follows specific user intent.
  • Improvements: They improved existing benchmarks by using Depth Anything V2 to create more accurate ground-truth shadows and intrinsic maps.

Key Insights and Ideas

  • Shadows are Information-Rich: The biggest "aha" moment is that a simple 2D shadow mask contains enough geometric information for a diffusion model to "guess" the 3D lighting direction. You don't need complex HDR light maps; the shadow acts as a proxy for the light source.
  • Guidance Trumps Training: SPOTLIGHT shows that clever manipulation of a pre-trained model's latent space can be more effective than training a new model from scratch for a specific task like relighting.
  • Extreme Versatility: Because the system is guided by shadows, it isn't limited to 3D models. You can literally scribble a shadow by hand, and the model will attempt to relight the object to match your sketch.
SPOTLIGHT can realistically relight objects even from rough hand-drawn shadow scribbles.

Key Results

SPOTLIGHT consistently outperformed specialized baselines like IC-Light, DiLightNet, and Neural Gaffer.

  • Quantitative: On the reference dataset, SPOTLIGHT achieved a PSNR of 30.68, a significant jump over the next best method (Neural Gaffer at 28.44).
  • Qualitative: As seen in Figure 3, SPOTLIGHT produces results that are visually closest to the ground truth, maintaining the object's original colors while generating much more convincing shading and shadows.
  • User Preference: In a user study, participants preferred SPOTLIGHT for both its overall realism and its superior lighting controllability.
Qualitative comparison showing SPOTLIGHT matching ground truth and user-defined shadows more accurately than baselines.

Limitations and Future Work

  • Physical Plausibility: Since the model is "shadow-guided," a user can specify a shadow that physically contradicts the existing lights in the room. SPOTLIGHT will try its best to render it, which can sometimes result in a scene that looks "cool" but is physically impossible.
  • Shadow Creation: While scribbling is possible, creating a perfectly realistic shadow from scratch is still a manual challenge. The authors suggest that future work could integrate parametric light models (like "point lights") to generate these guiding shadows automatically.
  • Global Relighting: The current focus is on local object insertion, but the authors believe these principles could eventually be scaled up to relight entire images.

Summary updated

BibTeX
@inproceedings{fortierchouinard2026spotlight,
  author = {Frédéric Fortier-Chouinard and Zitian Zhang and Louis-Etienne Messier and Mathieu Garon and Anand Bhattad and Jean-François Lalonde},
  title = {{SpotLight: Shadow-Guided Object Relighting via Diffusion}},
  booktitle = {3DV},
  year = {2026},
  doi = {10.1109/3dv69130.2026.00117},
}
Figure