Geometry-Driven Shadow Harmonisation for Composited Faces: A Multiplicative, Albedo-Preserving Relighting Pipeline
Abstract
Face swapping and face compositing pipelines routinely produce a face that is geometrically well aligned but photometrically implausible: the donor face carries flat, near-frontal studio illumination while the host body and background carry directional scene light. Most existing remedies re-synthesise the face through colour transfer, neural relighting, or inverse rendering, and therefore risk altering identity, skin tone, and texture. We present a conservative alternative: geometry-driven form-shadow injection. The pipeline never repaints the face. It estimates a per-pixel gain field from a rasterised 3D face proxy and multiplies it channel-uniformly onto linear RGB, so the operator can only darken and cannot shift chromaticity. A dense landmark mesh is rasterised into a depth buffer, from which we derive surface normals, a cavity term, and screen-space cast shadows. Key-light direction is estimated from host-side cues (body, background, hair halo); on-face cues are downweighted because they recover the donor's lighting. Shadow magnitude is not matched to the host: it is set by a three-parameter transfer . The shading field is divided by its 75th percentile over skin, then gated, scaled, clamped, smoothed, and re-clipped inside a feathered, skin-gated face mask. On an analytic face heightfield, the default modifies 56.5% of face pixels with mean gain 0.938 (0.890 on modified pixels) and drives 3.4% of pixels to the floor. Hue invariance is a corollary of the operator. We analyse the transfer in closed form, ablate its parameters, and discuss failure modes of a monotone, darkening-only formulation, including double-shadowing of non-flat donors.
Create a lesson
Metadata
- Comments
- Source code: https://github.com/vijeshkpaei/geometry-driven-shadow-harmonisation
Related papers
LuxAvatar: Real-Time Relightable Head Avatars via Causal Neural Shading of 3D Intrinsic Proxies
Shared title terminologycs.CVYipengjing Sun, Chenyang Wang, Boyao Zhou et al.
Atunda: Building an Afrogenic Dance Movement Dataset for AI-Driven Classification
Shared title terminologycs.CVDiego Carrascosa, Tristan Pank, Qudus Onikeku et al.
You Only Look Multiple Times: YoloMT, a Real-Time Streaming Model on a T4
Shared title terminologycs.CVNessim Ben Abbes, Duc Han Le, Sabri Mtibaa et al.
ProManO: Beyond Sim(3) for Metric Upgrade of Feed-Forward Geometry with Visual-Inertial Anchors
Shared title terminologycs.CVLingxiang Hu, Zhenjun Zhao, Qi Shao et al.
VibeVideoAgent: Closing the Perceptual Loop for Code-Driven Video Generation
Shared title terminologycs.CVXuanyu Zheng, Luoyuan Zhang, Yancheng Long et al.
SPARC: Geometry-Guided Attention Pruning for Long-Horizon Camera-Controlled Video Generation
Shared title terminologycs.CVZesong Yang, Weikai Chen, Liyuan Cui et al.