The second projection

Two warped slices draw for a curved monitor; sixteen laid ones do not

A flat picture laid along a 49-inch 1000 mm curve has its top row seen sagging 239 px from where a seat 650 mm away should see it. Split the picture into flat slices, each drawn from the seat for its own stretch of glass, and the sag falls as one over the square of their number: 56 px for two, 15 for four, under a pixel only at sixteen. But each join is a corner, and the corners fall only as one over the number, still 1.3° at sixteen. Warp each slice along the lines of sight instead of laying it along the glass, and every glass point shows the direction it is seen in, at any number of slices: no sag and no corners. What slicing then buys is pixels. One warped flat picture must be drawn 28% wider than the glass to stay sharp at its middle; two slices cost 5.5%, three 2.4%.

Worth reading first: A wide field on a small screen · The screen is a picture surface too.

A flat picture’s rows sag on a curve, at any field found that a flat picture laid along a curved monitor keeps every row at its own height on the glass, so a row above the eye becomes a horizontal arc, and a horizontal arc above the eye is not seen as a straight line. From a seat 650 mm away, the top row of a 49-inch 32:9 panel sags 119 px on an 1800 mm curve and 239 px on 1000 mm. The field the picture was drawn at cannot touch it, and only the eye’s own row stays straight. Drawing for the glass, so that each glass point shows the scene direction the seat sees it in, removes the sag and the stretch together.

A game cannot simply draw for the glass. Its renderer draws flat pictures, because a flat picture is what a projection matrix makes: a straight line stays a straight line and a triangle stays a triangle. The usual way round it is to draw several flat pictures and put them together on the glass, which a curved screen is eight flat ones measured for a projected screen. The essay asked what that costs a monitor: how many slices bring the top row’s sag under a pixel on 1800 mm and 1000 mm; what the joins cost, where neighbouring pixels come from different pictures; and whether two or three slices, which a game could afford, already remove most of the sag.

Two ways to put a slice on its glass

The panel’s width is split into kk equal stretches of glass. Each gets its own flat picture, drawn from the seat onto the vertical plane through its stretch’s two ends, the chord of that stretch. Within its stretch the chord is close to the glass, closer the narrower the stretch, and the flat picture drawn onto it is exactly right on the chord.

There are two ways to transfer that picture onto the curved glass, and they behave completely differently.

The cheap way lays the slice along its glass: each glass point shows the slice picture’s pixel at the same height and at the same share of the way across. That is what a texture copy does, and it is what the earlier essay’s flat picture did with one slice. Within each slice a row is again a horizontal arc on the glass, now over a stretch kk times narrower.

The other way warps the slice along the lines of sight: each glass point shows the slice picture’s pixel that lies on the line from the seat through that glass point. That is a second pass over the screen, one lookup per glass pixel, the same kind of pass the render is distorted on purpose measured a headset making. Every glass point then shows exactly the scene direction it is seen in, which is the definition of drawing for the glass, whatever the number of slices.

Laid, the sag falls as the square

The hero figure draws the top row’s line as the seat sees it, across the panel, for one to four laid slices on the 1000 mm curve.

A top row drawn as one to four flat slices laid along a 1000 mm curve sags in scallops, each a quarter as deep when the slices halveThe top row of a picture on a 49-inch 32:9 panel curved to 1000 mm, seen from a seat 650 mm away: how far it is seen from the straight line it should be, in the panel's pixels, across the panel. Drawn as one flat picture laid along the glass, it sags 239 px in the middle. As two slices, each laid along its own half, 55.8 px in each half; three, 26.6 px; four, 14.7 px. Each scallop meets the next in a corner where the slices join.0100200-40-2002040direction from the seat, left to right (°)top row's distance from straight (px)1 slice, laid2 slices, laid3 slices, laid4 slices, laid49-inch 32:9, 1000 mm curve, seat 650 mm0: seen straight
Fig. 1 The top row’s line on the 49-inch panel curved to 1000 mm, seen from 650 mm, against where it should be seen, across the panel: one flat picture laid along the glass sags 239 px; two laid slices 55.8 px each; three 26.6; four 14.7. The scallops meet in corners at the joins. The slider changes the panel’s curve.

One laid slice is the earlier essay’s flat picture, and its top row sags 239 px in the middle, the same number. Two laid slices sag 55.8 px each, in the middle of each half, and come back to straight at the panel’s ends and at the join between them. Three sag 26.6 px, four 14.7. Each slice’s sag is the flat picture’s sag over a stretch kk times narrower, and a sag over a stretch goes as the square of its width, so each halving of the slices cuts the sag to about a quarter. That is the law the projected screen obeyed, the chord’s departure from the arc growing as the square of the angle each piece spans, and the monitor obeys it too.

