Two warped slices draw for a curved monitor; sixteen laid ones do not
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 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 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.
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 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.
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.
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.
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.
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.
- A projector that is not at the dome's centre — both name cylindrical projection, field of view, station point
- A scroll is not a panorama — both name cylindrical projection, picture surface, station point
- A wider screen keeps its seat under one rule — both name field of view, picture surface, station point
- One parameter between two surfaces — both name cylindrical projection, field of view, picture surface
- The horizon's shape belongs to the surface — both name field of view, great circle, picture surface
- The kink at a seam — both name field of view, great circle, picture surface
Named objects
A flat tag is an object no other essay names yet.
Cylindrical projectionfield of viewGreat circlePicture surfaceStation point