Golden-hour aerial render of SILK Residencies & Mall beside Diyawanna Oya in Rajagiriya

StackMoth/Work/SILK

Flagship · Print engineering · Baili Investments

SILK Residencies & Mall

Two roadside hoardings, four metres tall — rebuilt from a 3D map of Rajagiriya so every lake, bridge and tower is real.

147″ × 156″ Largest board
23 AI tiles
1.32M Vertex 3D map
0 Design software

01 / The problem

A 1-megapixel render. A 4-metre print.

9 DPI

1122 × 1402 px across 147 inches — an 11× enlargement.

Blind outpainting invented lakes and a 400 m bridge. The rebuild puts back the real Diyawanna.

Round 14 mapped SILK hoarding board Round 13 outpainted SILK hoarding board with hallucinated surroundings Round 13 — guessed Round 14 — mapped

02 / Survey geometry

Map first. Paint second.

WebGL2 bridged 3D OSM model of Rajagiriya
Generated night plate locked to the 3D OSM proxy
Buthgamuwa Rd bridge · 51 m
Sri Jayewardenepura Mawatha
3D OSM proxy of Rajagiriya

Bridged 3D OSM proxy (1.32M vertices)

Night plate locked to the 3D OSM proxy

Rendered night plate — sub-pixel agreement on water, bridges & towers

01 / GEOMETRY 10,370 OSM + 19,117 Microsoft footprints
02 / CAMERA Exact camera intrinsics — towers pixel-locked
03 / AUTHORITY Map is authority on geometry. AI only on light.
Map-accurate golden plate before tiling 15 overlapping super-resolution tiles concentrated on the towers and surroundings

03 / Generative super-resolution

23 tiles, only where they matter.

23 → 39 SILK facade DPI
17 → 27.3 Surroundings DPI
0 Tiles spent on sky
8 tiles concentrated on the visible right 70 percent of the night hoarding
Night split board: 8 tiles on the visible right 70% — 41.4 DPI native across all six towers with zero vertical facade seam.

04 / Computer vision & print physics

Stitched until the seams vanished.

01

ECC registration

cc 0.948–0.988 · ≤ 1.07 px · Lanczos4

02

Colour-drift matching

Frequency-domain σ = 48 low-frequency lock

03

Single resample

76.2 DPI ground · 11,201 × 11,887 px

04

Sky-masked sharpening

Unsharp mask + anti-banding grain (σ = 2.62)

Inspect the press file — move pointer or touch to magnify

Final 147 by 156 inch golden-hour hoarding board ready for 1:1 inspection

1:1 at 100 DPI press crops

1:1 press crop of SILK tower crowns and balcony mullions
Tower crowns & mullions1:1 @ 100 DPI
1:1 press crop of curved glazed atrium, palm fronds and vertical podium louvers
Curved atrium & louvers1:1 @ 100 DPI
1:1 press crop of Buthgamuwa Road bridge on piers over the canal
Buthgamuwa Rd bridge1:1 @ 100 DPI

05 / Mechanical pre-press

Nothing goes to press unchecked.

render.py --audit round-14 (1rem = 1mm Playwright exporter)
✓Trim box (PDF)3733.8 × 3962.4 mm (147″ × 156″)  |  2743.2 × 1828.8 mm (108″ × 72″)
✓Screen-vs-print drift0.41 mm  |  0.85 mm  (limit < 1.5 mm)
✓Headline / Hotline WCAG10.60 / 17.37  |  13.60 / 15.64
✓1/8-scale hotline strength0.98  |  1.00
✓Sky anti-banding sigma2.62  |  2.61  (floor ≥ 1.5)
✓Rasterised type / vectors0  (all type, rules & SVG clips true vector)
✓Final press deliverables53.6 MB PDF + 53.8 MB JPG  |  19.2 MB PDF + 18.6 MB JPG

06 / Why it’s unusual

Five disciplines, one script.

GIS cartography WebGL camera projection Tiled generative imaging Computer vision Browser-driven print physics

A reproducible Python/HTML/CSS build where every bridge, shoreline, balcony slab, millimetre margin and contrast ratio is computed and verified before press.

07 / Beyond the hoardings

Also built on this pipeline

Seven printed 600 by 1600 mm SILK Residencies exhibition banners
Exhibition print

7 printed 600 × 1600 mm X-banners

