r/WebXR • u/holond0 • Oct 18 '26
Demo babalon JS: An open-source, touch-first 3D scene composer, auto-rigger, mesh editor & WebXR studio built on Babylon.js 9
Hi everyone! Excited to share babalon JS, an open-source (GPL-3.0) 3D scene composer and WebXR studio built on Babylon.js 9 and TypeScript, with a zero-framework plain DOM glass UI.
🚀 Live App (Chrome / Offline PWA): https://holondo.github.io/babalonJS/ 🐙 GitHub Repository: https://github.com/holondo/babalonJS
Why I built it
I wanted a tool that feels as approachable as a video-game Photo Mode on a 375px phone screen, while packing serious 3D utilities under the hood for desktop and mobile creators—all running 100% client-side and offline.
Technical Architecture & WebXR / Babylon.js 9 Features:
- WebXR AR (Chrome for Android / ARCore) + Virtual AR:
- Full WebXR hit-test placement at 1:1 real-world scale, anchor adjustments, directional shadow generators on the real floor, room light estimation, studio lighting presets, and live post-processing pipelines.
- Includes Virtual AR & Gyro Mode for devices without WebXR (or indoor testing without a floor surface).
- Render-on-Demand Engine Loop: The scene only renders when invalidated by camera motion, active animations, pointer edits, or WebXR frames, keeping battery usage low on phones.
- Tree-Shaken Modular Imports & Lazy Feature Loading: Startup stays lean; heavy panels (Rigging, Mesh Editing, Booleans, Optimization) and their Web Workers / WASM modules load on demand and cache via Service Worker.
- In-Browser Auto-Rigging & Retargeting:
- Automatic humanoid bone detection across Mixamo, Rigify/Blender, Unreal, and VRM naming conventions.
- Volumetric heat-diffusion and envelope skinning computed in a Web Worker, with experimental joint deformation treatments (trunk protection & helper bones) and a real-time deformation difference map.
- Full two-bone IK solver and 43 retargetable CC0 animations.
- Mesh Editing & CSG Booleans:
- Face selection (lasso, depth-buffered paint brush, smart select, plane cut), vertex sculpting with partial GPU buffer updates, live shrinkwrap, and non-destructive Manifold booleans in a worker.
- In-Browser Asset Optimization Pipeline for Mobile XR:
- Triangle reduction via
meshoptimizer, normal map baking from high-poly to simplified geometry, KTX2/BasisU texture compression, and compact GLB export viaglTF-Transform.
- Triangle reduction via
- IndexedDB Content-Addressable Autosave &
.babalonArchives:- Deduplicated binary storage in IndexedDB so autosaves only write changed scene metadata, plus disposable worker ZIP archiving (
fflate).
- Deduplicated binary storage in IndexedDB so autosaves only write changed scene metadata, plus disposable worker ZIP archiving (
Feedback, bug reports, and stars are hugely appreciated! If you enjoy the project and want to support my open-source work:
- ❤️ GitHub Sponsors: https://github.com/sponsors/holondo
- ☕ Buy Me a Coffee: https://buymeacoffee.com/holondo