AWESOME-OS ENGINEERING BLOG
Field Report #24: The B8G Holonomic 3D Reality Engine — Real-GPU WebGL2 PBR, Soft Shadows, 3D Collision & Vehicle Physics, .asog 4DGS, and Mathematical Safe Gates
Field Report #24: The B8G Holonomic 3D Reality Engine & Sovereign Platform Milestone
Date: 2026-11-21
Verified Baseline: fd7e9165 on e:\awesome-os main (i5-13600KF, 31.78 GB RAM, Node v26.11.1, Zig 0.14.1)
1. The Complete Scriptable 3D Reality Engine (sections/b8g-game-engine/)
We closed the gap between low-level bare-metal primitives and a real, scriptable 3D reality engine—with zero Three.js, zero Unity/Unreal royalties, zero external npm dependencies, and 100% Zero Ambient Authority (B8G012/B8G013 clean):
| Subsystem | Module | Real-Silicon Verified Result |
|---|---|---|
Predictive World Streaming & O(1) Purge |
world-streaming.mts |
64+ sectors / 10,000 entities in 0.074 ms (13,469 Hz); 81 sectors (1,301.1 KB) zeroed & recycled in 0.200 ms (2.46 µs/sector). |
| 3D Collision Physics & 4-Wheel Vehicle | collision-physics.mts |
Spatial-hash O(N) broadphase + Sphere/AABB/Heightfield narrowphase + Gauss-Seidel sequential impulse + S³ rotational torque + Hooke spring-damper RaycastVehicle: 250 dynamic bodies + 1 active vehicle @ 60 Hz in 0.933 ms/frame (8,360 contacts, max_quat_err = 4.44e-16). |
Scriptable B8gWorld + O(Δ) Multiplayer |
b8g-world.mts |
Unified world.spawn(...) + zero-state-loss world.hotSwapScript(...) + binary O(Δ) delta replication (98.9% bandwidth reduction on 500 entities with 5 moving). |
| 3D Spatial Audio & Physical Doppler | spatial-audio.mts |
Inverse-distance rolloff, stereo/HRTF azimuth & elevation, exact Doppler pitch shift (c = 343 m/s), zero-GC 256-emitter batching via capability-injected SpatialAudioHostPort. |
CC0 .glb → .b8p CAS Asset Pipeline |
asset-pipeline.mts, glb-ingestor.mts, .\bin\b8g-asset-ingest |
Deduplicates shared Kenney/Quaternius/KayKit/Poly Haven/Khronos textures & meshes (91.52% dedup on 50 shared-palette .glb assets: 869.3 KB → 73.8 KB) with fail-fast Total Asset Closure (R ⊆ M). |
| Zero-Header Native C11 ABI | b8g_game_engine_abi.h |
<stddef.h> + <stdint.h> only, B8G-ABI v3 prefix-compatible (offsetof(v3, v2) == 0, 6 _Static_asserts), compiles with zig cc -std=c11 -O2 -Wall -Wextra -Werror (0 warnings). |
4D Gaussian Splatting (.asog / TRiGS) |
sections/asog-4dgs/ |
SOG v2 + 17-value TRiGS SE(3) lifespan motion + WGSL compute culler: 100k splats in 7.10 MB (1,903× smaller than 600f raw PLY), 72% culled in 1.92 ms before sort. |
Combined Verification: 22/22 engine tests PASS in 779.7 ms + 6/6 asog-4dgs tests PASS.
2. Live Real-GPU WebGL2 PBR + Soft Shadows + Live Scripting on b8g.app
We separated the consumer & creator experience onto b8g.app (/b8g-app/ in local preview) with zero technical jargon on the surface and real GPU rendering underneath:
- 3D Reality Sandbox (
/b8g-app/games/reality-sandbox.html): Pure WebGL2 GLSL 300 es 2-pass renderer (1024×1024directional depth shadow map +3×3PCF soft shadows, Cook-Torrance GGX PBR + normal maps + ACES filmic tone mapping + 64-joint skeletal skinning) rendering realDamagedHelmet.glb, rigged animatedCesiumMan.glb, and riggedFox.glb, paired with live 3D rigid-body collisions, 3D Web Audio impacts, and an in-browser live script editor (spawnBall(),spawnCrate(),setGravity(),onTick(dt)). - Real GPU PBR 3D Studio (
/b8g-app/games/pbr-studio.html): Drag-and-drop any.glbdirectly onto your GPU with Studio / Sunset / Cyberpunk lighting. - Kids 3D World Composer (
/b8g-app/games/world-composer.html) & Holonomic Coast Open-World Runner (/b8g-app/games/holonomic-world.html) with toggleable Engine X-Ray predictive streaming radar.
3. Parallel Platform Milestones Shipped in the Same Sprint
- Native Windows 11 → Linux x64 Chromium ELF64 Linked (
ZERO WSL): All 64,346 targets compiled and linked ([5/5] LINK ./chrome,684.37 MBELF64 PIEEM_X86_64) natively on Windows 11 using our hermetic host-tool forwarder and 8 minimal upstream patches. - Triplet of Mathematical Safe Gates (
stealify-lint+b8g-site-build): - Total Link Closure (R ⊆ M ⇔ |R setminus M| = 0): Proven live across 183+ HTML files and 1,675+ internal edges (
0dangling) in< 95 ms. - Atomic Bin Triplet Parity:
124/124CLI tools inbin/verified (0orphans). - Zero-JS Static LaTeX → HTML/Unicode Renderer +
B8G014&B8G015: Zero raw LaTeX leaks in HTML (B8G014), taggedhtml\...\`templates (B8G015), **195 files scanned in127.7 ms→0errors /0` warnings**. - Research Dossiers & Three-Book Kids Library:
- Established
docs/research/with Dossiers01(.asog/TRiGS),02(Total Link-Closure Gate), and03(RAGE 9 vs. B8G Holonomic Engine). - Added Chapter 11 (Mathematical Safe Gates) and The Bare Metal Truth to The White Dragon Book.
- Shipped a 3-book Kids Library (
/kids/): The Little White Dragon (8 chapters), The History of Computers & The Internet (12 dedicated pioneer pages starting with Ada Lovelace), and the *100-chapter, 47,626-word illustrated epic Young Frank & The Atari Glow***.
4. Honest Non-Claims & Next Steps
- Engine vs. AAA Art Budget: Our engine solves streaming,
O(1)memory, 3D physics, PBR rendering, and zero-install distribution. Hand-crafted AAA cities, voice acting, and motion capture remain creative art budgets—which CC0.glblibraries (.\bin\b8g-asset-ingest) and.asog4D Gaussian Splat captures let independent creators bypass. - Next Targets: Package the freshly linked Linux x64
chromeELF64 intoB8G-Chrome-linux-x64.tar.gz, add Poly Haven prefiltered.hdrIBL cubemaps toreality-sandbox.html, and export upstreamgit format-patchCLs for V8/Chromium.