True vector PDFs + 3600 × 9600 px plates with clamp-band margin checks.

Stage LED referral
7.2 × 2.7 m
4608 × 1728 px

Singapore salon main LED wall, speaker sidebars & lobby guidance screens with sha256 manifest checks.

Print as code
html { font-size: 3px; } /* screen */ @page { size: 600mm 1600mm; margin: 0; } @media print { html { font-size: 3.779527559px; } }

Deep dive

Engineering notes

01Why blowing up a 1 MP render to 4 metres breaks everything

When Baili selected two SILK social boards (3-horizon-golden and 4b-elevation-night) for 12.25 × 13 ft (147″ × 156″) and 9 × 6 ft (108″ × 72″) roadside hoardings, two physical limits collided: native resolution was 8.99 DPI (an 11× linear enlargement to 100 DPI, where Real-ESRGAN invented wavy balconies and melted mullions), and blind outpainting fabricated fake oceans and 400-metre highway causeways over real Rajagiriya and Kotte land.

02Exact camera intrinsics inside a 3D OSM town

The project maintains a 3D WebGL2 town model (drone-scene-bridged.bin, 1,320,831 vertices) around 6.909389° N, 79.902333° E: OpenStreetMap waterbodies, canals, marshes, roads and lifted bridge decks on piers, 10,370 OSM + 19,117 Microsoft building footprints, and the digitised 6-tower SILK massing (T1–T3 at 38–40 storeys, T4–T6 at 22–24 storeys, central podium garden & pool, single curved glazed entrance atrium).

Computing the exact shifted-lens camera projection matrix (eye, R, fx, cx, cy) kept SILK pixel-locked to silk_box_mm and placed every visible bridge span and distant Parliament (3,603 m) before generating both scenes cleanly on the first attempt.

0323-tile super-resolution, ECC stitching & single-resample physics
  • Golden (15 tiles): 6 overlapping hero tiles raised SILK from 23.0 → 37–39 DPI native; 9 surroundings tiles raised canals, bridges and roofs from 17.0 → 27.3 DPI. Zero tiles wasted on open sky.
  • Night (8 tiles): 2 stacked wide hero tiles hit 41.4 DPI native across all six towers with zero vertical seam through the facades; 6 right-side surroundings tiles hit 37.1 DPI.
  • Stitching: OpenCV cv2.findTransformECC affine registration warped with cv2.INTER_LANCZOS4 (cc = 0.9484–0.9882, max shift ≤ 1.07 px, scale drift ≤ 0.16%), followed by frequency-domain colour-drift matching (GaussianBlur(sigma=48)), direct-to-ground single-resample compositing at 76.2 DPI (11,201 × 11,887 px and 8,230 × 5,486 px), sky-masked unsharp masking, and print-pitch anti-banding grain.
04Mechanical pre-press verification table
Metric2-golden-147x1563b-night-108x72-split
Trim size (PDF box)3733.8 × 3962.4 mm2743.2 × 1828.8 mm
Embedded ground raster11,201 × 11,887 px (76.2 DPI)8,230 × 5,486 px (76.2 DPI)
Screen-vs-print drift0.41 mm (< 1.5 mm)0.85 mm (< 1.5 mm)
Wordmark optical error-0.10 / +0.07 mm-0.25 / -0.13 mm
Headline / Hotline WCAG10.60 / 17.3713.60 / 15.64
1/8-scale hotline strength0.981.00
Sky anti-banding sigma2.62 (≥ 1.5)2.61 (≥ 1.5)
Rasterised images00
Press deliverables53.6 MB PDF + 53.8 MB JPG19.2 MB PDF + 18.6 MB JPG
05Every board is diffable code — 1rem = 1mm & audit gates

There is no InDesign file, no Illustrator document and no binary artwork to lose or mis-drag. Every board, spread and stage frame is HTML and CSS under version control. Screen proofs and vector press PDFs share one layout by changing a single root value inside @media print.

Before export, the audit walks text nodes with Range.getClientRects() to enforce 48 mm side margins, 32 mm X-stand clamp bands, 86–97% headline column fill, pHYs physical DPI chunks on PNG plates, and true vector glyph streams inside every PDF.

AI-assisted, human-accountable. AI tools contributed significantly to the implementation described here. The specification, the review of every change, the production operation and the accountability are mine.

Next case study

Invitrack — zero-float finance