Laid along the glass, the sag falls as one over the square of the slices, and reaching a pixel takes a dozen or moreThe top row's worst sag from straight, seen from 650 mm, on the 49-inch 32:9 panel, against the number of flat slices each laid along its own stretch of glass. On 1800 mm (solid): 119 px for one slice, 27.7 for two, 13.1 for three, under a pixel from 12. On 1000 mm (dashed): 239, 55.8, 26.6, under a pixel from 16. On 745 mm (dotted): 349, 80.7, 39.0, under a pixel from 20.13100.1110100slices laid along the glasstop row's worst sag (px)one pixel1800 mm curve1000 mm curve745 mm curve49-inch 32:9, seat 650 mmtop row of the panel
Fig. 2 The top row’s worst sag against the number of laid slices, on the 49-inch panel curved to 1800, 1000 and 745 mm, seen from 650 mm. It falls as one over the square of the slices, and first falls under a pixel at twelve slices on 1800 mm, sixteen on 1000 mm and twenty on 745 mm.

The answer to the first question follows. On an 1800 mm curve the top row’s sag falls under a pixel at twelve laid slices, 0.8 px; on 1000 mm at sixteen, 0.9 px; on 745 mm, the curve that suited a turning head best, at twenty. Two or three laid slices remove most of the sag in proportion, three quarters of it at two and nine tenths at three, but what they leave is still tens of pixels on a panel whose rows are 0.23 mm apart: 27.7 px at two slices on 1800 mm, 26.6 at three on 1000 mm. The earlier essay’s hunch, that a boundary in the middle of each row straightens the halves either side, is right, and the halves are not straight enough.

Laid, the joins are corners

Where two laid slices meet, the picture is continuous: the last column of one and the first of the next show the same glass. The line is not smooth there. Each slice draws a straight scene line as a straight line on its own chord, and the two chords meet at an angle, so the line the seat sees changes direction at the join.

Where laid slices meet, a straight line turns a corner, and the corners shrink only as one over the slicesThe top row's line seen from the seat changes direction where two laid slices meet; the figure gives the angle of that corner against the number of slices. On 1000 mm (dashed) it is 10.2° for two slices, 5.3° for four, 2.64° for eight and 1.30° for sixteen; on 1800 mm (solid) 5.2° to 0.70°; on 745 mm (dotted) 14.5° to 1.92°. The sag falls four times for each doubling of the slices, the corner only twice.2510200.31310slices laid along the glasscorner at each join (°)1800 mm curve1000 mm curve745 mm curve49-inch 32:9, seat 650 mmtop row of the panel
Fig. 3 The angle through which the top row’s line turns where two laid slices meet, seen from the seat, against the number of slices, on three curves: 10.2° at two slices on 1000 mm, 5.3° at four, 2.64° at eight and 1.30° at sixteen.

The corners are large and they fall slowly. On the 1000 mm curve the line turns 10.2° at the single join between two slices, 5.3° at each join of four, 2.6° at each of eight and 1.3° at each of sixteen. On 1800 mm it runs from 5.2° to 0.70°; on 745 mm from 14.5° to 1.9°. The sag falls four times for each doubling of the slices, the corner only twice, because the corner is the difference between two neighbouring chords’ directions, and that difference is the angle each slice spans, not its square.

The projected screen’s essay noted the kink and judged the seams the least visible place, since the departure from the arc is zero there. That is true of the departure and not of the direction. A straight edge drawn across a join is seen to bend there, and the eye is more sensitive to a change of direction along a line than to a slow drift of its position. At sixteen slices, the count that brings the sag under a pixel on a 1000 mm panel, a window’s top edge would still be seen as a polygon with a corner every 75 mm, turning through more than a degree at each. The second question, what the joins cost, has the answer that a laid slice’s joins are the cost that remains after the sag is gone.

Warped, nothing sags at any count

A warped slice is different in kind. Each glass point shows the pixel of its slice that lies on its own line of sight, so it shows the scene direction the seat sees it in. A straight scene line is then shown on its own great circle of directions, and seen straight, exactly, whether the slices number one or twenty. There is no sag to measure and no corner, because nothing is laid: the warp puts every pixel where the seat needs it.

