← back to roto on ba3a.dev

DepthSettings

@Serializable
data class DepthSettings(val follow: Boolean = false, val smoothing: Int = 15)

How a clip's figure is kept one size when it walks toward or away from the camera; stored per clip in profile.json.

Off, the whole profile is drawn at the one scale its marks set, and the feet stay on one ground line: right for a walk across the frame. On, each frame is scaled so the figure's height on the canvas stays the profile's body height, and the ground line follows the feet down or up the frame.

Both come from the figure's own mask, smoothed over smoothing frames: a walk cycle raises a foot and swings the arms every step, and the average over a cycle or more is what the camera distance really did.

Constructors

Link copied to clipboard
constructor(follow: Boolean = false, smoothing: Int = 15)

Properties

Link copied to clipboard

whether to scale each frame to the figure's size and follow its feet

Link copied to clipboard

the moving-average window in frames, odd; 1 turns smoothing off