Skip to content

v1.5.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 15:39
· 10 commits to main since this release

[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, and external_handoff) now default to disabled across Web
    (<three-live> and <xr-live>), Android
    (com.google.threelive.ThreeLiveCapabilities), and iOS/visionOS/tvOS
    (ThreeLiveCapabilities).

    • Web (CAPABILITIES_NONE default): Declare
      capabilities="scripts ..." (or presets capabilities="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-scripts remains 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 sanitized three-capability-denied CustomEvent /
      CapabilityDeniedEvent (deduplicated in 60 Hz frame loops).
    • CLI & MCP static linting (TL403): three-live-cli validate on
      .html inputs recognizes capabilities="..." for TL401 and emits
      TL403 warnings whenever HTML attributes or inline userData.xr.*
      traits use capabilities omitted from the host element.
  • TSL node-graph glTF payload moved to gltf.materials[i].extras.tsl:
    Replaces the 1.4.0 extensions.GOOGLE_material_tsl wrapper across Web,
    Rust, Android, and iOS so procedural THREE.TSL shader graphs serialize as
    standard glTF material extras without custom extensionsUsed entries.

  • Self-contained Apple XCFrameworks & static musl Linux CLI binaries:
    ThreeLiveCompiler.xcframework and ThreeLiveKernels.xcframework pre-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 Linux three-live-cli binaries 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 ThreeCompilerBackend SPI & Artifact Split: Android
      splits into com.google.threelive:runtime (pure Kotlin spatial/XR/AI
      runtime + ThreeCompiler.setBackend(...), zero JNI/Boa),
      com.google.threelive:kernels (Boa-free libthree_live_kernels.so),
      and com.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
      ThreeLiveCompiler product (ThreeLiveFirebaseAI now 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) bundles ThreeEngine.{compileToGLB, compileToUSDZ, glbToUSDZ, aiCall, resetScene, wrapIsolatedScript, installSandboxHardening} with built-in pure-JS UTF-8 polyfills and
      automatic globalThis.__three_live_host__ (abiVersion: 1) native
      kernel acceleration, paired with machine-readable JS engine capability
      metadata in dist/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
      via three_live_kernels_table(&count) + three_live_kernel_free, with
      GLB serialization unified on three-convert.ts::sceneToGLB.
  • 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 from three-live-full.min.js) available
    individually (12 to 30 KB gz each) or combined in three-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 IBC codeStairSpec.
    • 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 IUPAC elementSpec.
    • THREE.Electronics (three-live-kit-electronics.min.js, 9 parts):
      PcbBoardGeometry, EnclosureGeometry, HeatsinkGeometry,
      DinRailGeometry, IcPackageGeometry, PinHeaderGeometry,
      ConnectorGeometry, StandoffSpacerGeometry,
      DiscreteComponentGeometry, and jedecPackageSpec.
  • 3D CAD Sweeps, Helices, Multi-Profile Lofts & PatternInstancer
    (three-live-cad):
    Added Bishop-frame SweepGeometry, HelixGeometry
    (HelixCurve3), 3D extrudePath support on ExtrudeGeometry,
    multi-profile LoftGeometry (including hollow-vessel wallThickness,
    crease-aware normals, and closed-loop seam welding), and declarative
    PatternInstancer (linear, grid, circular, alongCurve,
    toGeometry, plus InstancedMesh operands in CSG).

  • 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 & USDZ primvars:displayColor):
    Preserves geometry.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):
    Preserves Material[] arrays on THREE.Mesh and
    THREE.InstancedMesh (including Material({ visible }) and clone()) and
    BufferGeometry.groups (addGroup, clearGroups, plus standard Three.js
    face/cap/side groups on BoxGeometry, CylinderGeometry / ConeGeometry,
    and ExtrudeGeometry), exporting shared-accessor multi-primitive .glb and
    .usdz meshes while preserving per-group material bindings and
    vertexColors decisions 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 B core bundle overhead, excluded from three-live-full) providing
    SceneEditor, sceneEditsPlugin (previewNodeEdit, acceptNodeEdit,
    rejectNodeEdit, undoNodeEdit), prepareSceneEdit, and
    computeSubtreeBounds for 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_compression remapping, fail-closed remote_content capability
    checks with abortable bounded fetch, and bounded undo.

  • tvOS 26 RealityKit Support & Apple TV SwiftUI Demo: Compiles
    XRLiveRealityKitSession and the RealityKit rendering layer on tvOS 26
    (ThreeLiveCompiler.xcframework tvos-arm64 slice + CI ThreeLiveDemoTV
    build) and adds the ThreeLiveDemoTV Apple TV target to
    mobile/examples/ios_swiftui with Siri Remote orbit/select/reset/menu
    controls and XCUIRemote UI tests.

  • Closed-Loop Visual AI Refinement (--visual-turns N / visualTurns) &
    Live Playground AI Editing:
    Multi-turn multimodal render-critique-repair
    loop across three-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, and docs/why-three-live.md.

  • Built-In 3D/XR Accessibility Linter (TL601–TL606): Static WCAG
    2.1/2.2 & W3C XAUR accessibility diagnostics in three-live-cli validate /
    compile and 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 uniform3fv Crash & alphaBlend Routing on <xr-live> Dynamic
    Meshes, Spatial Slots & AR Reticles:
    Populated complete PrimitiveGpu PBR
    defaults (emissiveFactor: [0, 0, 0], emissiveTexture: null, clearcoat,
    doubleSided, and alphaMode: 'BLEND' when alphaBlend is requested)
    across createDynamicMesh, XRSpatialSlotManager, and __xr_reticle__,
    hardened ThreeView.render() against partial plugin primitives, and fixed
    teleport arc baseColor updates in spatial-locomotion.

  • Opaque-Origin Static HTML Hosting (file:// & Sandboxed <iframe>):
    Web scene compilation automatically falls back from blob: 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 -N while 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 outline Trait Rendering in XRLiveRealityKitSession:
    Applies inverted-hull userData.xr.outline shells when binding session
    entities while excluding shells from hit-testing collisions, recolor, and
    hit-flash material swaps.

  • Interior Turntable Camera, FrontSide Culling, Grazing Bump & WebGL2
    Alpha Blending:
    Fixed room-interior turntable orbits, FrontSide
    back-face culling, grazing normal/bump attenuation, two-pass
    alphaMode: 'BLEND' sorting, Web Worker installTslExtension
    serialization, and 2-manifold edge cases across THREE.Architecture.