← Commit history

Initial commit: app/orbital-lab

John Lauer ·9663064aa5 ·
2 files changed +112
README.mdadded+61
@@ -0,0 +1,61 @@+# Orbital Lab++The Adom logomark is a hydrogen 2p orbital.++    psi = (2p_x + 2p_y) / sqrt(2)++A 2p orbital pointing along the [110] diagonal is not "p_z rotated": it is an equal+superposition of 2p_x and 2p_y, and its angular surface, cut to the mark's quadrants+and measured against the real logo vectors, matches the brandmark at 99.3% IoU.+This page is the working proof.++<img src="screenshots/final-anim-hold.png" width="760" alt="The 3D orbital held on the brandmark at the epoch">++<img src="screenshots/lab-logo-cheat.png" width="760" alt="The alignment tab measuring the orbital against the real logo vectors">++## What is on this page++- **Overview (this page)**: the live lab. Four tabs: Explore (all 16 real spherical+  harmonics through l = 3 as live gain sliders over an evolving superposition),+  Logo cheat (align the orbital against the real logo vectors and measure the fit),+  Final anim, and Loop (the directed cut: teal intro, play, dinner call, cheat,+  sit, back out, a fresh roll every pass). Scroll below the lab for the loader docs.+- **loader.html**: the animation as ONE dependency-free file for webview load screens.+- **orbital-lab.html**: the full standalone app (CDN Babylon).+- **assets/**: the logomark vectors and the 128-sample measured edge profile.+- **tools/**: the generators. `build-readme.py` produces readme.html for the wiki+  sandbox, `build-loader.py` distills loader.html from the lab (the GLSL is extracted+  verbatim so there is one source of truth), `orbitals.py` solves the analytic+  hydrogen states the whole thing is built on.++## Use it as a webview loader++`loader.html` is raw WebGL: no Babylon, no CDN, no fonts, no fetch, roughly 20 KB,+boots instantly. 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">+    </iframe>+    <!-- when your app is ready, fade the iframe out and remove it -->++It sizes to the limiting axis of any container and never repeats: a fresh random+state is rolled at every epoch.++| param | default | meaning |+|---|---|---|+| pt | 4.5 | playground seconds of free evolution between epochs |+| dt | 3 | seconds to steer onto the mark, and back out |+| ct | 0.3 | seconds before the epoch the outline cheat fades in |+| st | 0 | seconds the mark is held dead still |+| logo | 100 | peak opacity of the flat teal mark, in percent |+| llead | 1 | seconds the logo fade starts before the sit and ends after it |+| tlead | 1.5 | seconds before the epoch the dark lobe fades to teal |+| ov | 1 | 0 makes the cheat its own act after the steer |+| intro | 1 | 0 skips the teal logo intro |++## Rebuilding++    python3 tools/build-loader.py   # loader.html from orbital-lab.html+    python3 tools/build-readme.py   # readme.html for the wiki sandbox++Note: the wiki page renders readme.html, so page-visible edits go there, not here.
page.jsonadded+51
@@ -0,0 +1,51 @@+{+  "slug": "orbital-lab",+  "title": "Orbital Lab",+  "type": "app",+  "version": "1.0.0",+  "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",+    "physics",+    "babylon",+    "webgl",+    "animation",+    "loader"+  ],+  "dependencies": {},+  "discovery_triggers": [+    "why is the adom logo an orbital",+    "adom logo physics",+    "orbital lab",+    "show the orbital lab",+    "webview load animation",+    "adom loader animation",+    "hydrogen orbital demo"+  ],+  "discovery_pitch": "Open when someone asks about the physics behind the Adom logomark, wants the live orbital demo, or needs the standalone loader animation for a webview load screen.",+  "sample_prompts": [+    {+      "label": "The lore",+      "prompt": "why is the adom logo a hydrogen orbital?"+    },+    {+      "label": "The loader",+      "prompt": "give my webview the adom loading animation"+    }+  ],+  "metadata": {},+  "scripts": {+    "install": "./install.sh",+    "uninstall": "./uninstall.sh"+  },+  "hero": {+    "type": "image",+    "path": "docs/hero.png"+  },+  "visibility": "public",+  "org": "adom",+  "author": {+    "name": "John Lauer",+    "email": "[email protected]"+  }+}\ No newline at end of file