Camera distance computed as:
d = pile_extent / (fill_fraction × 2 × tan(fov_h/2))
Scene: 20 parts · seed=42 · spread×1.5 · elev=55.0° · azim=45.0° · 35mm lens · 36mm sensor (fov_h=54.4°)
fill_fraction = fraction of frame width the pile occupies. All other parameters are fixed. Pick the range that looks right.
focal_length = 35 mm sensor_width = 36 mm fov_h = 2 × atan(36/2 / 35) = 54.43° tan(fov_h/2) = 0.5143 visible_width_at_d = 2 × d × tan(fov_h/2) pile fills fill_fraction of frame: pile_extent = fill_fraction × visible_width_at_d d = pile_extent / (fill_fraction × 2 × tan(fov_h/2))