What the warp changes is how the slice’s pixels sit on the glass’s. A flat slice picture spends its pixels evenly on its chord, and the glass, seen from the seat, does not: a pixel on the chord near the slice’s edge spans a smaller angle from the seat than one near its middle, while a glass pixel there spans about the same angle as at the middle. So if a slice is drawn with its pixels matched to the glass’s at its middle, it is finer than the glass toward its edges, and if it were matched at its edges it would be coarser than the glass at its middle.

Warped along the lines of sight, a slice drawn at the glass's density at its middle is nowhere coarser than the glassOn the 49-inch 32:9 panel curved to 1000 mm, each slice drawn as a flat picture whose pixel matches the glass's at the slice's middle, then warped so that each glass point shows the slice's pixel on its own line of sight: the angle a slice pixel spans against the angle a glass pixel spans, at its coarsest (solid) and finest (dashed) over the slice. The coarsest is 1.000, 1.003, 1.006, 1.007, 1.009, 1.010, 1.009 for 1, 2, 3, 4, 6, 8, 12 slices, never more than a per cent above the glass; the finest rises from 0.49 for one slice to 0.82 for two and 0.98 for twelve: where it is below one the slice draws finer than the glass can show, and those pixels are drawn for nothing.0.4000.6000.80012.5057.5010slices, each warped along the lines of sightslice pixel ÷ glass pixel, in anglecoarsest in a slicefinest in a slice1000 mm curve, seat 650 mm1: the glass's own pixel
Fig. 4 Each slice drawn at the glass’s density at its own middle and warped along the lines of sight, on the 1000 mm curve: the angle a slice pixel spans against the angle a glass pixel spans, at its coarsest and finest over the slice, against the number of slices. The coarsest never exceeds the glass by more than a per cent; the finest rises from 0.49 for one slice to 0.82 for two and 0.98 for twelve.

Drawn at the glass’s density at its middle, a slice is nowhere coarser than the glass: its coarsest pixel spans 1.000 to 1.010 glass pixels for every count from one to twelve. So a warped slice costs no sharpness beyond the resampling’s own small blur, which any second pass pays at any count. What varies is the finest: a single flat picture covering the whole panel is drawn at half the glass’s pixel size at its ends, 0.49, where the chord runs furthest from the glass; two slices at 0.82; twelve at 0.98. Pixels finer than the glass can show are pixels drawn for nothing.

The price of slicing is the spare pixels

So the cost of drawing for the glass by warping is not geometry and not sharpness. It is the work of drawing pixels the glass cannot show.

Warping costs a single flat picture a quarter more pixels than the glass shows; two slices cost five per cent, three cost twoThe columns a game draws, over all its slices, each slice drawn at the glass's density at its own middle and warped along the lines of sight, as a share beyond the glass's own 5,120 columns, on the 49-inch 32:9 panel from 650 mm. On 1000 mm (dashed): 28.3% for one slice, 5.5% for two, 2.4% for three, 0.3% for eight. On 1800 mm (solid) 15.6%, 3.4%, 1.5%; on 745 mm (dotted) 37.6%, 6.9%, 2.9%.0102030402.5057.5010slices, each warped along the lines of sightcolumns drawn beyond the glass's (%)1800 mm curve1000 mm curve745 mm curve49-inch 32:9, seat 650 mmhorizontal density only
Fig. 5 The columns drawn over all the slices, each at the glass’s density at its own middle, beyond the glass’s own 5,120 columns, against the number of warped slices, on three curves. On 1000 mm: 28.3% for one slice, 5.5% for two, 2.4% for three, 0.3% for eight.

One flat picture, warped onto a 1000 mm curve, must be drawn 28.3% wider than the glass to stay as sharp as the glass at its middle. Two warped slices need 5.5% more columns than the glass, three 2.4%, eight 0.3%. On 1800 mm the single picture needs 15.6% and two slices 3.4%; on 745 mm, 37.6% and 6.9%. A second slice removes four fifths of the spare work and a third removes most of what is left.

That is the answer to the third question, and it is yes, in a different sense from the one asked. Two or three slices laid along the glass remove most of the sag and leave tens of pixels and corners of several degrees. Two or three slices warped along the lines of sight remove all of the sag and every corner, and cost a few per cent of pixels over the glass’s own count plus one full-screen resampling pass. A game that can afford two flat renders and one warp can draw for a curved monitor exactly.

The projected screen’s essay framed the choice as tiling against resampling: tiles inexact in geometry and lossless in resolution, one resampled plane exact in geometry and lossy in resolution. The monitor shows that the two combine. Several planes, each resampled, are exact in geometry because of the warp and nearly lossless in resolution because each plane spans little of the field; the count needed is set by how much spare drawing is tolerable, not by how small a sag is.

