Series

Perspcorrect — the series

4 essays on one idea, from the one that introduces it to the one that assumes the rest.
  1. -0.400-0.200000.2000.4000.6000.8001position across the drawn surfacehow far along the real surface, minus how far along the drawn one(√k−1)/(√k+1) = 0.5195at the page's midpoint, 40.9%depth ratio 10 : 1peak 0.5195 at s = 0.760

    A texture does not interpolate on the page

    Walking across a drawn surface at a constant rate walks across the real one at a rate that changes, and the worst gap is a closed form in the depth ratio alone — 0.52 at ten to one, more than half the whole range. It is exactly the error a person makes dividing depth by eye, made by a machine, and the fix is the fourth coordinate the pipeline kept.

    part 1 · pipeline
  2. 0.25°0.5°1°2°5°10°20°45°90°0.1110angle of the span from the horizon's direction (log scale)worst texel along a 120 px span (px, log scale)80 px below the horizon160 px below the horizonparallel to the horizon: 0 pxfloor · eye 1.5 m · 60° field

    Along a line of constant depth the page is affine

    Stepping a texture by a constant amount per pixel is wrong across a receding floor and exactly right along any line of it that stays at one depth — and on every plane those lines run parallel to its own vanishing line. Turn a 120 px span 1° away from that direction and it is 0.79 px out; roll the camera a hundredth of a degree and a floor drawn to 30 m is out by 0.69 px on its worst scanline.

    part 2 · pipeline
  3. the constant-depth direction, 20.0°a floor banked 20°, 40 pixels of the walkworst 0.60 px off the line

    A tilted span walks a staircase

    A span along a banked floor's constant-depth direction is exact, and a renderer visits pixels rather than the span. Snapped to the grid, a 120 px span at a 20° bank costs 0.577 px where the same span along a page row costs 13.26 — twenty-three times better — and it never rises above 1.22 px at any bank. The price is bookkeeping: a band of twenty-four such spans draws 53 of its 1,368 pixels twice.

    part 3 · pipeline
  4. 00.2500.5000.7501-20-1001020pixel down the patch's middle columnintensityexactsnapped spansturned framebank 20°, 0.3 cycles a texelrms: spans 0.120, frame 0.126

    A banked floor drawn in its own frame trades place for sharpness

    A renderer that walks a banked floor along its lines of constant depth, snapping each pixel to the nearest one, moves the texture by up to half a pixel across the line. Drawn instead on a lattice turned to those lines, every sample exact, and resampled onto the page once, the texture stays in place and loses contrast. The two errors are different in kind and grow differently: the snapped spans' in proportion to the texture's frequency, the resampled frame's as its square. So the frame is far better on slow textures, twelve times at 0.02 cycles a texel, and worse near the finest a pixel grid carries, with the crossing at 0.28 cycles a texel at every bank; on a checker, whose error lives at its edges, the two stay within a few per cent. Bought with more samples, each improves on its own schedule.

    part 4 · pipeline

All series