
White model projection (data as light)
@opus-motion-library/white-model-projection
A white massing model of a city on a dark plinth in a dark room. House lights snap off, a projector strikes with a flicker and a warm wash spreads from its axis lighting one set of buildings amber; a second layer pops buildings on one by one with a white flash, a rising level of light colours every facade by height, and a final pick-out lights one tower alone. The model never changes, only the light.
安裝
node cli/mgl.mjs add white-model-projection --to <your-project>/src適用情境
- 適合
- Data-as-light hero for urban planning, real-estate portfolios ("our sites by year"), campus plans, flood/height studies, infra and B2B brands; any "data on a physical model" museum-style piece.
規格
- 長度
- 330f · 11s
- 長度類型
- 固定長度
- FPS
- 30
- 風格
- hud, night
- 授權
- MIT
Props(13)
backgroundarray= ["#080A0E","#1F2129","#3B393F"][centre, mid, edge] room colours
plinthstring= "#17181A"plinth top colour
waterstring= "#1A2129"river inlay colour
seednumber= 4city seed (procedural massing model)
layersarray= [{"mode":"wash","at":38,"dur":70,"select":"year<1925","color":"#ffb347","spread":40},{"mode":"grow","at":125,"dur":0,…[{mode:'wash'|'grow'|'level'|'pick', at(frame), dur, select('all'|'tower'|'block'|'tallest'|'year<1940'|'h>1.5'|'rank<0.5'), color, ramp(level colours), spread(frames)}]
cameraarray= [[0,205,40,19],[330,238,34,16.5]][[frame, azimuthDeg, elevationDeg, distance]] orbit keys
lightsOutAtnumber= 16frame the house lights snap off
strikeAtnumber= 30frame the projector strikes (flicker)
lightsUpAtnumber= 312frame the house lights come back and the data ends
readoutsarray= [{"from":40,"to":118,"name":"01 · Before 1925","figure":"","label":"the oldest blocks, lit first"},{"from":128,"to":1…[{from,to,name,figure,label}] left-third readout; empty figure = count of buildings in the matching layer (replace with your numbers)
showReadoutboolean= trueshow the readout block
zoomnumber= 0.95model size in frame
bloomnumber= 0.55glow of lit buildings 0..1