Spike and in-AE test results#
Machine: Windows 11, After Effects 2026 (26.5x89), CEP 12.0.1 (Chromium 99.0.4844.84), NVIDIA GeForce
RTX 3070 (ANGLE, Direct3D 11). Run with npm run ae:spikes (tools/ae-spikes.mjs), which starts After
Effects, runs the host spikes, opens the panel, runs the renderer spikes and quits. R2 is long and
only runs with -- --only R2.
Last full offline run: 2026-10-09, after 0.9.0 and LN1, on the dev build and on a machine with no downloaded regions or imagery packs: S3, S5, H1, P1, G1, G2, X1, R1, AT1, LB2, LB3, FL1, OI1, HT1, LD1, WB1, LB4, LB6, DT2, DT3, DR1, FO1, LN1, LD2, DU1, RD1, ES1, FB1, MF1, LK1, DT1, ST1, SL1, RT1, HL1, SH1, C1, then D1, D1L, TH1 and LB1, and U1 all pass (S1: 88 ms a 1080p frame, 285 ms at 4K). With the Paris region downloaded again from the newest Protomaps build (37.8 MB, 57 requests) and the satellite pack from the imagery-1 release, E1 (40/40 and 20/20 in 3D), LB5 and SAT1 pass too, and S4 renders its orbit with the Seine, Champ de Mars and the tower standing in 3D (285 ms a frame on average against 140 ms on 2026-09-17, not budgeted). S6b found the coast-glow difference described under S6. D1 without regions now flies to Paris from above, as the panel's sample button does, instead of into empty streets.
Release 1.3.0, 2026-10-12, on the minified build with the full offline pack in the user data folder (RELEASING step 3), the offline and light packs of 1.2.0 used again (no map data changed): R1 (first render 353 ms a frame, while another program ran its own tests on the same PC), G2, E1 (40/40 and 20/20 in 3D), X1 (worst 1.2e-10), D1 and D1L (900 frames, 317 expressions in the Legacy engine, none broken, every compared frame within 0.09/255 of D1's), FB1 (with the hub, the borders of India's states and a TCX import) and SL1 all pass. Then the signed full zip installed as a user installs it (through Explorer, outside any development setup): Full over the signed 1.2.0, the offline data kept as it was; After Effects started on its own opened the signed panel, whose host answered 1.3.0.
Release 1.2.0, 2026-10-12, on the minified build with the full offline pack in the user data folder
(RELEASING step 3): R1 (first render 252 ms a frame), G2, E1 (40/40 and 20/20 in 3D, over a Paris region
downloaded again from build 20261012, 37.8 MB), X1 (worst 1.2e-10), D1 and D1L (900 frames, 313
expressions in the Legacy engine, none broken, every compared frame equal), AR1 (head 0.000 px from the
tip), OI1, OW1 (the same shares as on 2026-10-09), SF1 (its first run, 5 of 5 on both engines), and online
SD1 (build 20261012: 66 tiles, 2.8 MB, no frame lacking, 108 frames equal to the region's) and RR1 (236.8
km, 97.8 % on N1; 3.59 km on foot) all pass. Then the signed zips installed as a user installs them
(through Explorer, outside any development setup): Full over the signed 1.1.2, Light over it
(offline/world.pmtiles 45.1 MB, regions and pictures kept) and Full again; on the Light install the
signed panel, driven through its scripting API, answered 1.2.0 and rendered a street-level map of
Nairobi with 8 street tiles fetched and nothing downloaded first. Installed sizes: Full 2.09 GB, Light
173 MB, Online 46 MB.
The run before, 2026-09-23, after D49-D61 (spikes, heat, district joins, layer copies, the readout, look details, the update check, label restyling, the heat legend, imagery of the user's own): H1, P1, C1, E1, X1, R1, G2, D1, SH1, TH1, SAT1, HL1, LB1, LB2, LB3, RT1, SL1, AT1, ST1, DT1, LK1, FL1, HT1, OI1 and U1 all pass on the dev build.
The in-AE tests, and what each one settles#
Every one of these runs inside After Effects through npm run ae:spikes -- --only <ID>. The ones
that go online run only when they are named, and every other test keeps street detail on demand
offline (D101).
| Id | What it settles | Result |
|---|---|---|
| H1 | The host API through the real panel bridge | PASS 9/9 |
| P1, C1 | Pins and the matched 3D camera against the camera maths | 0.0061 px worst, 0.004 px in 3D |
| E1, X1 | After Effects' own render, and both expression engines | 20/20; 21 expressions, both engines |
| R1, R2 | The renderer, its passes and a 10-second 4K move; both take their map out of the project before deleting its frames | 17/17; no pops (measured again 2026-09-24: 88 ms per frame) |
| G2, D1, D1L | The globe, and the world flight demo at 1080p and 4K | PASS |
| SH1 | The shot list: 601 frames match the core maths, Apply in ~30 ms | PASS |
| TH1, SAT1 | Every look, with and without the imagery packs | PASS |
| HL1 | Highlights as their own render pass, one layer each | PASS |
| LB1 | Auto labels in batches: no call longer than about a second | PASS |
| LD1 | Labels from a comp of your own: the design is found with its fields and anchor, a copy per place with the fields filled, and the copies go with the labels | PASS |
| LB2 | The label template: colour, size, halo, capitals, dots, a style picked up from a layer, and the names already placed restyled (capitals on and off again) | PASS |
| LB3 | Keep-out zones: 42 names in the lower third become 0, and only while the zone holds | PASS |
| RT1 | Imported routes, travellers and recorded pace | PASS |
| AR1 | The arrow rig: the head on the tip (against the traveller on the same keys), the line stopping behind it, the taper, and the controls on the layer (both ends, no head, flowing dashes) | PASS 2026-10-12: head 0.000 px from the traveller, turned the same way |
| SL1 | Outlines as editable shape layers: the drawn shape covers the rendered country to 98 % | PASS |
| AT1 | Your own layers attached to a place: 0.008 px, and Unlink puts them back; a layer copied onto three places, each copy sized by its number and on its place to the pixel, the original untouched | PASS |
| ST1 | The style of the generated layers, and the callout font | PASS |
| DT1 | Numbers on the map: the join (countries, states, downloaded districts), the colours in the rendered pixels, bubbles and spikes 0.000 px off their places, the numbers as text layers, and the legend | PASS |
| OI1 | Imagery of the user's own: tiles served on this computer drawn over land and sea in the base pass, blended at half opacity, kept out of the mattes, credited; since D103 also a WMS served here (capabilities, a Web Mercator layer picked, GetMap tile by tile), a TMS tile folder and a 512-pixel MBTiles file written to disk by the test, each in the render and the preview with its credit | PASS (2026-10-12) |
| HT1 | Heat: weighted points rendered as their own pass, warm at the points, nothing away from them, the heaviest the warmest, the layer named after the column, and a three-step legend | PASS |
| LK1 | A look of your own in the rendered pixels (sea 58,13,82 for #3a0d52), and a look from a picture | PASS |
| MF1 | The map's furniture: a scale bar that measures itself every frame, a north arrow that turns with the map, a graticule | PASS |
| FB1 | The feature browser: what is under the view, listed and searched, and turned into pins, names, highlights or shape layers; half a real country clipped off with nothing left west of the cut; Connect from a hub (every line starts on the hub in the comp); the borders between the states of India as one shape layer of 38 open paths with no expression error; a TCX activity of two laps read by the panel's import as one timed track (2026-10-12, D105) | PASS |
| ES1 | A Google Earth Studio camera read from its exported numbers: 256 orientations round-tripped, the comp built to the render's size, length and frame rate, track points placed as pins | PASS |
| WB1 | Cities and roads fill zooms 7 to 9: 36.5 %, 52.9 % and 66.3 % of the frame against 10.0 % at zoom 5, and gone by 11 | PASS |
| OW1 | The offline world (OpenStreetMap to zoom 9, D91) under every map: nothing changes at zoom 5; at zooms 8 to 10 it paints 12 to 100 % of the frame over Dhaka, Paris, the Alps, the Amazon, the Nile delta, Norway, Nairobi and Tokyo; the Caspian, Lake Michigan and Lake Victoria stay water; over a satellite picture it adds only lines (7 %), country colours hold at zoom 7, the relief shows on 99 % of the Alps; a 1080p frame at zoom 9 in about 50 ms. Needs the pack in the user data folder | PASS |
| LB4 | Names of the natural world from the Bay of Bengal to Everest: italic water names in the water colour, ranges in spaced capitals, Everest with a triangle and 8,848 m, local-language names with an English line, Bengali upright and shaped | PASS |
| LB5 | Names inside Paris from the region's own tiles: districts, landmarks, stations, parks, the Seine and 18 streets, street and river names bent along their line on a mask path (a sharp corner keeps a straight turned name), reading left to right at their middle at both ends of a turning move and turning with the map, kept when placed again | PASS |
| LB6 | Oceans on a turning globe: a globe turned from the South Atlantic to the Pacific with the world's names names the Atlantic, Indian and Pacific Oceans, with no two names overlapping at 24 moments | PASS |
| DT2 | Categories and years: blocs in their palette colours to the pixel; Bangladesh in its 2000 colour on the first frame and its 2020 colour on the last, Nepal between its years, all 25 frames drawn; the year layer counting 2000, 2010, 2020; an area chart whose time follows the slider and whose areas hold the points of their year | PASS |
| SF1 | The Self-test (D104) through the About button's code, on both expression engines: every check passes, the project holds the same items, one Undo takes back the Self-test and nothing else, and the problem report carries its report with the home folder as ~ | PASS 2026-10-12 (its first run in After Effects): 5 of 5 on both engines, 23 items before and after, one Undo takes it back |
| DT3 | Prism maps: the same numbers rendered flat and raised over a tilted South Asia; the raised data pass covers 176,514 pixels against 67,169 flat, a prism stands above India where the flat map has nothing, and the prisms render on the globe | PASS |
| DR1 | A drawn path becomes a route: a curved Pen path in a moved, scaled and turned group on a turned layer and a mask on a solid, read at 1 s while the camera moves, come back as Dhaka to Chittagong (within 1e-6 degrees, the curve kept) and an area around Dhaka; the route made from them lies on the drawing at 1 s (0.0002 px) and on the map at 0 s (0.0007 px); a line on a globe comes back as Dhaka to Tokyo; nothing selected gives a message | PASS |
| FO1 | One map follows another: an overview in the corner of a comp follows a flight from Dhaka to Delhi two zoom steps out with its own tilt (0 off at five moments), renders as animated, refuses to be followed back and lets go cleanly; the flight's camera copied into another comp with its easing (0 off), and the follower's copied a key per frame | PASS |
| LN1 | A scene made longer: a 2-second map in a 4-second scene renders 100 frames and ends at 4 s, nothing grows the second time, and a trimmed map layer keeps its trim | PASS |
| LD2 | Pictures in a label design: India, Bangladesh and Nepal each wear their own flag (by code, by short code, by name) fitted at 30 %, every other country with the field off, one footage item per picture | PASS |
| DU1 | A duplicated scene gets its own map: new id, map comp and footage on the same frames, pins moved with it, the two render apart, the unrendered copy keeps its frames through the original's clean-up, Undo is left alone (fails on the old clean-up rule) | PASS |
| RD1 | Renders on disk: a map rendered before its project was saved keeps its folder and names the project; Remove takes only what nothing can reach (fails six ways on the old code) | PASS |
| U1 | The real panel, driven through DevTools: every sheet and tool, with the prism switch, the pen button and Follow the camera of (0.9) | PASS |
| SD1 | Online: street detail on demand on a light install (D101). A fly-to from Bangladesh into Dhaka's streets renders with nothing downloaded; its frames match a downloaded region's where the region is fully in; offline, the same move renders again from the cache; offline with an empty cache, or with only the world kept, the frames short of detail are named and drawn with what is there. Needs the light pack (tools/build-offline-pack.ts --light) |
PASS 2026-10-12 (second run; its offline frames held to S6's noise afterwards, see below): 66 tiles (2.8 MB) fetched, 0 frames lacking; 108 frames equal to the region's |
| RR1 | Online: routes on roads (D102). A car route from Dhaka to Chittagong and a walk from the Eiffel Tower to the Louvre, their roads fetched into an empty folder of the test's own; offline both again from it, and from answers made 40 days old; an empty folder offline gives the message; both drawn as route layers (an arrow rig with a traveller, a comet) with a camera move along each | PASS 2026-10-12: 236.8 km, 97.8 % on N1; 3.59 km on walkable ways over a Seine bridge; the camera within 51 m |
| DS1, TR1, IM1, OSM1 | Online: districts, elevation packs, imagery packs, OpenStreetMap features | PASS |
| GC1 | Online: OpenStreetMap search from the panel, Rue de Rivoli in Paris and Gulshan 2 in Dhaka a second apart, the same search answered again from the disk | PASS |
| SN1 | Online: a Sentinel-2 satellite pack built for an area, 5 tiles of Dhaka in 6-14 s each | PASS |
| HB1 | Online when the pack is missing: historical borders (D92, D93). Installs the pack from the history-1 release, renders South Asia in 1914, 1945, 1947 and 1971 with a look that has country colours and one without, and reads British India in the colour of the United Kingdom, India and Pakistan apart with East Bengal in Pakistan's colour, Bangladesh in its own, neighbours never in one colour, the Bay of Bengal still sea; the borders draw-on draws the past's borders. Then the History Year slider (D94): 1945 to 1947 cross-faded at three points, and a real map keyed from 1945 to 1947, read back, rendered (25 frames), central India British, halfway and India, the year layer counting 1945, 1946, 1947. Frames in HB1-frames. 2026-10-10: pack installed in 1.7 s, 28 places read right; the fade reads 1945 British, 1946 halfway (rgb 222,210,164 between 243,201,165 and 201,219,163), 1947 India; the keyed map renders all 25 frames with the same three colours at frames 0, 12 and 24, and the year layer counts 1945, 1946, 1947; 0 problems. Then for D95: history-1 updated to history-2 from its release in 1.8 s, and the British Raj of 1914 rendered as a highlight on today's map, central India rgba 255,93,115,255 and Nepal clear. Then for D96: Auto labels on a map of 1947 name India, Pakistan, Burma, Nepal and Bhutan and none of today's countries; keyed from 1945 to 1947, the British Raj shows early (85) and is gone late, India the other way, Nepal, Bhutan and Burma throughout; the feature browser's Past lists the 144 named shapes of 1914; 0 problems |
PASS |
SF1 — The Self-test in After Effects: PASS (2026-10-12)#
Its first run in After Effects, on the minified 1.2.0 build, with the full offline pack in the user data folder.
- Both engines. The Self-test through the About button's code: PASS, 5 of 5, in 1.9 s with JavaScript expressions and 2.0 s on the Legacy ExtendScript engine; the project held the same 23 items before and after each run.
- The checks. The host script answers 1.2.0 in After Effects 26.5x89; a 640x360 frame renders in 165 to 179 ms (RTX 3070); the map comp is made and removed in one undo group, After Effects drawing the imported frame within 0/255; the pin and the 3D pin seen through the camera both lie 0.000 px from the camera maths; the offline data reads as a Full install to zoom 9, 7 files readable.
- Undo. With a marker comp made in its own step just before, the first Undo takes back the Self-test and leaves the project as it was, and the second takes the marker.
- The report. The problem report carries the Self-test report and never the home folder (the user name appears 0 times in either file), the issue address holds only the form and three short fields, and the report reached the clipboard.
RR1 — Routes on roads: PASS (2026-10-12)#
The road answers go to RR1-roads in the spike folder, emptied first, so both routes are fetched
from Overpass (overpass-api.de answered every query on the first try once the queries asked for 256
MiB; the same morning it had turned the default 512 MiB away again and again, and the second
endpoint answered 500).
- The drive. Dhaka (23.7104 N, 90.4074 E) to Chittagong (22.3569 N, 91.7832 E) by car: three areas, 2.3 MB over the network, 10,176 roads a car may use. 236.8 km, 2 h 53 min at free-flowing speeds, 3,053 points; 231.5 km (97.8 %) on N1, across the Kanchpur, Meghna and Daudkandi bridges. The ends lie 27 m and 2 m from their roads; every point between them is a point of a road a car may use, and every step a step of that road. 31 s in all, nearly all of it Overpass.
- The walk. The Eiffel Tower to the Louvre on foot: one band, 1.8 MB, 18,295 walkable ways. 3.59 km, 185 points, half of it along the Rue de l'Université, over the Seine on a bridge, every point and step on a walkable way. 6 s.
- Offline. With every request failing as without a connection, both come again from the folder point for point (3 and 1 areas kept); with the answers made 40 days old, both come again from them (3 and 1 old); with an empty folder the walk gives "OpenStreetMap cannot be reached and the roads around both ends are not on this computer yet: make this route once online, and it comes again offline".
- In After Effects. The drive drawn as an arrow rig with a traveller (thinned to 300 points), the walk with a comet: no expression errors, one route layer each with its ends in the tag. The camera move the Route sheet's Camera switch adds stays within 51 m of the drive and 0.1 m of the walk.
SD1 — Street detail on demand on a light install: PASS (2026-10-12)#
The light pack (world to zoom 6, cut from the full pack) and an empty tile cache in a test folder stand in for a fresh Light install; downloaded regions are left out of the tile chain. A shot list flies from Bangladesh at zoom 5.5 into Dhaka's streets at zoom 15.2 (tilt 45, then an orbit), 214 frames at 960x540. Two runs, both on build 20261011:
- Online, nothing downloaded. The frames need 71 tiles past the light pack's zoom 6; 66 were fetched (2.8 MB, the rest are the pack's own), and the whole render took 18 to 20 s. No frame lacked a tile, and MapLibre asked for no tile the plan had not listed (core's covering matches MapLibre's). The last frame differs from the light pack alone on 100 % of the picture.
- Against a downloaded region. A region round the street-level frames (324 tiles, 10.4 MB, the same build) fades in from zoom 11.07 to 11.87. All 108 frames past that, lying inside it, are equal to the street detail frames: 0 pixels apart by more than 2/255.
- Offline, from the cache. With every request failing as without a connection, a second map with the same move renders 201 frames (13 held frames share one render, as online): nothing fetched, nothing lacking. The frames equal the online ones up to the renderer's own noise: 4 frames (run 2) and 6 frames (run 1) have a few pixels beyond 2/255, at most 21 pixels and one pixel at 5/255, nearly all below zoom 7 where no street tile is drawn - the coast glow with multisampling of S6. The first run held them to 2/255 and failed on it; the check now allows S6's noise (one pixel in 10,000 beyond 2/255, no step over 8/255) and run 2's frames are inside it.
- Offline, empty cache. "frames 52-214 (2.0-8.6 s) lack street detail (this computer is offline)": the first named frame is the first past zoom 7. They are drawn with the light pack: 220 colours at zoom 8; at street level the pack has nothing more than the ground.
- Offline, the world kept. With only the world's zooms 7 to 9 in the cache (19 tiles), 129 frames from the first past zoom 10 are named, and every one is drawn with that world detail instead of the light pack (346 colours at zoom 11, 99.6 % of the picture apart from the pack's). The first run had drawn such frames with the pack alone; the three levels of D101 came from it.
OW1 — The offline world under every map: PASS (2026-10-09)#
-
What it renders. Every view twice, with the offline world (
offline/world.pmtiles, the Protomaps planet build to zoom 9, D91) and without it, at 640x360 in the Midnight look; the pixels that differ are what it draws. Frames are saved toOW1-framesfor review. - Zoom 5 over Dhaka and Paris: 0 % of the frame changes, so Natural Earth still carries the globe and the continents exactly as before.
- Zooms 8 to 10: Dhaka 31 and 51 %, Paris 63 and 100 %, the Alps 59 %, the Amazon 43 %, the Nile delta 12 %, Norway 53 %, Nairobi 36 % and Tokyo 90 %. Reviewed: the rivers of Bangladesh as water, Manaus between the Rio Negro and the Amazon, the fjords, and the country borders solid in the look's border colour (they were lost at first, when every OpenStreetMap border shared one thin dash).
- Lakes: the middle of the Caspian, Lake Michigan and Lake Victoria (a patch, since Victoria has a border through it) stays the colour of water: 100, 100 and 90 %.
- Looks that keep their own ground: over the satellite picture only lines come on (7.4 % of the frame; 100 % before rasters were kept out of the hand-over); with Atlas' country colours, 11.9 % at zoom 7; the shaded relief shows on 98.9 % of the Alps at zoom 7.5 (0 % before it was drawn again over the offline world's ground). Districts are drawn only from zoom 9: at 8 they netted the whole satellite picture of Bangladesh.
- Speed: a 1080p base frame over Dhaka at zoom 9, 27 to 52 ms.
- Around it: the full offline run passed with the offline world installed. R1's first render over Paris went over its budget until the offline world handed its lines over to the region; since then it measures the same with and without it (docs/PERFORMANCE.md).
X1 — Both expression engines in After Effects: PASS (2026-09-17)#
- Why. Release 0.1.0 failed in a project from a template that uses the Legacy ExtendScript expression engine: its const and arrow-function expressions did not parse (D14).
-
Test.
src/panel/engineTests.tsbuilds a 3-second globe map with 2D pins (scale and rotation with the map), a 3D camera and a 3D pin, a route, a callout and auto labels. Every expression is read at 5 times with the JavaScript engine, then the project is switched to the Legacy ExtendScript engine, every expression is set again (After Effects keeps expressions compiled by their original engine) and read again. A probe expression (typeof [].map) proves which engine ran each pass. - Result. 21 expressions of 8 kinds: no errors in either engine, worst difference 0.0000000001, identical rendered frames. With the 0.1.0 expressions the same test fails in the Legacy ExtendScript engine with errors like the ones seen in the release test.
-
Also.
npm run check:expressionsruns 515 generated expressions in JScript (an ES3 engine) and matches Node; it rejects the 0.1.0 expressions too.
D1L — The world flight in a Legacy ExtendScript project: PASS (2026-09-17)#
- The whole D1 demo built in a project switched to the Legacy ExtendScript engine, with the minified release code: built in 39 s, 900 frames rendered in 52 s.
- All 324 expressions in the scene evaluate without errors. The 15 saved frames match the JavaScript-engine D1 frames (mean difference at most 0.001 of 255).
- P1, C1, E1 (40/40 and 20/20), G2 and D1 pass again with the ES3 expressions; X1, G2, E1 and D1 also with the minified build.
D1 — Milestone A world flight at 1080p and 4K: PASS (2026-09-17)#
-
What it builds.
src/panel/demo/worldFlight.ts(also the panel's World flight sample button) makes a 36-second, 25 fps globe map: the globe turns while country borders draw on, one continuous flight goes down to the Eiffel Tower, a slow orbit shows a pin and a callout, a second flight goes to Tokyo Tower along a great-circle route that draws on, and a second pin and callout end the move. Country and city labels in the local language are placed over the whole timeline. - Data. The offline world map plus four downloaded OpenStreetMap regions used together: paris-wide (zoom 12), paris (zoom 15), tokyo-wide (zoom 12) and tokyo (zoom 15). The wide regions hand over to the city regions (D13).
- 1080p. Built in 30–56 s: 140 labels (324 text, subtitle and dot layers, chosen from 7,359 candidates), a route, 2 pins and 2 callouts, no expression errors. All 900 frames rendered with 2× supersampling in 30–53 s. After Effects' own render was saved at 15 moments and reviewed, before and after purging its image cache (identical files).
-
4K. The same move at 3840×2160 keeps the 1080p framing (
zoomOffset = log2(height / 1080), with pins and routes scaled by height). The 900 frames rendered in 132–142 s, 158–169 ms per frame. -
Release code. With the minified release build (
node tools/build.mjs --dev --minify), R1 (15/15), G2 and D1 pass again: D1 built in 29 s with no expression errors and rendered its 900 frames in 37 s (43 ms per frame). - Review. Globe with labels in each country's own script and no labels outside the planet; the descent to Paris without empty zooms or floating region patches; the Eiffel Tower in 3D with its callout; the route arc across Asia; Tokyo's towers at arrival with the 東京 callout.
G1 — Globe projection against MapLibre: PASS (2026-09-17)#
-
src/core/camera/globe.tsprojects points for MapLibre's globe projection: a vertical-perspective globe up to zoom 7, mixed in clip space with Mercator between zoom 7 and 8 (as MapLibre's shaders do), and flat Mercator from zoom 8 (D11). Points can sit above the ground, and points behind the planet are reported hidden. -
CPU. 268 random globe views (zoom 1 to 7, any bearing, pitch up to 60°) against
map.project(): worst error 0.000000000007 px. -
GPU. 57 renders of a red dot, half of them in the transition zooms, where
map.project()does not mix like the shaders: the dot centre found in the pixels is within 0.19 px of the core projection (0.13 px in the transition; centroid noise).
G2 — Pins on a globe map in After Effects' own render: PASS (2026-09-17)#
- A 1280×720 globe map turns from the Atlantic to Europe, then flies down to Paris through the
transition (zoom 7.5), on to zoom 11.5 and ends at zoom 12.6, pitched 50°. Seven pins (Paris,
London, Cairo, New York, Tokyo, São Paulo, Versailles) use the shared projection expression
(
src/core/ae/projectionExpression.ts). - At 8 times, every shown pin (22) sits on the red dot the renderer drew, and every pin hidden behind the planet (6) has no dot under it. No expression errors.
R1 — Phase 2 renderer in After Effects: PASS 15/15 (2026-09-17)#
src/panel/renderTests.ts. A 1920×1080, 4-second map comp over Paris (OpenStreetMap region, 3D
buildings) holds a view for 1 s, moves to a pitched view by 3.5 s and holds it. Every render goes
through the real render job (src/panel/render/renderJob.ts) and import (LML.api.importPasses).
| Check | Result |
|---|---|
| Holds render once | 100 frames, 64 drawn (26 + 12 held frames collapse into 2) |
| First render, all 8 passes, 2× supersampling | 206–245 ms per drawn frame, 13.5 s in total |
| One layer and one footage item per pass | 8 and 8; passes stacked in order, only the basemap switched on |
| Data credit | "© OpenStreetMap contributors" text layer added to the scene |
| Land and water mattes | cover every pixel exactly once (0 errors) |
| Colour passes | roads 25 %, buildings 57 %, land 96 %, water 5 % of the frame |
| Ground passes rebuild the basemap | 99.4 % of building-free pixels within 3 per channel |
| Pops in the base sequence | none |
| Unchanged re-render | 0 frames drawn, 0.4 s |
| Keyframe change at 3.5 s | 63 frames drawn (exactly the frames whose camera changed), 37 reused |
| Preview after a final render | becomes the footage's After Effects proxy, switched on |
| Final render with the same move | keeps the proxy, switches it off |
| Motion blur, 8 samples | moving frames change (mean difference 8.4), held frames identical and reused; 306 ms per frame |
| Cancel after 15 frames, render again | cancelled cleanly; the resumed render drew 49 of 64 |
| GPU box filter against the CPU reference | worst channel difference 1 (rounding) |
R2 — 10-second 4K move: PASS (2026-09-17)#
- Move. 3840×2160, 25 fps, 250 frames over Paris: zoom 12.2 (flat) to zoom 15.4 (bearing 40°, pitch 60°) by 6 s, then an orbit to bearing 100°, pitch 65° by 10 s, with easy ease.
- Speed. 2× supersampling (a 7680×4320 canvas): 125 ms per frame, 31 s for the whole move, including camera sampling, encoding in workers and import.
- Pops. None. The frame-to-frame change curve is smooth (largest change 17.4 of 255).
- Keyframe change. Changing only the 10 s keyframe redrew 99 frames and reused 151: exactly the frames after 6 s.
- Known. Small steps in the change curve remain where tiles switch zoom level (new minor roads and small buildings appear). They are below the pop threshold; smoothing them is noted in D10.
S3 — Complex scripts in AE text layers: PASS (2026-09-17)#
-
ComposerEngine.UNIVERSAL_TYPE_ENGINEcan be set from ExtendScript, and it reads back. -
11 scripts shape correctly with Windows system fonts, checked visually in a rendered frame:
Script Sample Font Latin Paris · São Paulo · Zürich Segoe UI Arabic القاهرة (joined, right to left) Segoe UI Hebrew ירושלים Segoe UI Devanagari नई दिल्ली (conjuncts) Nirmala UI Bengali ঢাকা চট্টগ্রাম ক্ষ্ম (conjuncts) Nirmala UI Tamil சென்னை Nirmala UI Thai กรุงเทพมหานคร Leelawadee UI Myanmar ရန်ကုန် Myanmar Text Chinese 北京 Microsoft YaHei Japanese 東京 Yu Gothic Korean 서울 Malgun Gothic -
Timings. Creating 500 text layers took 12.2 s, about 24 ms per layer. Measuring all 500 with
sourceRectAtTimetook 0.2 s. -
Measuring glitch. In one of five runs, the first Bengali layer measured 0 × 0 even though it rendered correctly in the saved frame. The label engine must retry a zero-size measurement of non-empty text (
tools/ae/spikes.jsxretries 20 times, 50 ms apart).- Seen again in a full run on 2026-09-17 despite the retries: a 1-second retry window is not enough every time. The label engine (Phase 6) needs a longer, event-driven wait, or a fallback that measures after the first render.
-
Consequence for labels. Measure label text in AE, then do collision and placement in core. It is cheap enough to measure every candidate. Create layers only for labels that survive placement, and batch the creation behind a progress bar.
C1 — Matched 3D camera in After Effects: PASS (2026-09-17)#
-
Rig.
src/core/ae/cameraRig.tsgenerates the expressions andLML.api.addCameraRigbuilds the layers:- "Map Camera Target": a 3D null at the ground position of the view centre, rotated by the bearing, and linked to the map layer through a Layer Control effect.
- "Map Camera": a one-node camera parented to the null. It sits at local
(0, D·u·sin p, −D·u·cos p)with X Rotation = pitch and Zoom = D, whereD = map height / 2 / tan(fov / 2)andu = 2^(reference zoom − zoom). - The ground plane is the scene's z = 0 plane at a fixed reference zoom. Its origin is stored float32-exact on the map layer as "3D Origin Latitude/Longitude" and "3D Reference Zoom".
- Everything reads the map controls, so the camera follows every keyframe.
-
3D pins (
addPinwiththreeD) are 3D shape layers on the ground plane. An "Altitude (m)" slider lifts them at MapLibre's metre scale. -
Test.
src/panel/cameraAlignment.tsanimates New York from zoom 13.4 (bearing −29°, pitch 40°) to zoom 16.9 (bearing 70°, pitch 72°). It adds the rig and 18 3D pins, a third of them 30–400 m above the ground. It then reads where AE's own camera projects each pin throughtoCompin an expression.- Ground pins are compared with the core projection (MapLibre's camera, see S2a).
- Lifted pins are compared with the rig maths.
| Case | Comparisons | Worst error |
|---|---|---|
| 1080p, animated camera, 5 times | 88 | 0.00004 px |
| 1080p, map layer scaled to 62 % | 18 | 0.0037 px |
| 4K, animated camera and scaled map layer | 126 | 0.00003 px |
- No expression errors. A second
addCameraRigcall reuses the rig instead of adding another. - In AE's own render. E1 also places the five landmarks as 3D pins: 20 of 20 centres land on the renderer's red dots. In U1's frame with the 2D pins hidden, the 3D rings lie flat on the map exactly where the 2D pins were.
-
Limits. The camera cannot match a map layer that is moved off centre, rotated or scaled
unevenly (AE cameras have no lens shift).
addCameraRigreturns a warning in those cases. 3D layers are sized in ground units of the reference zoom. Very long zoom ranges (such as world to street) are a Phase 3 topic.
U1 — The real panel UI, driven through DevTools: PASS (2026-09-17)#
-
npm run ae:spikes -- --uistarts After Effects and connects to the panel's DevTools port (8123, dev builds only). It clicks through the UI like a user:- Picks the downloaded "paris" basemap.
- Frames Paris in the preview.
- Opens Download this area…, types "Paris" and checks the existing-region warning and the per-zoom tile estimates (no download).
- Clicks New map.
- Drops three pins, then the same three places as 3D pins (this adds the 3D camera).
- Clicks Render preview, then opens the render settings (⚙), picks 2× supersampling with a Roads pass and a Water Matte, and clicks Render. Both jobs go through the render queue.
- Screenshots of each step, an AE-rendered frame, and a second frame with only the 3D pins are
saved to
.cache/ui/. - Result. Both queue jobs finish. The map does not move, so each 250-frame render draws one frame and reuses it 249 times (1.1 s and 2.1 s). AE's own frame shows the Paris basemap with the pins on the Arc de Triomphe, Louvre and Eiffel Tower, and the OpenStreetMap credit in the corner.
E1 — End to end in After Effects' own render: PASS 20/20 (2026-09-17)#
-
Setup. A 1280×720, 2-second map comp animates from Paris at zoom 12.6 (flat) to zoom 13.4
(bearing 35°, pitch 50°).
- Pins: hollow green rings at the Eiffel Tower, Arc de Triomphe, Louvre, Notre-Dame and Sacré-Cœur.
-
Render map.
src/panel/render/renderMap.ts:- Samples the camera for all 50 frames through
LML.api.sampleViews. - Renders the Paris OpenStreetMap region with 3D buildings, plus solid red dots at the same five coordinates. Speed: 67 ms per frame, including PNG encoding.
- Imports the sequence into the map comp through
LML.api.importBasemap.
- Samples the camera for all 50 frames through
-
Check. After Effects renders the scene comp at four times with
saveFrameToPng. At every pin centre that AE evaluates, the pixel of AE's own frame is pure red (255, 0, 0). - Result. 20 of 20 checks hit. The AE layer rig and the renderer agree inside a real AE render.
- With the 3D camera (C1). The five landmarks are added again as 3D pins under the matched camera. 40 of 40 checks hit, 20 of them 3D pins.
- Phase 2. E1 now renders through the render job with 2× supersampling and GPU box filtering, and still hits 40 of 40.
P1 — Pins in After Effects against the camera maths: PASS (2026-09-17)#
-
Pins.
src/core/ae/pinExpressions.tsgenerates the expressions for position, scale, rotation and opacity.LML.api.addPinbuilds the shape layer, its effects and a Layer Control link to the map layer. -
Test.
src/panel/alignment.tsanimates the camera from Paris at zoom 11.3 (bearing 25°, pitch 45°) to the Eiffel Tower at zoom 16.8 (bearing −60°, pitch 70°). It places 14 pins across both views and compares each pin's evaluated AE position with the core projection of its exact coordinates. The core projection uses the camera values AE reports at that time and goes throughsourcePointToComp.
| Case | Comparisons | Worst error |
|---|---|---|
| Animated camera, 5 times | 70 | 0.0061 px |
| Map layer moved, scaled to 55 % and rotated −12° | 28 | 0.0002 px |
| After renaming the map layer and its comp | 14 | 0.0042 px |
| 4K (3840×2160), all three cases | 112 | 0.0042 px |
- No expression errors.
- Precision. Slider Controls are float32, so the exact double coordinates are baked into each expression. They are used while the slider still holds their float32 rounding. Unit tests show that float32 alone would miss by more than 0.5 px at zoom 20.
H1 — Host API through the real panel bridge: PASS 9/9 (2026-09-17)#
-
src/panel/smoke.tscalls the host exactly as the UI does:-
pingthroughLML.call. -
createMapCompwith the name "Map Tōkyō · ঢাকা · القاهرة" (Unicode survives both ways). - Checks for the
LML:tags, the five camera controls in order, and control values equal to the requested view. -
setViewas keyframes: one key per control.
-
- Undo. One Edit > Undo removes the keyframes; a second removes the whole map comp. Each action is exactly one undo step, and nothing purges undo history.
S5 — Image sequences, proxies, re-render in place: PASS (2026-09-17)#
- A PNG sequence imported with
ImportOptions.sequencegets the expected duration (10 frames at 25 fps). -
setProxyWithSequenceattaches a half-size proxy sequence, anduseProxytoggles it. -
replaceWithSequenceswaps in a re-rendered sequence. The layer, its effects and its comp survive. A pixel check confirms the new frames: red before, green after. -
Side note. In UI mode,
app.quit()stops at the "save changes" prompt. Automation closes the project withCloseOptions.DO_NOT_SAVE_CHANGESfirst.
S1 — Frame renderer speed in CEP: PASS (2026-09-17)#
The offline Natural Earth style was rendered along a van Wijk–Nuij flight from Paris to Tokyo. Each
frame covers: wait for tiles, synchronous draw, readPixels with flip and unpremultiply, PNG
encode (zlib level 1, opaque) and a write to disk.
| Size | Frames | Steady average | Max | First frame | Wait | Read | PNG encode | Budget |
|---|---|---|---|---|---|---|---|---|
| 1080p | 50 | 75 ms | 138 ms | 232 ms | 10 ms | 13 ms | 54 ms | 300 ms |
| 4K | 20 | 283 ms | 393 ms | 465 ms | 28 ms | 67 ms | 195 ms | 1200 ms |
- PNG encoding is the largest cost. Encoding in a worker pool, or JPEG for opaque base passes, would speed renders up several times.
- WebGL2 is available:
MAX_TEXTURE_SIZEandMAX_RENDERBUFFER_SIZEare 16384. - Chromium 99 lacks
AbortSignal.reasonandthrowIfAborted, whichpmtilesuses. Both are polyfilled insrc/panel/polyfills.ts. A scan of the bundles found no other post-99 APIs.
S2a — Core camera maths against MapLibre: PASS (2026-09-17)#
-
Test. Over 300 random views (zoom 2–18, any bearing, pitch 0–80°), our closed-form
project()was compared withmap.project(). - Result. The worst error was 0.00000003 px, so the core camera is exactly MapLibre's camera.
- Next. S2 proper, the After Effects rig against this maths, is part of Phase 1.
S6 — Deterministic frames: PASS without renderer labels (2026-09-17)#
- With basemap labels. 74,759 bytes differed between two renders of the same frame with another frame in between. Symbol placement and fade state depend on which frames were drawn before, not only on the clock.
- S6b, labels off. 0 bytes differed: the frame is identical.
-
Phase 2. The renderer now runs with no fades (
fadeDuration: 0) and no style transitions. With labels on, 5,714 bytes still differ (placement depends on earlier frames); without labels frames stay identical. - Decision. Final-render labels stay out of the renderer. They are AE text layers placed by our own engine (Phase 6), or a label pass that engine draws. Basemap passes are deterministic, so re-rendering a single frame is safe.
- Measured again 2026-10-09: not quite identical since the coast glow. S6b was not run between 2026-09-17 and 2026-10-09, and the looks that came on 2026-09-18 draw a soft glow along the coast (a wide blurred line). Three runs gave 132 to 305 differing bytes: 85 to 135 pixels, each channel off by at most 4 of 255, alpha never, all where glowing coast lines cross or meet; the same frame drawn twice in a row differs the same way, so it is not tile loading. With the glow layer left out, or with the canvas's multisample antialiasing off, four repeats came out identical (0 pixels), so the pair of them is the cause on this GPU (RTX 3070, ANGLE on Direct3D 11). Nothing a viewer can see, but a frame re-rendered alone can differ from its first render in those pixels. S6b now reports the pixels, the largest step and where they lie, and saves the frames when they differ.
Automation note#
-
Problem. Starting After Effects with
AfterFX.com -r <script>ended the session at a random moment after the script finished. The shutdown was a normal "App Exit", not a crash. -
Fix.
-
tools/ae-spikes.mjsstartsAfterFX.exenormally. - The panel writes a heartbeat and polls for
run-request.json. - Only if the panel is not open after 45 s does it send
tools/ae/open-panel.jsxto the running instance. - The panel runs the host spikes with
$.evalFile, then the renderer spikes. - It asks the host to quit, and the host quits from
app.scheduleTaskonce the call has returned.
-
- Result. After Effects closes by itself when the run finishes.
-
npm run ae:spikes -- --only S4,S6bruns a subset.
S4 — Regional OpenStreetMap extract: PASS (2026-09-17)#
-
Tool.
tools/extract-region.tsplans with range reads first, then downloads. -
Source. The newest Protomaps planet build,
20260917.pmtiles: 138 GB, basemap schema 4.15.2. -
Paris extract. bbox 2.20,48.80,2.48,48.92, z0–15.
- Planning read 9 directories (1.0 MB in 10 requests, 7.6 s).
- Download: 624 tiles, 37.7 MB, in 43 s over 57 requests.
- Saved to
%APPDATA%/LazyMapLayers/regions/paris.pmtiles.
-
Contents. Layers: earth, water, landcover, landuse, roads, buildings (
height,min_height), boundaries, places, pois. Names in 41 languages. Attribution: © OpenStreetMap. -
Render. A 48-frame orbit around the Eiffel Tower at 1080p (zoom 15.6→14.8, pitch 62°,
bearing −30°→90°) with 3D buildings, fully offline.
- Average 140 ms per frame, maximum 214 ms, first frame 491 ms.
- Checked visually: the Seine, Champ de Mars, Arc de Triomphe and La Défense towers are correct.
- Found. OpenStreetMap maps the Eiffel Tower as one footprint with a height, so it extrudes into a solid block. That needs landmark handling in Phase 7, such as skipping tall open structures or using landmark models.
