
images · editorial shoot · fashion photography
class EditorialShoot: def __init__(self, SUBJECT, OUTFIT=None, SETTING=None): (self.struct, self.W, self.p, self.theta, self.d, self.attire, self.rho_env, self.pose) = infer(SUBJECT, OUTFIT, SETTING) # gap‑fill self.mask = BlindMask(period=self.p, slat=self.theta, plane=self.W) # --- S₁: ONE projection, sampled per surface (a projector, not a decal) --- def irradiance(self, x, surf): vis = self.mask(ray_to_sun(x, self.d) ∩ self.W) # binary: hard light occ = occluded(x, self.d, blockers=[self.body]) # body cast shadow cuts the field return SUN * vis * max(0.0, surf.normal(x)·(-self.d)) * (0 if occ else 1) def shade(self, x, surf): # S₂ + S₃ E = self.irradiance(x, surf) diffuse = E * surf.albedo(x)/PI # white walls/skin show bands sheen = E * surf.specular(x, self.d, VIEW) if surf.albedo(x) < 0.10 else 0.0 return diffuse + sheen # black cloth: sheen only def render(self): img = trace(self.scene, self.shade, camera=Camera(mm=50, height=EYE_LEVEL, fstop=8.0, rectilinear=True)) # S₅ img = expose(img, whites≈0.92_keep_texture, blacks≈0.06_keep_weave) # S₂ return img + grain + skin_pores + weave # η def verify(self, img): # overdetermination: d recovered 4 ways must agree (S₁ honesty) assert d_from_bands(img,"wall") == d_from_bands(img,"floor") \ == d_from_cast_shadow(img) == d_from_specular(img), "S₁: two suns" assert bands_bend_on_curvature(img) and bands_refract_at_junctions(img) \ and not stripes_through_body(img), "S₁: decal stripes" assert penumbra_width(img) ≈ 0 and not soft_fill(img), "S₂: soft+hard mix" assert stripe_contrast(img, self.attire) << stripe_contrast(img, "wall"), "S₃: bands on black" assert contact_seam(img, self.pose) and com_over_support(self.pose) \ and compression_folds(img, self.pose), "S₄: floating lean" assert verticals_vertical(img) and all_sharp(img, f=8.0), "S₅: bokeh/keystone" assert not plastic_skin(img) and not hdr_halos(img), "η" EditorialShoot($ SUBJECT, $ OUTFIT, $ SETTING).render()