What a renderer does with it

The warp is cheaper than it sounds, because it does not change from frame to frame. For a fixed seat, the slice pixel that each glass pixel must show is a fixed function of where the glass pixel is: a table of two coordinates and a slice number per glass pixel, computed once when the player sets the panel’s curve and the seat’s distance, and read every frame by a single full-screen pass. That pass is the same shape as the lens-correction pass a headset makes every frame, and it costs about what a light post-processing effect costs: one texture read per glass pixel, against the many a scene’s shading takes.

The two slices are two ordinary renders, each with its own camera at the seat and its own frustum aimed at the middle of its half of the glass, each covering a little over half the panel’s field. Nothing in the scene, its shaders or its depth buffer needs to know the panel is curved. Their combined width is the glass’s plus 5.5% on a 1000 mm curve, so the frame costs about what one flat render of the whole panel would cost, and less than the single warped picture’s 28% spare.

A game that cannot add the pass still has a choice of which errors to keep, because the sag is not the same on every row. A laid picture’s sag grows in proportion to a row’s height above or below the eye, and the eye’s own row is straight. The middle third of the panel’s height, where a player’s attention mostly sits, sags at most a third of the top row’s: about 19 px with two laid slices on a 1000 mm curve, against 56 at the top. A heads-up display drawn along the panel’s edges sits where the sag is worst, and that is the part a renderer should draw directly for the glass first, since flat overlay graphics are cheap to place along a curve one element at a time.

What this rests on

The density is measured across the panel only. Up the panel the chord and the glass are both vertical, so a slice’s vertical density differs from the glass’s only through their different distances from the seat at each column. That difference is largest at a slice’s ends, where the chord runs furthest from the glass, and it would add a little to the spare pixels; the figures leave it out.

The resampling’s own blur is not drawn. Any second pass reconstructs each glass pixel from several slice pixels, and a bilinear reconstruction softens detail by a fraction of a pixel whatever the density. A renderer that draws each slice a little finer than the glass, at the price of more spare work, pays less of it; the figures put each slice exactly at the glass’s density at its middle.

The seat is on the panel’s axis, at 650 mm. A player who sits off the axis or leans sees a picture drawn for the wrong seat, warped or laid, and a turning head wants the picture drawn for its neck and curved about the neck, a screen’s error is one distance measured how much a head moves the right seat. The warp is computed for one seat, and a head tracker would recompute it.

Laying and warping are different operations

Straight lines that are not and a flat picture on a curve wants a narrow field were about what a picture does to the scene’s straight lines, and the evenness a curve buys about what the curve does for the picture’s spread. This essay separates two things that look like one step in a renderer: deciding which pictures to draw, and deciding how each is put on the glass. Slicing is the first and does little for geometry on its own. Warping is the second and does all of it. A laid slice keeps its rows’ heights, which is the whole of the sag and of the corners; a warped slice keeps no rows at all, only lines of sight, and the number of slices is then a matter of economy.

Still open: whether the warp can follow the head every frame

A warp is computed for one seat, and a player’s head moves. A warp recomputed for a tracked head every frame stays exact; one computed once for the nominal seat is right only there, and the rows of a picture warped for 650 mm and seen from 550 mm sag again, by an amount the earlier essays’ measurements of a moving seat suggest is far smaller than a laid picture’s.

The measurement that settles it warps two slices for a nominal seat, moves the eye forward, back and sideways by a stated distance, measures the top row’s sag and the stretch seen from each place, and asks how far the head can move before the warp fixed for the nominal seat is no better than two laid slices; whether that distance is larger than a seated player’s ordinary movement; and whether a tracker’s latency, which the stereo display’s essays priced in arcminutes per degree a second, matters for a picture whose geometry changes far more slowly with the head than a stereo pair’s does.

A game draws flat pictures, and a curved monitor wants the picture drawn for its glass. Several flat slices laid along the glass, each at its rows’ own heights, sag as one over the square of their number, 239 px for one on a 49-inch 1000 mm panel from 650 mm and under a pixel only at sixteen, and every join is a corner that falls only as one over the number, 1.3° at sixteen. The same slices warped along the lines of sight show every glass point its own direction at any count, with no sag and no corner, and cost only the spare pixels a flat picture spends where its chord runs from the glass: 28% for one slice, 5.5% for two, 2.4% for three, plus one resampling pass.

What links here

Computed from the collection, not written here: the essays that point at this one.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A flat tag is an object no other essay names yet.

Cylindrical projectionfield of viewGreat circlePicture surfaceStation point