← back to roto on ba3a.dev

ZoneSettings

@Serializable
data class ZoneSettings(val zones: List<Zone> = emptyList(), val lightnessWeight: Double = 0.5, val fixes: List<ZoneStroke> = emptyList())

How a clip's figure is split into zones — skin, shirt, trousers — each shaded with one ramp; stored per clip in profile.json.

Every masked pixel of every frame joins the zone whose samples it is nearest to in OKLab, with the lightness part of the distance scaled by lightnessWeight: below 1, the lit and the shaded side of one material stay in one zone, while a change of colour still moves a pixel to another. fixes are the artist's own word where that gets it wrong, on key frames.

Constructors

Link copied to clipboard
constructor(zones: List<Zone> = emptyList(), lightnessWeight: Double = 0.5, fixes: List<ZoneStroke> = emptyList())

Properties

Link copied to clipboard

the artist's strokes over the classification

Link copied to clipboard

the weight of lightness in the distance to a sample, 0..1

Link copied to clipboard

the zones, in label order