Repository navigation
v1.4.0
Changelog
All notable changes to Three-Live will be documented in this file.
The format is based on Keep a Changelog.
[1.4.0] - 2026-11-09 (Beta)
Added
-
Loop-Free Node Materials (
three-live-tsl/tslPlugin/
GOOGLE_material_tsl): Opt-in cross-platform procedural PBR shader graph
authoring viaTHREE.MeshStandardNodeMaterial(MeshPhysicalNodeMaterial)
andTHREE.TSL(colorNode,opacityNode,emissiveNode,
roughnessNode,metalnessNode,normalScaleNode,bumpNode, and vertex
positionNode), available standalone inthree-live-tsl.min.js
(three-live/tsl,< 19 KB gz, 0 B overhead on core viewer/author bundles)
and built intothree-live-full.min.jsandxr-live-full.min.js.
Deduplicates common subexpressions into a canonical, topologically sorted
SSA DAG (gltf.materials[m].extensions.GOOGLE_material_tsl,<= 128nodes,
<= 16uniforms, 45
math/vector/Fresnel/simplexNoise2D/3D/Voronoi/triplanar/bump ops) verified
inO(N)with identical FNV-1a structural hashes andTL501–TL504
diagnostics across TypeScript, Rust, Kotlin, and Swift. Compiles natively to
WebGL2 GLSL ES 300, WebGPU WGSLGPURenderBundles (including
displaced shadow-map depth passes), Apple RealityKit.usdzUsdShade/
MaterialX (ND_*)NodeGraphs, Android Filament (compileOnly
filamat-androidMaterialBuilderdisk cache with automatic CPU PBR
fallback), and the Rust CLI/MCP headless PBR rasterizer, with 60–120 Hz
zero-recompile uniform updates via
setMaterialUniform(materialName, uniformName, value)across Web, Android
(XRLiveRuntimeSession/ThreeLiveFilamentRenderer), and iOS
(XRLiveRuntimeSession/XRLiveRealityKitSession). -
Multi-Light Depth Shadow Maps (
shadowMapsPlugin, folded into
three-live-studio.min.js): Real-time directional, spot, and point light
depth shadow mapping (light.castShadow,
light.shadow.{mapSize, bias, normalBias, radius},mesh.castShadow,
mesh.receiveShadow, and<three-live shadow-maps="auto | pcf | off">)
across WebGL2, WebGPU, Android Filament, iOS/visionOS RealityKit, and
.usdz. Allocates a singleDEPTH_COMPONENT24gl.TEXTURE_2D_ARRAY(up to
MAX_SHADOW_LIGHTS = 4slices, capped at 32 MB VRAM) with hardware
COMPARE_REF_TO_TEXTURE(LEQUAL), rotated 8-tap Vogel-disk PCF in WebGL2
and 8-tap Vogel-disk PCF withdepth24plusarray depth passes in WebGPU
(three-live-webgpu), tight dynamic world-space orthographic/perspective
frustum fitting, scale-invariant normal-offset bias, CADsection-plane
clipping, and an FNV-1a dirty digest that executes zero shadow depth passes
during static camera orbits. ExportsKHR_lights_punctualextras.shadow,
node.extras.shadow, and USDZUsdLuxShadowAPI
(inputs:shadow:enable = 1,primvars:doNotCastShadows = 1). -
Room-scan priors on Android:
AISpatialPriors.fromRoomScan(surfaces, objects, camera, cameraFovDeg)withAIRoomSurface/AIRoomObject
(column-major 4×4 transforms) brings the iOS room-scan mapping to Kotlin,
so Android XR labeled planes, Meta MRUK rooms, or custom scanners can feed
compileFromImagethe same planes, objects, and floor height as RoomPlan
on iOS. -
RoomPlan priors for image-to-scene (iOS):
AISpatialPriors.fromCapturedRoom(room, camera:)(iOS 16+) turns a RoomPlan
CapturedRoominto metric priors forcompileFromImage: walls, doors,
windows, openings, and floors (iOS 17+) become labeled planes with extents
and normals, furniture becomes objects with size and yaw, andfloorYcomes
from the lowest floor (or, without floors, the lowest wall or object
bottom). The mapping is also available without RoomPlan as
AISpatialPriors.fromRoomScan(surfaces:objects:)(AIRoomSurface,
AIRoomObject), with at most 32 planes (floors first) and 32 objects. -
1024 px AI textures, compressed texture PNGs, and native auto
generation (B5e):userData.xr.material.sizeaccepts1024(snapping:
≤ 384 → 256, ≤ 768 → 512, else 1024); the derived normal and ORM maps stay
at 512, computed from an exact 2×2 box downsample shared by JS and Rust.
Texture PNGs are now DEFLATE-compressed with adaptive filtering: the Rust
GLB writer recompresses the in-engine (stored) PNGs, and the Web sandbox
worker does the same withCompressionStreambefore posting the GLB,
moving texture images into the BIN chunk. Canvas and preset textures
export at their 512 px canvas size instead of 256. On Android and iOS,
ThreeLiveAITextures/AITexturesgainmode(auto when a provider is
set, likeai-textureson the Web),sceneLoaded(script)background
generation with update callbacks, andThreeLiveAIEditor.textures/
AIEditor.textures, which re-apply the scene when textures arrive. GLB
exports mark nodes whose material shows an AI texture with
extras.xr.material.textureKey(the pack key), so tools can tell it from
a preset fallback.
Budgets:three-live.min.js< 77 KB gz,three-live-full.min.js
< 198 KB gz,xr-live.min.js< 89 KB gz,xr-live-full.min.js
< 307 KB gz. -
AI textures on Android and iOS (B5d):
ThreeLiveAITextures(Android)
andAITextures(iOS) install a texture pack for every compile
(setPack), list a scene's texture requests, and generate missing textures
throughAIImagesProvider(OpenAI-compatible Images endpoint) with an
on-disk cache of provider images. Requests, responses, image preparation,
and pack updates go through the shared Rust core (newai_callops
texture_pack_setandtexture_requests; a process-wide default pack
applies to every compile outside an explicit scope). -
AI texture baking in the CLI and MCP (B5c):
three-live-cli textures bake scene.js [-o scene.textures.json] [--only A,B] [--force] [--glb] [--usdz] [--render]generates missing textures through an
OpenAI-compatible Images endpoint (--ai-image-endpoint/
THREE_LIVE_AI_IMAGE_ENDPOINT,--ai-image-model,THREE_LIVE_AI_KEY)
and extends the pack. A global--texture-packflag makesvalidate,
render,convert,sim, andgymmatch the Web viewer. New MCP tool
three_live_bake_textures(preset-vs-AI comparison image + report), and
texturePack/texturePackPatharguments onthree_live_validate,
three_live_render,three_live_convert, andthree_live_sim. New
ai_callopstexture_image_requestandtexture_image_parse. -
AI PBR textures on the Web (B5b,
three-live-ai): texture packs load
fromtexture-pack="scene.textures.json",el.texturePack, or an inline
<script type="application/three-live-texture-pack">and travel with every
sandboxed compile. With an OpenAI-compatible Images endpoint
(ai-image-endpoint/ai-image-model,el.aiImageProvider, or
createAIImageProvider()), missing textures are generated (center-crop,
resample, seam blend), cached in IndexedDB, and hot-swapped by recompiling
the scene;ai-textures="manual"waits forel.generateTextures().
el.exportTexturePack()saves the pack for reproducible results. Events:
three-live-texture-start,three-live-texture, and
three-live-texture-error. Budgets:three-live-ai.min.js< 29 KB gz,
three-live-full.min.js< 198 KB gz,xr-live-full.min.js< 306 KB gz. -
AI PBR textures, core (B5a):
userData.xr.materialaccepts an optional
prompt(plussize: 256 | 512andseed; 1024 since B5e) next to its A8preset.
Compiling stays a pure function of(script, texture pack): a texture pack
maps an FNV-1a 64 content key of the canonical{prompt, size, seed}to a
seamless albedo PNG, and the normal and occlusion-roughness-metalness maps
are re-derived on-device with byte-identical JS and Rust kernels
(compiler/src/ai_texture.rs, shared fixture
three-live/tests/fixtures/texture_cases.json). Pack misses render the
preset (or the plain material color). Newai_callopstexture_key,
texture_derive,texture_pack_validate, andtexture_pack_add, and new
diagnosticTL206(prompt without a preset, empty, or longer than 500
characters). The compiler never calls an image provider; generation arrives
in B5b–B5d. -
Runtime Image → Scene (
compileFromImage, B4): Synthesizes procedural
Three.js scenes from photos, sketches, or blueprints across Web
(el.compileFromImage(image, { prompt, priors, maxDimension, quality, maxRepairs, dryRun, signal })), Android
(ThreeLiveAIEditor.compileFromImage(bitmap / jpegOrPngBytes / imageDataUrl, ...)), iOS/visionOS
(AIEditor.compileFromImage(cgImage: / imageData: / imageDataUrl:, ...)),
CLI (three-live-cli from-image <input> [-o out.js] [--glb out.glb] [--usdz out.usdz] [--render out.png] [--prompt ...] [--priors priors.json]), and
MCP (three_live_from_image). Shared Rust core (compiler/src/ai_image.rs,
ai_callopsfrom_image_messages,from_image_validate, and
from_image_repair_messages) enforces spatial quality gates
(meshCount >= 2, finite non-degenerate bounds,frustumCoverage >= 0.05,
and zero critical overlap errors), performs one-turn auto-repair with exact
compiler/spatial diagnostics, preserves a compiling fallback candidate when
repair fails, supports optional metric spatial priors (AISpatialPriors:
userHeight,floorNormal, and detected 3D object boxes), and records undo
history soundoEdit()reverts to the previous scene. Multimodal
AIChatMessagesupport (content: string | AIChatContentPart[]) added
across Web, Android, iOS, and Rust. -
Opt-in WebGPU
GPURenderBundlescene accelerator
(three-live-webgpu.min.js,< 17 KB gz): Compiles multi-thousand-part
CAD assemblies,EXT_mesh_gpu_instancingscenes, and glTF PBR models into
pre-recorded 4× MSAAGPURenderBundles backed by a 128-byte-stride storage
buffer and a single 464-byte per-frameSceneUniformsupload, with zero
byte impact onthree-live-viewer,three-live,xr-live-viewer, and
xr-live. Supportsrenderer="auto | webgpu | webgl2"(default"auto"),
equirectangular IBL, all 5 tone-mapping curves (neutral,reinhard,
none,aces,agx), clearcoat, normal/MR/AO/emissive maps, planar
contact shadows, CAD section-plane clipping,stereoSBS, 1×1-scissor
pickMeshGPU, sharedGPUDevicecoordination, and automatic WebGL2
fallback for WebXR,bloom/outline, transmission, skinning/morphs, and
custom shaders. Included inthree-live-full(< 180 KB gz) and
xr-live-full(< 288 KB gz). -
Opt-in WebGPU Gaussian Splatting accelerator (
xr-live-webgpu.min.js,
< 12 KB gz): Offloads.splatand.spzdepth sorting (deterministic
2-pass 8-bit tiled WGSL@computeradix sort matchingsortSplatsByDepth
bit-for-bit) and Degree 1–3 fp16-packed Spherical Harmonics to WebGPU, with
zero byte overhead onthree-live-viewer,three-live,xr-live-viewer,
andxr-live. Supportssplat-renderer="auto | webgpu | hybrid | webgl2"
(default"auto"): renders oriented anisotropic eigenvector quads directly
from VRAM viadrawIndirectonto a premultiplied
<canvas class="three-live-webgpu-layer">overlay for pure-splat desktop
scenes, and automatically switches to a double-bufferedGPUBuffer.mapAsync
WebGL2 coprocessor during active WebXRXRWebGLLayerstereo sessions or
mixed glTF + splat Z-occluded scenes. Included inxr-live-full(budget
< 259 KB gz). -
Bring-your-own-LLM scene editing (
three-live-ai.min.js,< 5 KB gz):
el.editScene(instruction, { selection, maxRepairs, dryRun, signal })sends
the current scene script and selected mesh to any LLM, compiles the reply in
the element's sandbox before touching the live scene, retries once with the
exact error, rejects edits that empty the scene or silently drop the
selected mesh, then hot-swaps (el.undoEdit()reverts). Providers:
ai-chat(any Chat Completions-compatible endpoint viaai-endpoint/
ai-model, orcreateAIChatProvider()) or any custom
{ complete({ messages, signal }) }object. Emitsthree-live-edit-start
andthree-live-editevents. Included inthree-live-fulland
xr-live-full(budgets raised to< 146 KB gzand< 246 KB gz); core
bundles are unchanged. -
Talk-to-Select (B2b-4), multi-select:
el.selectedMeshesholds the
selection (selected-meshstays its first entry);setSelection(el, names, {mode: 'replace' | 'add' | 'remove' | 'toggle' | 'clear'})changes it; the
viewer highlights every selected mesh;three-live-selectnow carries
{mesh, meshes, added, removed, source, query?}. Withai-select-on-tap,
Shift / Ctrl / Cmd-tap or a long press adds to the selection.editScene
(web and the shared Rust core) accepts several selected meshes and rejects
edits that lose any of them. Removingselected-meshnow also clears the
highlight.xr-live-viewer.min.jsbudget:< 55 KB gz(was< 54). -
Talk-to-Select (B2b-4), voice selection without a model call: say
"select the two red chairs on the left" and the tier-1 matcher resolves it
against the loaded scene: names (with synonyms and plurals), material
colors, camera-relative left / right / front / back, top / bottom,
biggest / smallest / tallest, ordinals ("the second mug"), counts
("both", "three"), "all … except …", and lists ("the lamp and the sofa").
It also recognizes relations ("the cup next to the sofa") and leaves them
to a model. Push-to-talk (startVoiceEdit) understands "select / also
select / deselect … / clear the selection" and "select X and make it red",
which edits right away only when the reference was unambiguous; otherwise
it asks "Which one: A or B?" and changes nothing. New
el.selectByVoice(query, {mode}),resolveSelection,matchSelection,
parseVoiceCommand. The Rust core implements the same matcher
(ai_callopsselectandparse_command); a shared fixture keeps the
two identical. -
Talk-to-Select (B2b-4), model fallback, voice tool, and chips: when
the local matcher can't resolve a reference (relations such as "the lamp
next to the sofa", unknown words, other languages), the configured code
model picks from a compact scene index (SELECT_PROMPT; tier 2) and either
selects or asks one short question. Realtime voice sessions get a
select_meshestool (query,names, ormode) and instructions to
select first and read the selection back. Push-to-talk shows confirmation
chips (selected meshes with ×, candidate buttons for "Which one?", and
Apply for an edit waiting on a model-resolved selection) in an
aria-liveregion;ai-select-chips="off"or{chips: false}disables
them. The Rust core addsselect_messages/select_parseand the
select_meshestool. Budgets for B2b-4 as a whole:
three-live-ai.min.js< 20 KB gz(was< 11),three-live-full.min.js
< 160 KB gz(was< 151),xr-live-full.min.js< 268 KB gz(was
< 259). -
Talk-to-Select on Android and iOS (B2b-4):
ThreeLiveAIEditor/
AIEditorhold several selected meshes (selections,setSelection,
toggleSelection(name, additive),onSelectionsChangedwith its source)
and addselectByVoice(query, mode),selectNames,parseCommand, and
camerafor camera-relative references.VoiceEditControllerhandles
selection commands and "select X and make it red".AIVoiceSession
handles theselect_meshestool and no longer echoes voice selections back
as context. All wording (confirmations, questions, selection context) now
comes from the core (select_say,select_context), so every platform says
the same thing. Theselectionparameter ofeditSceneis now a list. -
Tap & Speak on Android and iOS (B2b-2/3):
ThreeLiveAIEditor(Android)
andAIEditor(iOS/visionOS) bringeditScene/undoEditto native apps
with anyai-chatcode model; tap-to-select viatoggleSelection;
push-to-talkVoiceEditController(platform speech recognition and TTS);
andAIVoiceSessionrealtime voice overai-realtimeorgemini-livewith
edit_scene/undo_edittools. The prompt, reply parsing, edit
validation, and voice protocols live in a new shared Rust core
(ai_edit.rs,ai_voice.rs) exposed asthree_live_ai_call(C, freed with
three_live_free_string) andThreeCompiler.nativeAiCall(JNI), with tests
that keep the prompt and tools identical to the web plugin.
MicrophoneStreamernow takes any sample rate and callback (the
XRGeminiLiveControllerconstructor still works); on Android it records
withVOICE_COMMUNICATIONfor echo cancellation while model audio plays. -
Tap & Speak voice scene editing (
three-live-ai):ai-select-on-tap
makes tapping a mesh setselected-mesh(tap again to clear);
el.startVoiceEdit()is push-to-talk with the browser's speech recognizer
and a spoken result;el.connectVoice({provider, url})starts a realtime
voice conversation overai-realtime(any server speaking the Realtime
WebSocket event protocol) orgemini-live, where the voice model calls an
edit_scene/undo_edittool that runseditScenewith your code model.
Includes microphone capture, gapless playback with barge-in, selection
context, and a built-inai-voice-button(orslot="voice-button").
Progress is reported asthree-live-voiceevents and selection changes as
three-live-select. Budgets:three-live-ai< 10 KB gz,
three-live-full< 151 KB gz,xr-live-full< 259 KB gz; core bundles
are unchanged. -
three-live-cli gym(closed-loop agent gym without MCP):
gym reset scene.js --session ep.jsonand
gym step --session ep.json --actions '[...]' --ticks 30play a scene one
command per step for shell-tool agents (the session file embeds the scene
and every step and is replayed deterministically on each call);
gym play scene.jsis a JSON-lines stdin/stdout loop for scripts and RL
harnesses. Both accept--watchand--frame out.png. Observation
positions are now rounded to 0.1 mm (rotations to 1e-5) in both the CLI and
the MCP tools. -
Closed-loop agent gym (
three_live_gym_reset,three_live_gym_step,
three_live_gym_closeMCP tools): Agents can play a scene step by step
instead of scripting it up front ("gym" as in the OpenAI Gym / Gymnasium
reset/step pattern; no ML involved). Each step applies actions, advances the
deterministic 60 Hz simulation byticks, and returns body states,reward
(score delta), theevents,audioCues, andnewObjectivesfired during
the step,done, and an optional rendered frame. State carries over between
steps (a new resumableSimStepperin the compiler), so a step on a static
scene takes well under a millisecond; scenes withanimate(t)/
requestAnimationFramehooks are re-sampled once per step. -
Deterministic PBR material presets (
THREE.ProceduralTexture,
userData.xr.material): 11 seamlessly tiling presets (wood,marble,
brick,concrete,brushedMetal,rust,leather,fabric,
carbonFiber,checkerboard,grid) return
{ map, normalMap, roughnessMap, metalnessMap }to spread into
MeshStandardMaterial, withcolor,color2,scale,seed,
roughness,normalStrength, andsizeoptions.
mesh.userData.xr = { material: 'wood' }bakes a preset tinted by the
mesh's material color. Identical options share textures and
normalStrength: 0skips the normal map (each preset otherwise uses 3 of
the 16 scene textures). Native Rust kernels (CLI, MCP, Android, iOS) and the
JS kernels (Web workers) are byte-identical, pinned by cross-language hash
tests; each preset generates in under 20 ms at 256 px.
three-live-procedural.min.jsbudget raised to< 28 KB gz
(three-live-full< 142 KB gz,xr-live-full< 242 KB gz); core
bundles are unchanged. -
Reference-driven authoring (
three_live_renderreference,
three-live-cli render --reference): renders the scene at a reference
image's aspect ratio into aREFERENCE | RENDER | OVERLAY | SILHOUETTE DIFF
comparison sheet (auto-aligned overlay on plain/transparent backgrounds)
with scale/translation-invariantsilhouetteIou,aspectError,
silhouetteReliable, and actionableguidance, so agents can match photos,
mockups, sketches, and blueprints in a few turns. Accepts PNG (all color
types, bit depths,tRNS, Adam7) and JPEG (baseline/progressive, EXIF
orientation) from local paths ordata:URIs; remote URLs are never
fetched. Adds thebuild_from_referenceMCP prompt.
Changed
- Faster simulation, gym, and filmstrips (warm JS engine reuse):
three_live_sim,three-live-cli sim, temporalrender --frames, and the
agent gym now reuse the thread's warm JS engine (as GLB/USDZ conversion
already did) instead of building a new one per call, which took ~210 ms. Gym
steps on animated scenes drop from ~220 ms to ~18 ms and gym reset /
one-shotsimcalls from ~0.45 s to ~0.25 s; output is unchanged.
Fixed
-
Inline
<script type="text/three">scenes now load however the bundle is
included. With adefer,type="module",async, or end-of-<body>
bundle, elements already in the page upgraded before the bundle registered
its script runner and showed "Script execution requires three-live/full";
with a classic<script>in<head>, the element upgraded before its
inline script was parsed and rendered nothing. The inline scene now runs
after the bundle finishes evaluating (or onDOMContentLoaded), unless a
newer load (src,executeScript) started first.three-live.min.js
budget:< 73 KB gz(was< 72). -
Warm-engine isolation: top-level
varand function declarations from
one scene are no longer visible to the next scene compiled on the same
reused engine (they are non-configurable globals that the sandbox reset
could not delete; they are now blanked). -
validate/rendernow report texture-quota overflows: scenes whose
materials reference more thanSECURITY_3D_MAX_TEXTURES(16) unique images
get aTL105error up front instead of passing validation and then failing
.glb/.usdzexport.
[1.3.2] - 2026-11-08 (Beta)
Added
- Shareable Playground Links & QR Codes (
#p=,#s=z:): The/three/
and/xr/web playgrounds open scenes directly from the URL fragment:
#p=<preset>for built-in and gallery scenes, and#s=z:<payload>for any
scene script (raw DEFLATE, unpadded base64url; decoded client-side via
DecompressionStream('deflate-raw')so scene code never touches a server).
Added 🔗 Share, a centered 📱 Run on phone QR code modal, a persistent
Compiled in X ms header badge, a 3-tab Camera / Mesh / Spatial & AR
inspector, and 🏯 AI Pagoda (#p=pagoda) and 🚜 AI Forklift Drill
(#p=forklift) gallery presets. - Native Outputs Panel: Live mesh count,
.glband.usdzbyte sizes,
and copyable Android (Kotlin), iOS (Swift), and Web HTML snippets for the
active scene in/three/. three-live-cli link&three_live_linkMCP Tool: Validates a scene
and returns a shareable playground URL (#s=z:<deflate-base64url>) plus a
dependency-free ISO/IEC 18004 Model 2 QR code (UTF-8 half-block terminal
rendering via--qrand vector SVG via MCP).- USDZ Embedded Texture Packaging (
UsdUVTexture): Packages embedded
.glband proceduralTHREE.DataTextureimages (PNG, JPEG, WebP) as
64-byte-aligned entries inside.usdzarchives and emits connected
UsdUVTexture+UsdPrimvarReader_float2shader graphs on both Web and
Rust compilers. - 60 Hz Temporal Simulation Harness (
three-live-cli sim&
three_live_sim): Headless deterministic simulation runner stepping
KHR_interactivity,xr-live-simrigid-body physics, character
controllers, and objectives with optional contact-sheet filmstrips. Object3DWorld-Transform Helpers &defineModelViewer(): Added
getWorldPosition,getWorldQuaternion,getWorldScale,
getWorldDirection,localToWorld,worldToLocal,
Quaternion.identity(),defineModelViewer()custom-element alias, and
native partial-arc (thetaStart/thetaLength/phiStart/phiLength/arc)
support acrossCylinderGeometry,SphereGeometry,RingGeometry,
CircleGeometry, andTorusGeometry.
Fixed
- XR Collect Game Drone Patrols: Updated
Drone_PatrolandDrone_Chaser
routes so enemy drones circulate continuously around inner walls instead of
stopping at the far corners. - macOS Quick Look (
.usdz) Button Label: Clarified the desktop Safari AR
button label and tooltip when downloading.usdzfor Finder Quick Look.
[1.3.1] - 2026-11-07 (Beta)
Added
- Built-In Model Context Protocol (MCP) Stdio Server
(three-live-cli mcp): Added a zero-dependency JSON-RPC 2.0 MCP server in
compiler/src/mcp.rssupporting both newline-delimited JSON and
Content-Lengthframing for Claude Code, Cursor, Gemini CLI, Windsurf, and
MCP Inspector
(claude mcp add three-live -- npx -y -p three-live three-live-cli mcp):three_live_validate— Runs the Three.js compiler, schema checker, and
3D spatial/frustum/grounding/collision linter (TL100–TL402).three_live_render— Renders headless 4-up orthographic/camera contact
sheets (quad), single views, or temporal/turntable animations and
returns native MCPimage/png/image/gifbase64 content blocks
directly into vision-capable agent context windows.three_live_convert— Compiles Three.js / HTML /.glbto.glbor
64-byte-aligned Apple.usdz.three_live_sim— Steps deterministic 60 HzKHR_interactivitygraphs,
xr-live-simrigid-body physics, character controllers, and objectives
with optional keyframe filmstrips.- Exposes
three-live://docs/authoring-guide(resources/read) and
author_three_live_scene(prompts/get), plusserver.json(Official
MCP Registry),smithery.yaml, and.mcp.json.
- Procedural
THREE.DataTextureSupport (Web,Rust,GLB,USDZ):
AddedTHREE.DataTexturecompilation (RGBAFormat,RGBFormat,
LuminanceFormat,RepeatWrapping/ClampToEdgeWrapping), inline PNG
data-URI serialization in.glb,avgColormaterial tinting in.usdz,
and software rasterizer sampling inthree-live-cli render. - Distance-Based Level-of-Detail (
lod/THREE.LOD/MSFT_lod): Added
multi-tier distance switching with hysteresis, far-distance culling,
automatic vertex-clustering mesh decimation (decimateGeometry), and
MSFT_lod/KHR_node_visibilityexport across Web, Android
(LodController.kt), iOS (LodController.swift), and the Rust compiler. - 3D Spatial Audio Emitters (
spatial-audio/KHR_audio_emitter) & 60 Hz
Rigid-Body Physics (rigid-body): Added 8 zero-asset ambient spatial loop
presets,KHR_audio_emitter/ USDZSpatialAudioexport, and deterministic
60 Hz Sequential Impulse rigid-body dynamics across Android, iOS, and Web. - Mobile-First Documentation & Animated Hero Showcase: Redesigned
README.mdto lead with native Android (Google Filament & Jetpack XR
SceneCore), iOS/visionOS (Apple RealityKit), andthree-live-cli/ MCP,
with an animated 4-stage hero showcase GIF
(docs/assets/hero-showcase.gif).
[1.3.0] - 2026-11-05 (Beta)
Added
- Graduated from Developer Preview (Alpha) to Beta: Stabilized the core
TypeScript, Rust, Swift/RealityKit, and Kotlin/Android XR APIs across
three-live,xr-live, andthree-live-compiler. - Zero-Install
npx three-live-cliLauncher (bin/three-live-cli.js):
Addedbin.three-live-clitopackage.jsonso AI coding agents and web
developers can runnpx three-live-cli validate | render | simwithout a
local Rust toolchain. Automatically locates local release/debug builds or
downloads and caches the platform binary from GitHub Releases into
~/.cache/three-live/v<version>/. - Cross-Platform Visual Regression Golden Baselines: Added perceptual RMSE
and SSIM (compareRmse,compareSsimincompiler/src/rasterizer.rs) and
deterministic golden assertions acrossOrbital Spheres,Quantum Core,
Architecture,CAD Flange(THREE.CSG), andGame Simulatorso Web,
Android, and iOS presets stay pixel-aligned in CI. - Canonical
userDataTrait Schema & JSON Schema Export (xr-trait-schema):
Added a single typed validator (validateTraits) and JSON Schema 2020-12
generator (generateTraitJsonSchema,three-live-cli schema) shared across
Web (xr-live), Rust (compiler/src/linter.rs), Android (XRSceneLoader),
and iOS (RealityKitSceneLoader), with typo suggestions (collectable->
collectible,anchor->anchor,exploded->explode) and dynamic
node-name reference checks (patrolTargets,followTarget,fleeTarget). - WebGL Context Loss Recovery & GPU Resource Disposal:
- Added automatic
webglcontextlost/webglcontextrestoredhandling on
WebGLRendererand<three-live>(pausing animation loops on loss,
invalidating stale GPU state maps, and recompiling shaders/programs,
textures, VAOs/VBOs, shadows, and post-processing targets on restore
while dispatchingcontextlost/contextrestoredCustomEvents). - Added
renderer.disposeScene(root)andrenderer.getMemoryStats()for
deterministic GPU memory reclamation and leak auditing across repeated
<three-live>andThreeLiveStudiomount/unmount cycles.
- Added automatic
- Native Rust Acceleration for Primitives &
THREE.CSG: Accelerated
PlaneGeometry,TorusGeometry, andTHREE.CSG(subtract,union,
intersect) in the Rust/Boa compiler (compiler/src/primitives.rsand
compiler/src/csg.rs), achieving up to 17.5x faster compilation on
boolean-heavy CAD scenes (39.2 ms->2.24 ms).
[1.2.4] - 2026-11-05
Added
- AI-First Testing & Verification Toolkit (
three-live-cli):three-live-cli validate --json: Headless JS scene execution with
structuredTL1xx–TL4xxdiagnostics (TL101syntax error,TL102
unknownTHREE.*class with typo suggestions,TL103runtime error,
TL104no visible geometry,TL105250 ms execution ceiling,TL201
unknownxr-live-simtrait,TL202missingPlayercharacter,
TL301–TL307spatial/camera/overlap/floor linter warnings).three-live-cli render: Pure-Rust headless software rasterizer
producing 4-up contact sheets (--view=quad --grid --annotationswith
Camera, Front +Z, Top +Y with frustum cone, and Iso 45° panels),
time-stepped horizontal filmstrips (--frames=N --duration=T),
interactive trigger verification (--trigger-select=<node>), and
animated GIFs (--output=out.gif).three-live-cli sim: Headlessxr-live-simphysics, AI steering, and
CAD exploded-view step runner (--actions,--snapshots,--json)
with full event trace logging (onCollect,onDamage,onScoreChange,
onWin,onLose).
Fixed
- Consistent counter-clockwise rotation (
Orbital Spheres): Updated
Orbital Spheresorbit speed to-0.4across Web, iOS, and Android presets
so all demo scenes rotate counter-clockwise around+Y. - Headless
THREE.CSG& TypedArray performance in Boa: Optimized
ShapeGeometry,ExtrudeGeometry,TextGeometry, and chained
THREE.CSG.subtractoperations with direct typed-array population, YZ beam
culling, and polygon caching.
[1.2.3] - 2026-11-04
Fixed
EXT_meshopt_compressionis now spec-compliant on Web, Android, and
iOS: vertex codec v0/v1, index buffer and index sequence codecs, and the
OCTAHEDRAL/QUATERNION/EXPONENTIAL/COLORfilters are byte-exact
with meshoptimizer, sogltfpackfiles load. Adds
KHR_meshopt_compression,KHR_mesh_quantizationattribute dequantization,
UNSIGNED_BYTEindices, andKHR_texture_transformbaking for
TEXCOORD_0.encodeMeshoptBuffernow emits spec streams.- IK joints rotate: web IK runs on the glTF node graph (mesh-less
Group
joints resolve and child meshes follow), and Web / Android / iOS rotate each
joint by the weighted shortest arc instead of only moving joint positions. - Gaussian splats render at their true size (3σ half-extent with an
exp(-0.5 m²)falloff) on all platforms. EXT_mesh_gpu_instancingdraws with onedrawElementsInstancedper
primitive instead of one draw call per instance.KHR_materials_variantsswitching re-resolves custom shaders (unlit,
clearcoat, sheen, ...) and transmission for the selected material.- WebGL context loss is handled: rendering pauses and the viewer restores
programs, plugin GPU state, the last model, and the environment. exposureis now a linear pre-tone-mapping multiplier (model-viewer
semantics) instead of scaling image-based lighting only.
Added
- iOS post-processing:
XRLivePostProcessor/
XRLiveRealityKitSession.enablePostProcessing(on:)rendertone-mapping
andbloomonARViewviarenderCallbacks.postProcess+ Core Image, and
outlinetraits render as inverted-hull rims on iOS 18 / visionOS 2.
[1.2.2] - 2026-11-04
Added
-
Domain-Scoped Modular Sub-Bundles (
three-live&xr-live):-
three-live/viewer(27.3 KBgz),three-live(58.6 KBgz),
three-live/studio(21.5 KBgz),three-live/cad(8.8 KBgz),
three-live/animation(7.8 KBgz), andthree-live/full(90.5 KB
gz). -
xr-live/viewer(49.0 KBgz),xr-live(70.1 KBgz),
xr-live/sensors(9.5 KBgz),xr-live/spatial(55.3 KBgz),
xr-live/sim(21.6 KBgz), andxr-live/full(176.7 KBgz).
-
-
Mesh Compression, Material Variants & Hardware GPU Instancing:
-
EXT_meshopt_compression(meshopt.ts): Zero-Wasm LZ77 + zig-zag
delta/exponential-Golomb decoder withVERTEX(n*4/n*2),
TRIANGLES, andATTRIBUTESfilters across Web, Android, and iOS. -
KHR_materials_variants(variant_name,variants,selectVariant,
variantchangeevent) across Web, Android, and iOS. -
EXT_mesh_gpu_instancing&THREE.InstancedMesh(setMatrixAt,
setColorAt, single-draw-calldrawElementsInstancedin WebGL2, and
USDZPointInstancertranscoding).
-
-
2D Shapes, Beveled Extrusions, CSG Booleans & 3D Vector Text
(three-live/cad):-
THREE.Path&THREE.Shape(moveTo,lineTo,quadraticCurveTo,
bezierCurveTo,absarc,holes) with Earcut polygon triangulation
andTHREE.ExtrudeGeometry(multi-segment bevels). -
THREE.CSG(union,subtract,intersect) manifold 3D BSP solid
modeling andTHREE.TextGeometry(built-in Hershey simplex vector font
table).
-
-
3D Gaussian Splatting (
covariance& Degree-1 Spherical Harmonics):- Full 3D anisotropic scale + quaternion rotation -> 3D covariance
$\Sigma$ -> EWA screen-space 2D conic projection with view-dependent
degree-1 SH color evaluation across Web, Android, and iOS.
- Full 3D anisotropic scale + quaternion rotation -> 3D covariance
-
Filmic Tone Mapping, 3-Level Dual-Kawase HDR Bloom & Silhouette Outlines
(three-live/studio):-
tone-mapping(neutral,aces,agx,reinhard,none),bloom
(bloom-threshold,bloom-radius,userData.xr.bloomwith transparent
background alpha preservation), andoutline(outline-color,
outline-selected,userData.xr.outlinevia depth-tested stencil
silhouette extrusion) across Web, Android, and iOS.
-
-
Inverse Kinematics & WebRTC Voice Signaling (
three-live/animation&
xr-live/spatial):-
ikPlugin&THREE.IKSolver(solveTwoBone,solveFABRIK,
userData.xr.ikchains) across Web, Android (IKSolver), and iOS
(IKSolver). - Opt-in
shared-room-voiceWebRTC signaling relay (rtc
offer/answer/ICE messages,broadcastRtcSignal(),peerrtcsignal
event) pluscomputeSpatialVoiceGaindistance/pan helpers. Apps own
RTCPeerConnectionand audio playback. Message parsing/validation on
Android and iOS (SharedRoom).
-
Fixed
- Fixed
mat3NormalFromMat4inthree-live/src/math.tsto write$3 \times 3$
cofactors in column-major order so rotated meshes keep stable world-space
normals during turntable rotation. - Paused
orbittrait motion whenautoRotate(Start Spin/Pause Spin)
is disabled.
[1.2.1] - 2026-11-03
Added
- Interactive Simulation & Scenario Suite (
xr-live-sim/xr-live/sim)
Across Web, Android, and iOS / visionOS:characterControllerPlugin(character-controller/
CharacterController): Capsule kinematics, floor/slope stepping,
coyote-time jumps, WASD/Gamepad/on-screen touch joystick input, and
sharedcharacterCameraRig(third-person,first-person,top-down,
fixed-camera) across Web, Android (OrbitCameraState.follow), and iOS
(XROrbitCameraState.follow).steeringAgentsPlugin(steering-agents/SteeringAgents):
Autonomous kinematic steering (patrol,chase,flee,follow,
wander), vision-cone target detection, obstacle avoidance, and
deterministicmulberry32wandering.hitZonesPlugin(hit-zones/HitZones): Target/partintegrity,
projectile/hitscan/contactinteraction, spatial triggerzone
volumes, and timed templatespawnerpooling, with cross-platform
visual feedback (computeSimVisuals, AndroidXRSimRenderBridge+
Filament instancing, and iOSXRSimRealityKitBridge) for hit flashes,
world-space integrity bars, projectiles, burst fragments, and zone
outlines.objectivesPlugin(objectives/Objectives): Ordered/unordered
checklist objectives (reach,clear,collect,activate,hold),
score/attempt/countdown evaluation,scenario-reset-keyresets, and HUD
telemetry (sim-hud).synthAudioPlugin(synth-audio/SynthAudio): Zero-asset procedural
audio synthesis (beep,chime,buzz,thud,sweep,click,
alarm,whoosh) via Web Audio API, AndroidAudioTrack, and iOS
AVAudioEngine.
[1.2.0] - 2026-11-03
Added
- Expanded
XRSpatialto 14 Spatial Plugins Across Web, Android, and iOS:spatialMeasurePlugin(spatial-measure): Interactive point-to-point
tape measure and live bounding-box dimension callouts (m,cm,in,
ft) across Web, Android (SpatialMeasure), and iOS
(SpatialMeasure).magneticSnapPlugin(magnetic-snap): Surface alignment, grid snapping
(snap-grid), angular increments (snap-angle), and named socket/plug
snapping (data-xr-snap-socket,data-xr-snap-plug) across Web,
Android (MagneticSnap), and iOS (MagneticSnap).gazeDwellPlugin(gaze-dwell): Hands-free eye-gaze and head-reticle
dwell selection with animated progress ring and refractory cooldown
across Web, Android (GazeDwell), and iOS (GazeDwell).explodedViewPlugin(explode): Interactive CAD assembly explosion
(radial,axial-x,axial-y,axial-z,hierarchy) with leader
lines and livesection-planeclipping across Web, Android
(ExplodedView), and iOS (ExplodedView).persistentAnchorsPlugin(persistent-anchors): Cross-session room
anchor persistence via WebXRXRAnchor,localStorage, and shareable
#xr-anchors=URL hashes across Web, Android (PersistentAnchors), and
iOS (PersistentAnchors).spatialLocomotionPlugin(locomotion): Parabolic teleportation arc,
thumbstick snap-turn (snap-turn-deg), and comfort vignette
(comfort-vignette) across Web, Android (SpatialLocomotion), and iOS
(SpatialLocomotion).sharedRoomPlugin(shared-room): Multi-user spatial presence, peer
avatar frustums, and lamport-clock transform sync across
BroadcastChanneland WebSocket rooms (SharedRoom).
[1.1.1] - 2026-11-02
Changed
- Renamed
XRBlocks*toXRSpatial*across Web, Android, and iOS:- Web:
window.XRSpatial(xr-live/spatial),xrSpatialPlugins, and
xr-spatialattribute (retainingwindow.XRBlocks/xr-blocks
aliases for backward compatibility). - Android:
XRSpatialFeaturesandXRSpatialMath. - iOS / visionOS:
XRSpatialRealityKitFeatures,XRSpatialGeometry, and
XRSpatialMath.
- Web:
Fixed
- Android WebXR AR & Depth Sensing: Fixed 16-bit luminance-alpha depth
texture unpacking, planar depth occlusion comparison in eye space,
depth-heightfield collision surface normals, and post-AR inline render-loop
resume. - iOS
<xr-live>Quick Look AR Bridge: Fixed<xr-live>mobile AR
handoff to export live procedural scenes to.usdzand launch Apple AR
Quick Look on iOS Safari. - Stereo SBS & 3D Simulator: Mapped Stereo Side-by-Side pointer picking
per eye, mirrored the gaze reticle into both eyes, and fixed 3D Simulator
aspect ratio and orbit/WASD controls. - Native Runtime Resilience: Hardened
XRLiveRuntimeSession(Kotlin &
Swift),TubeStrokeBuilder, andParticleEmitteragainst non-finite inputs
and rapid scene teardown.
[1.1.0] - 2026-10-15
Full multi-platform parity across Web (three-live / xr-live), Android (com.google.threelive), and iOS / visionOS (ThreeLiveCompiler).
Added
-
Cross-Platform
KHR_interactivityVM & Hierarchy Parity:- Native Rust compiler (
three-live-compiler) now preserves the fullTHREE.Object3DDFS hierarchy, local TRS, parent-child links, and canonical XR traits (nodes[i].extras.xr,ANDROID_xr_scenecore,MOZ_hubs_components) identically to the web exporter. - Pure-Kotlin (
XRLiveRuntimeSession) and pure-Swift (XRLiveRuntimeSession+XRLiveRealityKitSession)KHR_interactivitybehavior-graph VMs with step/evaluation/tween/delay budgets and RFC 6901 JSON Pointer sandboxing. - Cross-platform golden parity suite (
testdata/golden/) verified across Web, Android JVM, and iOS XCTest within1e-4.
- Native Rust compiler (
-
Spatial Computing Plugins & Native Features on Web, Android & iOS/visionOS:
- Lazy Head Follow & Orbit: Critically damped spring follow with angular deadzone and radial/vertical slack, plus orbit around named nodes, literal coordinates, or the user's head, with turntable
autoRotate(rootTransform) compensation. - Manipulation Handles: Four top-corner uniform-scale handles and pedestal yaw bar (
ManipulationHandles,XRSpatialFeatures,XRSpatialRealityKitFeatures). - Spatial Paint & Depth Particles: Parallel-transported Catmull-Rom tube strokes (
TubeStrokeBuilder) and seededmulberry32particle emitters (ParticleEmitterwithrain,snow,dust,sparkspresets and floor/depth collision). - Gaussian Splats (
.splat& Niantic.spzv2/v3): Gzip decompression with size caps, 16-bit bucket depth sort, CPU billboard quad baseline, and GPU covariance-projected ellipse paths (compiled Filamentsplat.filamat+ index-only re-sorts on Android up to 1 M splats; runtime MetalCustomMaterial+LowLevelMeshon iOS/visionOS up to 1 M splats). - World Understanding & Object Detection: 2D-to-3D bounding-box unprojection (
WorldUnderstanding), Gemini Livereport_objectstool calling (detectObjects), and optional on-device detectors (:mobile:android-detect-mlkitand iOSXRVisionDetector+XRObjectDetectionLoop). - Hand Gesture Classification (
onGesture): 25-joint classifier (pinch,point,fist,thumbs-up,open-palm) withHandJointSource/XRHandJointSourceregistries and optional adapters for Jetpack XR (:mobile:android-hands-androidxr), MediaPipe Hand Landmarker (:mobile:android-hands-mediapipe/XRMediaPipeHandJointSource), and visionOS ARKitHandTrackingProvider. - Native Gemini Live & Hold-to-Ask: Zero-dependency WebSocket Live API client (
XRGeminiLiveController,HoldToAskController), viewport frame streaming (RendererFrameSource,ARViewFrameSource), and optional Firebase AI Logic adapters (:mobile:android-firebase-ai,mobile/ios/FirebaseAdapter).
- Lazy Head Follow & Orbit: Critically damped spring follow with angular deadzone and radial/vertical slack, plus orbit around named nodes, literal coordinates, or the user's head, with turntable
[1.0.0] - 2026-10-06 (Developer Preview)
Initial public Developer Preview release of Three-Live: an AI-first, multi-platform 3D and spatial computing library with an on-device JIT compiler that turns live, AI-generated Three.js scripts into native Android Filament & Jetpack XR SceneCore, iOS/visionOS RealityKit & Quick Look, and WebGL2 / WebXR.
Added
-
<three-live>Web Component (three-live):- Drop-in
<model-viewer>-compatible custom element supporting.glb/.usdzassets and inline procedural<script type="text/three">compilation. - Strictly enforced gzipped bundle budgets:
three-live-viewer.min.js(< 24 KB gz),three-live.min.js(< 48 KB gz), andthree-live-full.min.js(< 58 KB gz). - Modular add-on plugins for PBR Next material extensions (
clearcoat,transmission,sheen,iridescence,anisotropy), procedural studio HDRI & spherical harmonics irradiance, baked contact shadows, 3D surface hotspots, and 64-joint GPU skeletal skinning & morph targets. - Built-in runtime binary
.glband uncompressed.usdzpackagers for zero-server 1-tap mobile AR handoff to Apple Quick Look and Android Scene Viewer.
- Drop-in
-
<xr-live>Spatial Computing Suite (xr-live):- Extends
<three-live>with declarative 6DoF WebXR spatial traits (grab,scale,billboard,anchor) via<xr-anchor>and proceduraluserData.xrTraits. - Live raycastable 3D HTML UI cards via
<div slot="spatial">. - Hardware XR sensors add-on (
xr-live-sensors.min.js):XRDepthManager
real-world depth occlusion,XRHeightfieldPhysicsrigid-body
ballistics, 25-jointXRHandGestureClassifier(pinch,poke,
palm-up),XRDesktopSimulatorfor headset-free keyboard/mouse
testing, spatial Web Audio, and WebMCP agent tools.
- Extends
-
Two-Tier Web Sandbox & Security Architecture:
- Tier 1 (Default): Isolated Web Worker execution (
buildSandboxWorkerSource) with network/storage primitives stripped,Object.prototypefrozen, and strict per-frame execution time and geometry quotas (SceneQuotaValidator). - Tier 2 (
sandbox="iframe"): Opaque-origin<iframe sandbox="allow-scripts">(three-live-sandbox.html) with a strictconnect-src 'none'Content Security Policy and W3C Trusted Types support.
- Tier 1 (Default): Isolated Web Worker execution (
-
Native Rust/QuickJS JIT Compiler (
compiler/&three-live-cli):- Embedded deterministic QuickJS engine (
rquickjs) executing procedural Three.js scripts in-process on mobile and desktop without a browser or Node.js runtime. - Hardened resource limits (memory ceiling, interrupt handler timeout, stack limit, and vertex/triangle/material quotas) and panic-safe C FFI / Android JNI boundaries (
catch_unwind). - Standalone
three-live-clibinary (three-live-cli convert scene.js -o output.glb) with prebuilt release binaries for Linux (x86_64,aarch64), macOS (arm64,x86_64), and Windows (x86_64).
- Embedded deterministic QuickJS engine (
-
Native Android & Apple Mobile SDKs (
mobile/):- Android (
com.google.threelive): Zero-copyDirectByteBufferJNI bridge for Google Filament (FilamentHelper), Android Scene Viewer AR launcher, Jetpack XRSceneCoretrait hydration (XRLiveSceneCoreHelper), and a Jetpack Compose demo app (mobile/examples/android_compose). - iOS, macOS, visionOS & tvOS (
ThreeLiveCompiler): Swift Package Manager library and prebuiltThreeLiveCompiler.xcframeworkwith asyncRealityKitEntityloading (RealityKitHelper),ARQuickLookpresentation (QuickLookHelper), spatial trait gesture installation (XRLiveRealityKit), and a SwiftUI demo app (mobile/examples/ios_swiftui).
- Android (