Repository navigation
v1.5.0
[1.5.0] - 2026-11-20 (Beta)
Changed
-
Secure-by-default capability-based security (
capabilities/
ThreeLiveCapabilities/TL403): Sensitive runtime capabilities
(network,remote_content,camera,microphone,sensors,storage,
ai, andexternal_handoff) now default to disabled across Web
(<three-live>and<xr-live>), Android
(com.google.threelive.ThreeLiveCapabilities), and iOS/visionOS/tvOS
(ThreeLiveCapabilities).- Web (
CAPABILITIES_NONEdefault): Declare
capabilities="scripts ..."(or presetscapabilities="viewer"for
remote.glb/.usdz+ AR handoff,capabilities="all"for trusted
playgrounds,-<cap>negation, and scheme/origin allowlists such as
network:https,wss@https://cdn.example.com). Legacy
allow-client-scriptsremains supported as an alias for
capabilities="scripts". - Native Android & iOS (
DEFAULT/.default): Pure in-memory script
compilation (scripts = true) remains enabled by default while all
network, remote media, camera/frame capture, microphone, spatial sensor,
persistent storage, AI, and external AR handoff operations require
explicit opt-in (ThreeLiveCapabilities(...)per instance or
ThreeLiveCapabilities.default/.defaultPolicy). - Fail-closed & non-escalating: Author-controlled
userData.xr.*
traits (splatUrl,audioEmitter.src,anchor.persist,sync,
worldUnderstanding,particles,holdToAsk) cannot self-grant
capabilities; procedural geometry continues to render while denied side
effects emit a sanitizedthree-capability-deniedCustomEvent/
CapabilityDeniedEvent(deduplicated in 60 Hz frame loops). - CLI & MCP static linting (
TL403):three-live-cli validateon
.htmlinputs recognizescapabilities="..."forTL401and emits
TL403warnings whenever HTML attributes or inlineuserData.xr.*
traits use capabilities omitted from the host element.
- Web (
-
TSL node-graph glTF payload moved to
gltf.materials[i].extras.tsl:
Replaces the1.4.0extensions.GOOGLE_material_tslwrapper across Web,
Rust, Android, and iOS so proceduralTHREE.TSLshader graphs serialize as
standard glTF materialextraswithout customextensionsUsedentries. -
Self-contained Apple XCFrameworks & static musl Linux CLI binaries:
ThreeLiveCompiler.xcframeworkandThreeLiveKernels.xcframeworkpre-link
every slice with explicit exported C ABI symbol lists
(scripts/verify_xcframework.sh), hiding Rust stdlib,compiler-rt, and
crate symbols so host apps that already link another Rust library never hit
duplicate symbols. Prebuilt Linuxthree-live-clibinaries now link
statically against musl for zero-GLIBC compatibility on minimal Debian
(bookworm-slim/trixie-slim), Alpine, and Docker MCP containers.
Added
-
Single-JS-Engine Host Integration (
ThreeCompilerBackend, Boa-Free
kernels, &three-live-compiler-bundle.min.js): Mobile and desktop host
applications that already embed a JavaScript VM (such as Boa, QuickJS, V8,
or JavaScriptCore) can now run Three-Live without linking a second JS
engine:- Pluggable
ThreeCompilerBackendSPI & Artifact Split: Android
splits intocom.google.threelive:runtime(pure Kotlin spatial/XR/AI
runtime +ThreeCompiler.setBackend(...), zero JNI/Boa),
com.google.threelive:kernels(Boa-freelibthree_live_kernels.so),
andcom.google.threelive:compiler(re-exporting:runtime+
NativeThreeCompilerBackend); all optional Android adapters
(:filament,:firebase-ai,:detect-mlkit,:hands-androidxr,
:hands-mediapipe) now depend on:runtime. SwiftPM splits into
ThreeLiveRuntime,ThreeLiveKernels(ThreeLiveKernels.xcframework,
zero Boa symbols),ThreeLiveCompilerNative, and the umbrella
ThreeLiveCompilerproduct (ThreeLiveFirebaseAInow depends on
ThreeLiveRuntime). - Self-Contained Hosted Compiler Bundle &
engine-requirements.json:
dist/three-live-compiler-bundle.min.js(three-live/compiler-bundle,
< 260 KB gz) bundlesThreeEngine.{compileToGLB, compileToUSDZ, glbToUSDZ, aiCall, resetScene, wrapIsolatedScript, installSandboxHardening}with built-in pure-JS UTF-8 polyfills and
automaticglobalThis.__three_live_host__(abiVersion: 1) native
kernel acceleration, paired with machine-readable JS engine capability
metadata indist/engine-requirements.json. - Boa-Free Native Kernels C ABI
(compiler/include/three_live_kernels.h): Cargo feature split
(kernels,boa,cli,wasm,jni) exposing 24 self-describing
geometry, CSG, procedural PBR texture, PNG/JPEG decode, and USDZ kernels
viathree_live_kernels_table(&count)+three_live_kernel_free, with
GLB serialization unified onthree-convert.ts::sceneToGLB.
- Pluggable
-
Five A-la-Carte Parametric Domain Kits (
three-live-kit-*&
three-live-kits.min.js, 57 2-manifold constructors): Opt-in domain kits
(intentionally excluded fromthree-live-full.min.js) available
individually (12 to 30 KB gzeach) or combined inthree-live-kits.min.js
(< 82 KB gz), built into the native compiler, and showcased in the
153-variant Domain Kits Visual Catalog (examples/kits/,
docs/kits-gallery.md):THREE.Mechanical(three-live-kit-mechanical.min.js, 15 parts):
SpurGearGeometry,BevelGearGeometry,InternalRingGearGeometry,
RackGeometry,PulleyGeometry,BoltGeometry,NutGeometry,
WasherGeometry,ShaftGeometry,ShaftCouplerGeometry,
BearingGeometry,PillowBlockGeometry,HelicalSpringGeometry,
FlangePlateGeometry,ProfileExtrusionGeometry,metricFastener, and
gearMeshDistance.THREE.Architecture(three-live-kit-architecture.min.js, 9
parts):WallGeometry,SlabGeometry,StaircaseGeometry,
RoofGeometry,DoorGeometry,WindowGeometry,RailingGeometry,
ColumnGeometry,ArchwayGeometry, and IBCcodeStairSpec.THREE.Industrial(three-live-kit-industrial.min.js, 10 parts):
PipeRunGeometry,PipeFittingGeometry,ValveGeometry,
CentrifugalPumpGeometry,PalletRackGeometry,ConveyorGeometry,
IndustrialLadderGeometry,CatwalkPlatformGeometry,
SafetyBarrierGeometry,StorageTankGeometry, and ASME
nominalPipeSpec.THREE.Science(three-live-kit-science.min.js, 14 parts):
MoleculeGeometry,RibbonGeometry+ribbonColorMap,
CrystalLatticeGeometry,AtomicOrbitalGeometry,
OpticalElementGeometry,SurfacePlotGeometry,
ParametricSurfaceGeometry,VectorFieldGeometry,
IsoSurfaceGeometry,StreamlineGeometry,Axes3DGeometry,
DoubleHelixGeometry,DashedLineGeometry,AngleArcGeometry,
sampleColormap/colormapTexture/applyVertexColormap, and
44-element IUPACelementSpec.THREE.Electronics(three-live-kit-electronics.min.js, 9 parts):
PcbBoardGeometry,EnclosureGeometry,HeatsinkGeometry,
DinRailGeometry,IcPackageGeometry,PinHeaderGeometry,
ConnectorGeometry,StandoffSpacerGeometry,
DiscreteComponentGeometry, andjedecPackageSpec.
-
3D CAD Sweeps, Helices, Multi-Profile Lofts &
PatternInstancer
(three-live-cad): Added Bishop-frameSweepGeometry,HelixGeometry
(HelixCurve3), 3DextrudePathsupport onExtrudeGeometry,
multi-profileLoftGeometry(including hollow-vesselwallThickness,
crease-aware normals, and closed-loop seam welding), and declarative
PatternInstancer(linear,grid,circular,alongCurve,
toGeometry, plusInstancedMeshoperands inCSG). -
Core
<three-live section-plane>CAD Cutaways:
<three-live section-plane="y:0.0">(el.sectionPlane,"-z:0.5",
"none") clips WebGL2 color, WebGPU, and shadow-depth passes directly on
<three-live>without requiring<xr-live>. -
End-to-End Per-Vertex Colors (
COLOR_0& USDZprimvars:displayColor):
Preservesgeometry.setAttribute('color', ...)across.glb(COLOR_0),
WebGL2, WebGPU, the native software rasterizer, and.usdz
(primvars:displayColor). -
Multi-Material Meshes &
BufferGeometry.groups(Material[]across Web,
USDZ & Native Rust): PreservesMaterial[]arrays onTHREE.Meshand
THREE.InstancedMesh(includingMaterial({ visible })andclone()) and
BufferGeometry.groups(addGroup,clearGroups, plus standard Three.js
face/cap/side groups onBoxGeometry,CylinderGeometry/ConeGeometry,
andExtrudeGeometry), exporting shared-accessor multi-primitive.glband
.usdzmeshes while preserving per-group material bindings and
vertexColorsdecisions across__three_live_extract_scene_raw__,
read_glb,spatial_lint, and the headless Rust software rasterizer. -
Optional Sub-Node Scene Editing & Constraint Add-On (
three-live/edits,
three-live-edits.min.js,< 11 KB gz): Opt-in, a la carte host plugin
(0 Bcore bundle overhead, excluded fromthree-live-full) providing
SceneEditor,sceneEditsPlugin(previewNodeEdit,acceptNodeEdit,
rejectNodeEdit,undoNodeEdit),prepareSceneEdit, and
computeSubtreeBoundsfor targeted glTF subtree replacement with
world-space geometric & PBR material constraint receipts (preserveBounds,
preserveFootprint,preserveHeight,maxBounds,matchMaterialOf,
copyMaterialFrom), detached asset compaction with fail-closed
KHR_interactivity/KHR_animation_pointer/MSFT_lod/
EXT_meshopt_compressionremapping, fail-closedremote_contentcapability
checks with abortable boundedfetch, and bounded undo. -
tvOS 26 RealityKit Support & Apple TV SwiftUI Demo: Compiles
XRLiveRealityKitSessionand the RealityKit rendering layer on tvOS 26
(ThreeLiveCompiler.xcframeworktvos-arm64slice + CIThreeLiveDemoTV
build) and adds theThreeLiveDemoTVApple TV target to
mobile/examples/ios_swiftuiwith Siri Remote orbit/select/reset/menu
controls andXCUIRemoteUI tests. -
Closed-Loop Visual AI Refinement (
--visual-turns N/visualTurns) &
Live Playground AI Editing: Multi-turn multimodal render-critique-repair
loop acrossthree-live-cli from-image --visual-turns N, MCP
three_live_from_image, and Web
el.compileFromImage(..., { visualTurns }), plus BYOA live AI editing, 6
curated studio presets with instant Sample AI Edit chips across Web, Android
Compose, and iOS SwiftUI examples, anddocs/why-three-live.md. -
Built-In 3D/XR Accessibility Linter (
TL601–TL606): Static WCAG
2.1/2.2 & W3C XAUR accessibility diagnostics inthree-live-cli validate/
compileand MCP tools covering non-text luminance contrast (>= 3.0:1),
vestibular motion / reduced-motion safety, interactive target sizing, and
spatial accessibility metadata, alongside contrast-verified kit catalog
palettes.
Fixed
-
WebGL2
uniform3fvCrash &alphaBlendRouting on<xr-live>Dynamic
Meshes, Spatial Slots & AR Reticles: Populated completePrimitiveGpuPBR
defaults (emissiveFactor: [0, 0, 0],emissiveTexture: null,clearcoat,
doubleSided, andalphaMode: 'BLEND'whenalphaBlendis requested)
acrosscreateDynamicMesh,XRSpatialSlotManager, and__xr_reticle__,
hardenedThreeView.render()against partial plugin primitives, and fixed
teleport arcbaseColorupdates inspatial-locomotion. -
Opaque-Origin Static HTML Hosting (
file://& Sandboxed<iframe>):
Web scene compilation automatically falls back fromblob:Workers to an
isolated<iframe sandbox="allow-scripts">(connect-src 'none') when
served from opaque (null) origins. -
Shadow-Caster Normal Bias on Flush Stacked Geometry: WebGL2 and WebGPU
shadow depth passes now shrink casters inward along-Nwhile applying full
receiver normal bias (SHADOW_RECEIVER_NORMAL_BIAS_SCALE = 1.0), removing
false overhang shadow bands at flush multi-story wall joints while keeping
grazing and convex edges acne-free. -
iOS / visionOS
outlineTrait Rendering inXRLiveRealityKitSession:
Applies inverted-hulluserData.xr.outlineshells when binding session
entities while excluding shells from hit-testing collisions,recolor, and
hit-flash material swaps. -
Interior Turntable Camera,
FrontSideCulling, Grazing Bump & WebGL2
Alpha Blending: Fixed room-interior turntable orbits,FrontSide
back-face culling, grazing normal/bump attenuation, two-pass
alphaMode: 'BLEND'sorting, Web WorkerinstallTslExtension
serialization, and 2-manifold edge cases acrossTHREE.Architecture.