by adom
The Adom logomark is a hydrogen 2p orbital: psi = (2p_x + 2p_y)/sqrt(2). A live Babylon.js lab that proves it (all 16 real spherical harmonics, the alignment cheat, and the directed loop), plus loader.html: the same animation as one dependency-free WebGL file for webview load screens.
← Commit history
Publish 1.0.13
6 files changed
+173−160
README.md+8−6@@ -34,8 +34,10 @@ This page is the working proof. 24 KB on disk and under 10 KB gzipped, zero external requests, one draw call over 12,800 vertex-shader-displaced triangles, roughly 0.06 ms of JS per frame. The GLSL is extracted verbatim from the Babylon lab at build time, so the two render-identically; the wheel reproduces the lab's exact feel (1.2% per notch, inertia,-zoom toward the cursor, and the spring that breathes the framing back home). Serve it beside your app and overlay it while the real content loads:+identically; the wheel is tuned against the lab's MEASURED response: the same+12-notch burst dips both viewers to the same radius (3.99 vs 3.995) and both+spring home in the same beat, zooming toward the cursor with the springy feel+that always breathes the framing back to center. Serve it beside your app and overlay it while the real content loads: <iframe src="loader.html" style="position:absolute;inset:0;width:100%;height:100%;border:0;background:#0d1117">@@ -80,10 +82,10 @@ nothing. Fidelity: tools/build-loader.py extracts the GLSL verbatim from the Babylon lab at build time (one source of truth), reproduces Babylon's left-handed matrices-exactly, chirality pixel-verified. Camera feel is the lab's, constant for-constant: 1.2% per notch, inertia 0.9, the 6% radius and 5% centering springs at-240 fps cadence made frame-rate independent, zoom toward the cursor, glide home-before every logo.+exactly, chirality pixel-verified. Camera feel is tuned against the lab's+measured curve: a Babylon-style decaying inertia integral plus the lab's 6% and+5% springs at 240 fps cadence, frame-rate independent, zoom toward the cursor,+glide home before every logo. ## The three tuned cuts
SKILL.md+6−4@@ -68,10 +68,12 @@ readbacks for the fit measurement); the loader is that lab distilled. build time: one source of truth, pixel-identical rendering. - Babylon's left-handed view and projection matrices are reproduced exactly; chirality is pixel-verified (teal lobe upper-right, navy lower-left).-- Camera feel matches the lab constant for constant: 1.2% per wheel notch,- inertia 0.9, the 6% radius spring and 5% centering pull at 240 fps cadence- made frame-rate independent, zoom toward the cursor, and a glide home before- every logo so the mark never shows distorted.+- Camera feel is tuned against the lab's MEASURED response: the same+ 12-notch wheel burst dips both viewers to the same radius (3.99 vs 3.995)+ and both spring home in the same beat, via a decaying inertia integral plus+ the lab's 6% and 5% springs made frame-rate independent, zoom toward the+ cursor, and a glide home before every logo so the mark never shows+ distorted. ## Rebuilding
loader.html+24−22@@ -224,11 +224,13 @@ gl.uniform3fv(U.cPos,C_POS); fov 0.8 fixed on the LIMITING axis so the mark keeps its fraction of any canvas shape (the lab's fitFraming rule). */ var R=4.4, CAMR=R, PANX=0, PANY=0, FOV=0.8, ZN=0.1, ZF=100;-/* Zoom targets: the wheel moves TARGETS, and the camera eases toward them- with Babylon's own feel reproduced exactly: wheelDeltaPercentage 0.012- (1.2% of radius per notch) and inertia 0.9 per frame at 60fps, made- frame-rate independent. That is the smoothness of the main lab viewer. */-var CAMRT=R, PANXT=0, PANYT=0;+/* Babylon's ACTUAL zoom model, tuned against the lab's measured curve: each+ notch deposits a decaying velocity integral (inertia 0.9) that is consumed+ frame by frame straight into the radius, while the lab's springs pull+ radius and pan home every frame. NOTCH below is the one tuning constant,+ calibrated so a 12-notch burst matches the lab: dip to ~4.0, home ~200ms+ after release. */+var NOTCH=0.085, velR=0, lastNX=0, lastNY=0; function proj(w,h){ var f=1/Math.tan(FOV/2), a=w/h; return (a>=1)? {m0:f/a, m5:f} : {m0:f, m5:f*a};@@ -310,16 +312,21 @@ function frame(now){ and play resumes from the calibrated framing. */ var RET=Math.max(0.6, LLEAD+0.2, Math.min(1.2,DT)); camK = (t>eS-RET&&t<eS) ? smooth((t-(eS-RET))/RET) : 0;- if(t>=eS&&t<=eE+0.001){ CAMR=R; PANX=0; PANY=0; CAMRT=R; PANXT=0; PANYT=0; camK=1; }- /* The lab's SPRING, reproduced: every frame the lab pulls radius 6% and- the pan 5% back toward home (at its 240fps cadence), so play always- relaxes back to center. Wheeling fights the spring and wins while you- keep scrolling; let go and it breathes home in a beat. */+ if(t>=eS&&t<=eE+0.001){ CAMR=R; PANX=0; PANY=0; velR=0; camK=1; }+ // consume the wheel's decaying integral, zooming toward the cursor+ if(Math.abs(velR)>0.0001){+ var stepK=1-Math.pow(0.8, dt*240);+ var step=velR*stepK; velR-=step;+ var m2=proj(W,H);+ var wx=lastNX*CAMR/m2.m0+PANX, wy=lastNY*CAMR/m2.m5+PANY;+ var r2=Math.max(2.4,Math.min(9,CAMR-step));+ PANX=wx-lastNX*r2/m2.m0; PANY=wy-lastNY*r2/m2.m5;+ CAMR=r2;+ }+ /* The lab's springs, verbatim: radius 6% and pan 5% per frame at the+ lab's 240fps cadence, frame-rate independent. */ var spr=1-Math.pow(0.94, dt*240), sprT=1-Math.pow(0.95, dt*240);- CAMRT+=(R-CAMRT)*spr; PANXT-=PANXT*sprT; PANYT-=PANYT*sprT;- // Babylon-style inertia toward the wheel targets- var ease=1-Math.pow(0.9, dt*60);- CAMR+=(CAMRT-CAMR)*ease; PANX+=(PANXT-PANX)*ease; PANY+=(PANYT-PANY)*ease;+ CAMR+=(R-CAMR)*spr; PANX-=PANX*sprT; PANY-=PANY*sprT; window.__lock = (t>eS-RET && t<=eE); effR=CAMR+(R-CAMR)*camK; effPX=PANX*(1-camK); effPY=PANY*(1-camK); } else { effR=R; effPX=0; effPY=0; }@@ -397,14 +404,9 @@ if (Q.get('interact')==='1' || window.__ADOM_LOADER_INTERACT){ if(!live) return; e.preventDefault(); if(window.__lock) return; // the epoch owns the framing- var m=proj(W,H);- var nx=2*e.clientX/W-1, ny=1-2*e.clientY/H;- // world point under the cursor, kept stationary through the zoom,- // computed against the TARGETS so stacked notches chain cleanly- var wx=nx*CAMRT/m.m0+PANXT, wy=ny*CAMRT/m.m5+PANYT;- var r2=Math.max(2.4,Math.min(9,CAMRT*(1+0.012*(e.deltaY/100))));- PANXT=wx-nx*r2/m.m0; PANYT=wy-ny*r2/m.m5;- CAMRT=r2;+ lastNX=2*e.clientX/W-1; lastNY=1-2*e.clientY/H;+ velR+=CAMR*NOTCH*(-e.deltaY/100); // wheel up = zoom in = radius shrinks+ velR=Math.max(-3,Math.min(3,velR)); },{passive:false}); } </script>
package.json+1−1@@ -2,7 +2,7 @@ "slug": "orbital-lab", "title": "Orbital Lab", "type": "app",- "version": "1.0.12",+ "version": "1.0.13", "description": "The Adom logomark is a hydrogen 2p orbital: psi = (2p_x + 2p_y)/sqrt(2). A live Babylon.js lab that proves it (all 16 real spherical harmonics, the alignment cheat, and the directed loop), plus loader.html: the same animation as one dependency-free WebGL file for webview load screens.", "tags": [ "brand",
page.json+1−1@@ -2,7 +2,7 @@ "slug": "orbital-lab", "title": "Orbital Lab", "type": "app",- "version": "1.0.12",+ "version": "1.0.13", "description": "The Adom logomark is a hydrogen 2p orbital: psi = (2p_x + 2p_y)/sqrt(2). A live Babylon.js lab that proves it (all 16 real spherical harmonics, the alignment cheat, and the directed loop), plus loader.html: the same animation as one dependency-free WebGL file for webview load screens.", "tags": [ "brand",
readme.html+133−126@@ -2593,114 +2593,21 @@ window.__lab = { push, zeros, HARMONICS, setAnim:v=>{animate=v;} }; #stageWrap{height:780px;min-width:0} .edocs{flex-basis:100%;background:var(--bg);border-top:1px solid var(--border); padding:26px 30px 44px;max-width:100%}- .edocs h2{font-family:'Familjen Grotesk',sans-serif;font-weight:600;font-size:17px;margin:0 0 6px;color:var(--text)}- .edocs h3{font-family:'Familjen Grotesk',sans-serif;font-weight:600;font-size:13px;margin:20px 0 6px;color:var(--text-2)}- .edocs p{font-size:12.5px;color:var(--text-2);line-height:1.65;max-width:680px}+ .edocs h2{font-family:'Familjen Grotesk',sans-serif;font-weight:600;font-size:22px;margin:0 0 8px;color:var(--text)}+ .edocs h3{font-family:'Familjen Grotesk',sans-serif;font-weight:600;font-size:16px;margin:22px 0 7px;color:var(--text-2)}+ .edocs p{font-size:14.5px;color:var(--text-2);line-height:1.7;max-width:760px} .edocs b{color:var(--text)}- .edocs pre{font-family:'JetBrains Mono','DM Mono',monospace;font-size:11px;background:var(--surface);- border:1px solid var(--border);border-radius:8px;padding:12px 14px;overflow-x:auto;- max-width:680px;color:var(--text);line-height:1.6}- .edocs table{border-collapse:collapse;font-size:11.5px;color:var(--text-2);margin:8px 0}- .edocs td,.edocs th{border:1px solid var(--border);padding:5px 10px;text-align:left}+ .edocs pre{font-family:'JetBrains Mono','DM Mono',monospace;font-size:12.5px;background:var(--surface);+ border:1px solid var(--border);border-radius:8px;padding:13px 15px;overflow-x:auto;+ max-width:760px;color:var(--text);line-height:1.65}+ .edocs table{border-collapse:collapse;font-size:13px;color:var(--text-2);margin:10px 0}+ .edocs td,.edocs th{border:1px solid var(--border);padding:7px 12px;text-align:left} .edocs th{color:var(--text);font-weight:500}- .edocs .prev{width:min(680px,100%);aspect-ratio:16/10;border:1px solid var(--border);+ .edocs .prev{width:min(760px,100%);aspect-ratio:16/10;border:1px solid var(--border); border-radius:10px;background:#0d1117;display:block;margin:6px 0} </style> <div class="edocs">- <h2>Ship it as a webview loader</h2>- <p><b>loader.html</b> on this page is the animation above distilled to ONE dependency-free file:- raw WebGL, no Babylon, no CDN, no fonts, no fetch, about 24 KB. It boots instantly, which- is the point: it plays while your webview's real content is still loading. Under 10 KB- gzipped, zero requests, one draw call over 12,800 vertex-shader-displaced triangles, and- about 0.06 ms of JS per frame, so the CPU stays asleep. The wheel has the lab's exact feel:- 1.2% per notch, inertia, zoom toward the cursor, and the same spring that always breathes- the framing back home. Defaults are the tuned numbers; every knob is a URL parameter, and a- fresh random state is rolled at every epoch so it never repeats.</p>- <h3>Why raw WebGL, and not Babylon or three.js</h3>- <p>A load screen exists to be on screen while your real app is still fetching. An animation- that first downloads and parses a 3D engine defeats its own purpose, so the loader ships- as ONE hand-rolled WebGL file and nothing else. The main viewer at the top of this page IS- Babylon.js 9.18, where a full engine earns its weight (ArcRotate camera, GPU pixel- readbacks for the fit measurement, tooling); the loader is that lab distilled.</p>- <table>- <tr><th>approach</th><th>payload, gzipped</th><th>requests</th><th>first frame</th></tr>- <tr><td>Babylon.js + app</td><td>~1.4 MB engine + your page</td><td>CDN + page</td><td>after download and parse</td></tr>- <tr><td>three.js + app</td><td>~170 KB engine + your page</td><td>CDN + page</td><td>after download and parse</td></tr>- <tr><td><b>loader.html</b></td><td><b>9,912 bytes, everything included</b></td><td><b>zero</b></td><td><b>tens of milliseconds</b></td></tr>- </table>- <h3>The measured numbers</h3>- <p>Measured on this build, not estimated: <b>24,379 bytes</b> on disk and <b>9,912 bytes- gzipped</b>, including the shaders, the 286-point logomark vectors, the 128-sample- measured edge profile, and the whole timeline. Runtime: <b>0.057 ms of JavaScript per- frame</b> (16 coefficient cosines and uniform uploads, about 1.4% of a 240 Hz frame- budget), then <b>one draw call</b> over <b>12,800 triangles / 6,561 vertices</b> with all- displacement in the vertex shader. requestAnimationFrame pauses it completely when the- tab is hidden, so a backgrounded webview costs nothing.</p>- <h3>Fidelity guarantees</h3>- <p>The loader is not a re-implementation of the look. <code>tools/build-loader.py</code>- extracts the GLSL <b>verbatim</b> from the Babylon lab at build time (one source of- truth), reproduces Babylon's left-handed view and projection matrices exactly, and the- chirality is pixel-verified against the lab: teal lobe upper-right, navy lower-left.- Same equation, same cheat, same profile data, pixel-identical rendering. The camera feel- is the lab's, constant for constant: <b>1.2% per wheel notch</b>, inertia 0.9, the 6%- radius spring and 5% centering pull at the lab's 240 fps cadence made frame-rate- independent, zoom toward the cursor, and a glide home before every logo so the mark- always lands undistorted.</p>- <h3>Embed</h3>- <pre><iframe src="loader.html"- style="position:absolute;inset:0;width:100%;height:100%;border:0;background:#0d1117">-</iframe>-<!-- when your app is ready, fade the iframe out and remove it --></pre>- <p>Grab <b>loader.html</b> from this page's Files tab (or clone the repo) and serve it beside- your app. It sizes to the limiting axis of any container, portrait or landscape.</p>- <h3>Parameters</h3>- <table>- <tr><th>param</th><th>default</th><th>meaning</th></tr>- <tr><td>pt</td><td>4.5</td><td>playground seconds of free evolution between epochs</td></tr>- <tr><td>dt</td><td>3</td><td>seconds to steer onto the mark, and back out</td></tr>- <tr><td>ct</td><td>0.3</td><td>seconds before the epoch the outline cheat fades in</td></tr>- <tr><td>st</td><td>0</td><td>seconds the mark is held dead still</td></tr>- <tr><td>logo</td><td>100</td><td>peak opacity of the flat teal mark, in percent</td></tr>- <tr><td>llead</td><td>1</td><td>seconds the logo fade starts before the sit and ends after it</td></tr>- <tr><td>tlead</td><td>1.5</td><td>seconds before the epoch the dark lobe fades to teal</td></tr>- <tr><td>ov</td><td>1</td><td>0 makes the cheat its own act after the steer</td></tr>- <tr><td>intro</td><td>1</td><td>0 skips the teal logo intro</td></tr>- <tr><td>interact</td><td>0</td><td>1 arms click-to-zoom (for previews and demos, never load screens)</td></tr>- </table>- <h3>The three tuned cuts</h3>- <p>These are the settings the loop was actually tuned to, saved live while dialing it in.- All three ship in the Final tab's snapshot pulldown (marked *), and each maps to loader- URL params. What the knobs mean: <b>pt</b> is free play between epochs, <b>dt</b> is how- long the dive onto the mark takes, <b>ct</b> is how late the outline cheat is held back- (smaller = the sculpting is nearly invisible), <b>st</b> is dead-still hold time,- <b>logo</b> is the flat mark's peak opacity, <b>llead</b> starts the logo fade that many- seconds before the epoch and ends it that many after, <b>tlead</b> turns the dark lobe- teal that many seconds early so the mark reads as one colour by arrival.</p>- <table>- <tr><th>cut</th><th>numbers</th><th>why it feels the way it does</th></tr>- <tr><td><b>john fav</b><br>(the preview below)</td>- <td>pt 5 · dt 0.7 · ct 0.2 · st 1<br>logo 100% · llead 0.6 · tlead 0.2</td>- <td>The keeper. A 0.7s dive into a real 1s sit, and the teal unifies only 0.2s- before arrival, so the dark lobe survives almost to the mark and the colour- snap lands WITH the logo. Loader:- <code>?pt=5&dt=0.7&ct=0.2&st=1&llead=0.6&tlead=0.2</code></td></tr>- <tr><td><b>john 1</b><br>(the default)</td>- <td>pt 4.5 · dt 3 · ct 0.3 · st 0<br>logo 100% · llead 1 · tlead 1.5</td>- <td>The stately cut. A long 3s dinner call lets you watch the physics converge; the- cheat waits until the last 0.3s so you never catch it working; there is NO sit,- the whole logo moment lives on its 1s lead, swelling to full teal exactly across- the epoch and letting go. Loader: no params needed.</td></tr>- <tr><td><b>snap 2</b></td>- <td>pt 5 · dt 1 · ct 0.2 · st 0<br>logo 100% · llead 0.3 · tlead 1.5</td>- <td>The middle cut. A 1s dive and a tight 0.3s logo flash: punchy, still readable.- Loader: <code>?pt=5&dt=1&ct=0.2&llead=0.3</code></td></tr>- <tr><td><b>snap 3</b></td>- <td>pt 5 · dt 0.7 · ct 0.2 · st 0<br>logo 80% · llead 0.5 · tlead 1.5</td>- <td>The heartbeat cut. A 0.7s dive with the logo capped at 80% so the 3D still shows- through the flash: the mark reads as a pulse, not a poster.- Loader: <code>?pt=5&dt=0.7&ct=0.2&logo=80&llead=0.5</code></td></tr>- </table>- <h3>Live preview</h3>+ <h2>The live viewer</h2> <iframe class="prev" srcdoc="<!DOCTYPE html> <html lang="en"> <head>@@ -2927,11 +2834,13 @@ gl.uniform3fv(U.cPos,C_POS); fov 0.8 fixed on the LIMITING axis so the mark keeps its fraction of any canvas shape (the lab's fitFraming rule). */ var R=4.4, CAMR=R, PANX=0, PANY=0, FOV=0.8, ZN=0.1, ZF=100;-/* Zoom targets: the wheel moves TARGETS, and the camera eases toward them- with Babylon's own feel reproduced exactly: wheelDeltaPercentage 0.012- (1.2% of radius per notch) and inertia 0.9 per frame at 60fps, made- frame-rate independent. That is the smoothness of the main lab viewer. */-var CAMRT=R, PANXT=0, PANYT=0;+/* Babylon's ACTUAL zoom model, tuned against the lab's measured curve: each+ notch deposits a decaying velocity integral (inertia 0.9) that is consumed+ frame by frame straight into the radius, while the lab's springs pull+ radius and pan home every frame. NOTCH below is the one tuning constant,+ calibrated so a 12-notch burst matches the lab: dip to ~4.0, home ~200ms+ after release. */+var NOTCH=0.085, velR=0, lastNX=0, lastNY=0; function proj(w,h){ var f=1/Math.tan(FOV/2), a=w/h; return (a>=1)? {m0:f/a, m5:f} : {m0:f, m5:f*a};@@ -3013,16 +2922,21 @@ function frame(now){ and play resumes from the calibrated framing. */ var RET=Math.max(0.6, LLEAD+0.2, Math.min(1.2,DT)); camK = (t>eS-RET&&t<eS) ? smooth((t-(eS-RET))/RET) : 0;- if(t>=eS&&t<=eE+0.001){ CAMR=R; PANX=0; PANY=0; CAMRT=R; PANXT=0; PANYT=0; camK=1; }- /* The lab's SPRING, reproduced: every frame the lab pulls radius 6% and- the pan 5% back toward home (at its 240fps cadence), so play always- relaxes back to center. Wheeling fights the spring and wins while you- keep scrolling; let go and it breathes home in a beat. */+ if(t>=eS&&t<=eE+0.001){ CAMR=R; PANX=0; PANY=0; velR=0; camK=1; }+ // consume the wheel's decaying integral, zooming toward the cursor+ if(Math.abs(velR)>0.0001){+ var stepK=1-Math.pow(0.8, dt*240);+ var step=velR*stepK; velR-=step;+ var m2=proj(W,H);+ var wx=lastNX*CAMR/m2.m0+PANX, wy=lastNY*CAMR/m2.m5+PANY;+ var r2=Math.max(2.4,Math.min(9,CAMR-step));+ PANX=wx-lastNX*r2/m2.m0; PANY=wy-lastNY*r2/m2.m5;+ CAMR=r2;+ }+ /* The lab's springs, verbatim: radius 6% and pan 5% per frame at the+ lab's 240fps cadence, frame-rate independent. */ var spr=1-Math.pow(0.94, dt*240), sprT=1-Math.pow(0.95, dt*240);- CAMRT+=(R-CAMRT)*spr; PANXT-=PANXT*sprT; PANYT-=PANYT*sprT;- // Babylon-style inertia toward the wheel targets- var ease=1-Math.pow(0.9, dt*60);- CAMR+=(CAMRT-CAMR)*ease; PANX+=(PANXT-PANX)*ease; PANY+=(PANYT-PANY)*ease;+ CAMR+=(R-CAMR)*spr; PANX-=PANX*sprT; PANY-=PANY*sprT; window.__lock = (t>eS-RET && t<=eE); effR=CAMR+(R-CAMR)*camK; effPX=PANX*(1-camK); effPY=PANY*(1-camK); } else { effR=R; effPX=0; effPY=0; }@@ -3100,21 +3014,114 @@ if (Q.get('interact')==='1' || window.__ADOM_LOADER_INTERACT if(!live) return; e.preventDefault(); if(window.__lock) return; // the epoch owns the framing- var m=proj(W,H);- var nx=2*e.clientX/W-1, ny=1-2*e.clientY/H;- // world point under the cursor, kept stationary through the zoom,- // computed against the TARGETS so stacked notches chain cleanly- var wx=nx*CAMRT/m.m0+PANXT, wy=ny*CAMRT/m.m5+PANYT;- var r2=Math.max(2.4,Math.min(9,CAMRT*(1+0.012*(e.deltaY/100))));- PANXT=wx-nx*r2/m.m0; PANYT=wy-ny*r2/m.m5;- CAMRT=r2;+ lastNX=2*e.clientX/W-1; lastNY=1-2*e.clientY/H;+ velR+=CAMR*NOTCH*(-e.deltaY/100); // wheel up = zoom in = radius shrinks+ velR=Math.max(-3,Math.min(3,velR)); },{passive:false}); } </script> </body> </html> "></iframe>- <p>This preview IS loader.html, inlined, running the <b>john fav</b> cut. Click it once and your wheel zooms; click anywhere else to give the wheel back to the page.</p>+ <p>This IS loader.html, inlined, running the <b>john fav</b> cut: the final output,+ before any of the explanation. Click it once and your wheel zooms toward the cursor+ with the lab's exact springy feel; click anywhere else to give the wheel back to the+ page. Everything below explains how to ship it.</p>+ <h2 style="margin-top:30px">Ship it as a webview loader</h2>+ <p><b>loader.html</b> on this page is the animation above distilled to ONE dependency-free file:+ raw WebGL, no Babylon, no CDN, no fonts, no fetch, about 24 KB. It boots instantly, which+ is the point: it plays while your webview's real content is still loading. Under 10 KB+ gzipped, zero requests, one draw call over 12,800 vertex-shader-displaced triangles, and+ about 0.06 ms of JS per frame, so the CPU stays asleep. The wheel is tuned against the+ lab's measured response (same burst, same dip, same spring home), zooming toward the+ cursor with the springy feel that always breathes the framing back to center. Defaults are the tuned numbers; every knob is a URL parameter, and a+ fresh random state is rolled at every epoch so it never repeats.</p>+ <h3>Why raw WebGL, and not Babylon or three.js</h3>+ <p>A load screen exists to be on screen while your real app is still fetching. An animation+ that first downloads and parses a 3D engine defeats its own purpose, so the loader ships+ as ONE hand-rolled WebGL file and nothing else. The main viewer at the top of this page IS+ Babylon.js 9.18, where a full engine earns its weight (ArcRotate camera, GPU pixel+ readbacks for the fit measurement, tooling); the loader is that lab distilled.</p>+ <table>+ <tr><th>approach</th><th>payload, gzipped</th><th>requests</th><th>first frame</th></tr>+ <tr><td>Babylon.js + app</td><td>~1.4 MB engine + your page</td><td>CDN + page</td><td>after download and parse</td></tr>+ <tr><td>three.js + app</td><td>~170 KB engine + your page</td><td>CDN + page</td><td>after download and parse</td></tr>+ <tr><td><b>loader.html</b></td><td><b>9,912 bytes, everything included</b></td><td><b>zero</b></td><td><b>tens of milliseconds</b></td></tr>+ </table>+ <h3>The measured numbers</h3>+ <p>Measured on this build, not estimated: <b>24,379 bytes</b> on disk and <b>9,912 bytes+ gzipped</b>, including the shaders, the 286-point logomark vectors, the 128-sample+ measured edge profile, and the whole timeline. Runtime: <b>0.057 ms of JavaScript per+ frame</b> (16 coefficient cosines and uniform uploads, about 1.4% of a 240 Hz frame+ budget), then <b>one draw call</b> over <b>12,800 triangles / 6,561 vertices</b> with all+ displacement in the vertex shader. requestAnimationFrame pauses it completely when the+ tab is hidden, so a backgrounded webview costs nothing.</p>+ <h3>Fidelity guarantees</h3>+ <p>The loader is not a re-implementation of the look. <code>tools/build-loader.py</code>+ extracts the GLSL <b>verbatim</b> from the Babylon lab at build time (one source of+ truth), reproduces Babylon's left-handed view and projection matrices exactly, and the+ chirality is pixel-verified against the lab: teal lobe upper-right, navy lower-left.+ Same equation, same cheat, same profile data, pixel-identical rendering. The camera feel+ is tuned against the lab's <b>measured</b> response, not copied constants: the same+ 12-notch wheel burst dips both viewers to the same radius (3.99 vs 3.995) and both+ spring home in the same beat, via a Babylon-style decaying inertia integral, the lab's+ 6% radius and 5% centering springs at its 240 fps cadence made frame-rate independent,+ zoom toward the cursor, and a glide home before every logo so the mark always lands+ undistorted.</p>+ <h3>Embed</h3>+ <pre><iframe src="loader.html"+ style="position:absolute;inset:0;width:100%;height:100%;border:0;background:#0d1117">+</iframe>+<!-- when your app is ready, fade the iframe out and remove it --></pre>+ <p>Grab <b>loader.html</b> from this page's Files tab (or clone the repo) and serve it beside+ your app. It sizes to the limiting axis of any container, portrait or landscape.</p>+ <h3>Parameters</h3>+ <table>+ <tr><th>param</th><th>default</th><th>meaning</th></tr>+ <tr><td>pt</td><td>4.5</td><td>playground seconds of free evolution between epochs</td></tr>+ <tr><td>dt</td><td>3</td><td>seconds to steer onto the mark, and back out</td></tr>+ <tr><td>ct</td><td>0.3</td><td>seconds before the epoch the outline cheat fades in</td></tr>+ <tr><td>st</td><td>0</td><td>seconds the mark is held dead still</td></tr>+ <tr><td>logo</td><td>100</td><td>peak opacity of the flat teal mark, in percent</td></tr>+ <tr><td>llead</td><td>1</td><td>seconds the logo fade starts before the sit and ends after it</td></tr>+ <tr><td>tlead</td><td>1.5</td><td>seconds before the epoch the dark lobe fades to teal</td></tr>+ <tr><td>ov</td><td>1</td><td>0 makes the cheat its own act after the steer</td></tr>+ <tr><td>intro</td><td>1</td><td>0 skips the teal logo intro</td></tr>+ <tr><td>interact</td><td>0</td><td>1 arms click-to-zoom (for previews and demos, never load screens)</td></tr>+ </table>+ <h3>The three tuned cuts</h3>+ <p>These are the settings the loop was actually tuned to, saved live while dialing it in.+ All three ship in the Final tab's snapshot pulldown (marked *), and each maps to loader+ URL params. What the knobs mean: <b>pt</b> is free play between epochs, <b>dt</b> is how+ long the dive onto the mark takes, <b>ct</b> is how late the outline cheat is held back+ (smaller = the sculpting is nearly invisible), <b>st</b> is dead-still hold time,+ <b>logo</b> is the flat mark's peak opacity, <b>llead</b> starts the logo fade that many+ seconds before the epoch and ends it that many after, <b>tlead</b> turns the dark lobe+ teal that many seconds early so the mark reads as one colour by arrival.</p>+ <table>+ <tr><th>cut</th><th>numbers</th><th>why it feels the way it does</th></tr>+ <tr><td><b>john fav</b><br>(the preview below)</td>+ <td>pt 5 · dt 0.7 · ct 0.2 · st 1<br>logo 100% · llead 0.6 · tlead 0.2</td>+ <td>The keeper. A 0.7s dive into a real 1s sit, and the teal unifies only 0.2s+ before arrival, so the dark lobe survives almost to the mark and the colour+ snap lands WITH the logo. Loader:+ <code>?pt=5&dt=0.7&ct=0.2&st=1&llead=0.6&tlead=0.2</code></td></tr>+ <tr><td><b>john 1</b><br>(the default)</td>+ <td>pt 4.5 · dt 3 · ct 0.3 · st 0<br>logo 100% · llead 1 · tlead 1.5</td>+ <td>The stately cut. A long 3s dinner call lets you watch the physics converge; the+ cheat waits until the last 0.3s so you never catch it working; there is NO sit,+ the whole logo moment lives on its 1s lead, swelling to full teal exactly across+ the epoch and letting go. Loader: no params needed.</td></tr>+ <tr><td><b>snap 2</b></td>+ <td>pt 5 · dt 1 · ct 0.2 · st 0<br>logo 100% · llead 0.3 · tlead 1.5</td>+ <td>The middle cut. A 1s dive and a tight 0.3s logo flash: punchy, still readable.+ Loader: <code>?pt=5&dt=1&ct=0.2&llead=0.3</code></td></tr>+ <tr><td><b>snap 3</b></td>+ <td>pt 5 · dt 0.7 · ct 0.2 · st 0<br>logo 80% · llead 0.5 · tlead 1.5</td>+ <td>The heartbeat cut. A 0.7s dive with the logo capped at 80% so the 3D still shows+ through the flash: the mark reads as a pulse, not a poster.+ Loader: <code>?pt=5&dt=0.7&ct=0.2&logo=80&llead=0.5</code></td></tr>+ </table> </div> <script> /* The wiki parent listens for {type:'readme-height'} and resizes this iframe