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:


3. Parallel Platform Milestones Shipped in the Same Sprint


4. Honest Non-Claims & Next Steps

← Back to all 27 engineering posts