3D engine that AI agents drive
Restore install docs, point README links at the site, merge main's physics into on-demand modules
Nguyen Xuan An4a3f334548f0
diff --git a/README.md b/README.mdindex 5526f72a..2bfb408b 100644--- a/README.md+++ b/README.md@@ -33,11 +33,11 @@ An MCP server lets an agent author a scene as a JSON recipe, look at PNG preview<table><tr>- <td width="50%"><a href="docs/terrain.md"><img src="https://67js.codepawl.com/previews/terrain.webp" alt="Rolling hills of scanned grass and mud rising to rocky ridges" /></a><br /><b>Terrain</b>: chunked heightfield, four scanned ground layers</td>- <td width="50%"><a href="docs/spume.md"><img src="https://67js.codepawl.com/previews/spume.webp" alt="A jet of baked liquid hitting a concrete slab" /></a><br /><b>Spume liquid</b>: baked water that refracts and sprays</td>+ <td width="50%"><a href="https://67js.codepawl.com/terrain.md"><img src="https://67js.codepawl.com/previews/terrain.webp" alt="Rolling hills of scanned grass and mud rising to rocky ridges" /></a><br /><b>Terrain</b>: chunked heightfield, four scanned ground layers</td>+ <td width="50%"><a href="https://67js.codepawl.com/spume.md"><img src="https://67js.codepawl.com/previews/spume.webp" alt="A jet of baked liquid hitting a concrete slab" /></a><br /><b>Spume liquid</b>: baked water that refracts and sprays</td></tr><tr>- <td><a href="docs/vehicle.md"><img src="https://67js.codepawl.com/previews/vehicle.webp" alt="A jeep leaning into a bend on a marked path" /></a><br /><b>Vehicles</b>: steering, body roll and wheels on a path</td>+ <td><a href="https://67js.codepawl.com/vehicle.md"><img src="https://67js.codepawl.com/previews/vehicle.webp" alt="A jeep leaning into a bend on a marked path" /></a><br /><b>Vehicles</b>: steering, body roll and wheels on a path</td><td><a href="docs/lighting.md"><img src="https://67js.codepawl.com/previews/lighting.webp" alt="Metal spheres of rising roughness lit by an HDR environment" /></a><br /><b>HDRI lighting</b>: reflections that blur with roughness</td></tr><tr>@@ -117,15 +117,15 @@ Each addon is a separate import, so a page loads only what it uses.| --- | --- | --- || Rendering | `67js` | Instanced PBR renderer, shadows, MSAA, HDR, bloom, alpha masks and blending, render budgets. See [lighting](docs/lighting.md) and [material maps](docs/material-maps.md). || Environment | `67js/addons/hdri` | Image-based lighting from Radiance `.hdr` files, with blurred reflections. |-| Terrain | `67js/addons/terrain`, `67js/addons/texture-set` | [Chunked terrain](docs/terrain.md) with level of detail and a four-layer splat material from scanned textures. |-| Grass | `67js/addons/grass` | [Grass fields](docs/grass.md) of clumped, curved blades with rolling wind gusts, paths and level of detail. |-| Clutter | `67js/addons/clutter` | [Pebbles, rocks, twigs and fallen leaves](docs/clutter.md) scattered over terrain in streamed tiles. |-| Vegetation | `67js/addons/vegetation` | [Seeded trees, bushes and grass](docs/vegetation.md) with scanned leaves and bark, wind and level of detail. |-| Liquid | `67js/addons/spume` | [Baked liquid playback](docs/spume.md) with refraction and spray from the Spume solver. |-| Vehicles | `67js/addons/vehicle` | [Wheeled vehicles on a path](docs/vehicle.md): wheel spin, steering, roll, pitch and ground following. |-| Characters | `67js/addons/gltf`, `67js/addons/retarget`, `67js/addons/skeleton-pose` | [glTF import](docs/gltf.md) with skins, morphs and compressed meshes, [clip retargeting](docs/retarget.md) between rigs, and [pose layers with IK](docs/skeleton-pose.md). |+| Terrain | `67js/addons/terrain`, `67js/addons/texture-set` | [Chunked terrain](https://67js.codepawl.com/terrain.md) with level of detail and a four-layer splat material from scanned textures. |+| Grass | `67js/addons/grass` | [Grass fields](https://67js.codepawl.com/grass.md) of clumped, curved blades with rolling wind gusts, paths and level of detail. |+| Clutter | `67js/addons/clutter` | [Pebbles, rocks, twigs and fallen leaves](https://67js.codepawl.com/clutter.md) scattered over terrain in streamed tiles. |+| Vegetation | `67js/addons/vegetation` | [Seeded trees, bushes and grass](https://67js.codepawl.com/vegetation.md) with scanned leaves and bark, wind and level of detail. |+| Liquid | `67js/addons/spume` | [Baked liquid playback](https://67js.codepawl.com/spume.md) with refraction and spray from the Spume solver. |+| Vehicles | `67js/addons/vehicle` | [Wheeled vehicles on a path](https://67js.codepawl.com/vehicle.md): wheel spin, steering, roll, pitch and ground following. |+| Characters | `67js/addons/gltf`, `67js/addons/retarget`, `67js/addons/skeleton-pose` | [glTF import](docs/gltf.md) with skins, morphs and compressed meshes, [clip retargeting](https://67js.codepawl.com/retarget.md) between rigs, and [pose layers with IK](docs/skeleton-pose.md). || Physics | `67js/addons/physics` | [Rapier contacts and joints](docs/physics.md) recorded into a timeline for repeatable seeks. |-| Modeling | `67js/addons/modeling`, `sculpt`, `surface`, `shrinkwrap`, `mesh-query` | [Modeling](docs/modeling.md), [sculpt brushes](docs/sculpt.md), [surface patches](docs/surface.md), [shrinkwrap](docs/shrinkwrap.md) and [mesh queries](docs/mesh-query.md). |+| Modeling | `67js/addons/modeling`, `sculpt`, `surface`, `shrinkwrap`, `mesh-query` | [Modeling](docs/modeling.md), [sculpt brushes](https://67js.codepawl.com/sculpt.md), [surface patches](https://67js.codepawl.com/surface.md), [shrinkwrap](https://67js.codepawl.com/shrinkwrap.md) and [mesh queries](https://67js.codepawl.com/mesh-query.md). || Polygon mesh | `67js/addons/mesh` | [Mesh editing for agents](docs/mesh.md): tagged faces, extrude, inset, bevel, loop cut, booleans, a modifier stack and UV unwrap. || Agents | `67js/addons/agent-scene`, `67js/addons/agent-asset` | [Scene sessions](docs/agent-scene.md) with revisions, checkpoints and atomic edits. |diff --git a/bench/size/baseline.json b/bench/size/baseline.jsonindex 2e850a56..7a376cc4 100644--- a/bench/size/baseline.json+++ b/bench/size/baseline.json@@ -14,9 +14,9 @@},"bundles": {"entry:core": {- "min": 269229,- "gzip": 76877,- "brotli": 65768+ "min": 268794,+ "gzip": 76776,+ "brotli": 65546},"entry:model": {"min": 40093,@@ -129,14 +129,24 @@"brotli": 762},"entry:agent-scene": {- "min": 419435,- "gzip": 133124,- "brotli": 113067+ "min": 162579,+ "gzip": 48203,+ "brotli": 41448+ },+ "entry:agent-scene+lazy": {+ "min": 422954,+ "gzip": 137805,+ "brotli": 120313},"entry:agent-asset": {- "min": 445545,- "gzip": 140377,- "brotli": 119117+ "min": 245362,+ "gzip": 74061,+ "brotli": 64428+ },+ "entry:agent-asset+lazy": {+ "min": 448381,+ "gzip": 144778,+ "brotli": 126295},"entry:hdri": {"min": 8075,@@ -154,9 +164,14 @@"brotli": 63362},"scene:agent-scene": {- "min": 518633,- "gzip": 159129,- "brotli": 135030+ "min": 260808,+ "gzip": 74153,+ "brotli": 63460+ },+ "scene:agent-scene+lazy": {+ "min": 521183,+ "gzip": 163754,+ "brotli": 142345}}}diff --git a/bench/size/budgets.json b/bench/size/budgets.jsonindex 94138060..dde83593 100644--- a/bench/size/budgets.json+++ b/bench/size/budgets.json@@ -5,7 +5,7 @@"agent-scene": 100000},"budgets": {- "entry:core": 78500,+ "entry:core": 78400,"entry:model": 14400,"entry:nature": 13200,"entry:motion": 13600,@@ -28,11 +28,14 @@"entry:grass": 4400,"entry:clutter": 5300,"entry:texture-set": 900,- "entry:agent-scene": 135800,- "entry:agent-asset": 143200,+ "entry:agent-scene": 49200,+ "entry:agent-scene+lazy": 140600,+ "entry:agent-asset": 75600,+ "entry:agent-asset+lazy": 147700,"entry:hdri": 3300,"scene:lit-box": 56000,"scene:gltf-box": 75300,- "scene:agent-scene": 162400+ "scene:agent-scene": 75700,+ "scene:agent-scene+lazy": 167100}}diff --git a/docs/agent-character-motion.md b/docs/agent-character-motion.mdindex e6f2980e..9fad4244 100644--- a/docs/agent-character-motion.md+++ b/docs/agent-character-motion.md@@ -134,5 +134,5 @@ Candidate buffers belong to the decoder. Their contents expire at the next stagiThe asset must remain exclusively owned by its adapter while transactions are active.This feature does not create a rig for a flat mesh collection.-Imported asset recipes do not have retargeting, facial morph authoring or topology changes. For a hand reaching or a head looking at a point, use [`motion.ik`](agent-motion.md#inverse-kinematics) instead of writing rotations. In code, [skeleton pose layers](skeleton-pose.md) mix clips with masks and [retargeting](retarget.md) moves clips between rigs.+Imported asset recipes do not have retargeting, facial morph authoring or topology changes. For a hand reaching or a head looking at a point, use [`motion.ik`](agent-motion.md#inverse-kinematics) instead of writing rotations. In code, [skeleton pose layers](skeleton-pose.md) mix clips with masks and [retargeting](https://67js.codepawl.com/retarget.md) moves clips between rigs.The current WALL·E asset has separate mesh roots and no skeleton. It supports rigid part movement through source-node tracks.diff --git a/docs/agent-look.md b/docs/agent-look.mdindex 63942de0..e5649bf4 100644--- a/docs/agent-look.md+++ b/docs/agent-look.md@@ -168,7 +168,7 @@ These controls reuse `resolveVolumeFog` and its existing domain rules.Fog bounds reject dimensions that collapse after Float32 rounding.The current volume supports one directional scattering source.Local point scattering, transparent depth, multiple scattering, and multiple volumes remain outside this contract.-See [volume fog](volumetric.md) for renderer requirements and frame-time limits.+See [volume fog](https://67js.codepawl.com/volumetric.md) for renderer requirements and frame-time limits.## Effectsdiff --git a/docs/gltf.md b/docs/gltf.mdindex 783412d9..c6b29ba9 100644--- a/docs/gltf.md+++ b/docs/gltf.md@@ -107,8 +107,8 @@ renderer.render(camera);Translation, rotation, and scale tracks are supported.The importer rejects animation poses that become singular or change triangle winding.-The current source supports four-influence [GPU skinning](skinning.md). GPU skinning is available from version `0.4.0`.-The current source also supports relative POSITION/NORMAL morph targets and weight animations. See [morph import](gltf-morph.md).+The current source supports four-influence [GPU skinning](https://67js.codepawl.com/skinning.md). GPU skinning is available from version `0.4.0`.+The current source also supports relative POSITION/NORMAL morph targets and weight animations. See [morph import](https://67js.codepawl.com/gltf-morph.md).Morph primitives require authored base normals. TANGENT targets and per-target flat normal generation remain unsupported.The caller owns the Renderer67 instance.diff --git a/docs/lighting.md b/docs/lighting.mdindex a7b922f6..dde14301 100644--- a/docs/lighting.md+++ b/docs/lighting.md@@ -73,7 +73,7 @@ Inputs must be finite numbers. Positions are within ±1,000,000 scene units. ColKey/fill/ambient intensity is between zero and 100. Key color components are between zero and 1,000. Large coordinates still inherit Float32 rendering precision limits.-A point light casts a shadow only with `castShadow: true` (see [Local shadows](#local-shadows)); without it the light can illuminate through opaque walls. The original directional shadow map remains in use. Source-only [volume fog](volumetric.md) receives directional scattering and shadows. Point-light scattering and indirect bounces remain unfinished.+A point light casts a shadow only with `castShadow: true` (see [Local shadows](#local-shadows)); without it the light can illuminate through opaque walls. The original directional shadow map remains in use. Source-only [volume fog](https://67js.codepawl.com/volumetric.md) receives directional scattering and shadows. Point-light scattering and indirect bounces remain unfinished.## Spot lightsdiff --git a/docs/skeleton-pose.md b/docs/skeleton-pose.mdindex 7cfdc5be..18dcf386 100644--- a/docs/skeleton-pose.md+++ b/docs/skeleton-pose.md@@ -45,7 +45,7 @@ only a `rig` just computes joint positions. `rig` defaults to `createRigFromSkinone with `rootMatrix` when a scaled node sits above the root joints.Anywhere a joint is named you can use the joint name or a humanoid bone name such as `leftUpperArm`-(see [retargeting](retarget.md)), so a setup can move between rigs. An asset's joint names are its decoded node names, in+(see [retargeting](https://67js.codepawl.com/retarget.md)), so a setup can move between rigs. An asset's joint names are its decoded node names, in`asset.nodes[n].name`: the loader removes characters such as dots, so `Foot.L` in the file is `FootL` here.## Layers@@ -115,10 +115,10 @@ root rather than of the lower leg, so two-bone IK refuses them with an error; it## Limits- A foot or hand held by IK keeps its rotation from the clip, so a foot on a slope does not tilt to match the ground.-- Uniform scale only, as in the [retargeting](retarget.md) rig. Clip scale tracks are ignored.+- Uniform scale only, as in the [retargeting](https://67js.codepawl.com/retarget.md) rig. Clip scale tracks are ignored.- No joint angle limits. A pole keeps a knee on the right side, but nothing stops a target from bending it too far.- No full-body solve: moving a hand does not move the hips. Solvers run one at a time, so order them from the base of thebody outward.- Clip layers and masks are code only. Recipes and imported assets get IK through MCP with [`motion.ik`](agent-motion.md#inverse-kinematics).-- The [animation mixer](animation-mixer.md) works on rigid part transforms and has no layers, masks or IK. Use this addon+- The [animation mixer](https://67js.codepawl.com/animation-mixer.md) works on rigid part transforms and has no layers, masks or IK. Use this addonfor skinned rigs.diff --git a/package.json b/package.jsonindex 0f8ca3b4..320d26b4 100644--- a/package.json+++ b/package.json@@ -20,18 +20,24 @@"ROADMAP.md","THIRD-PARTY-NOTICES.md","skills",+ "docs/agent-asset.md",+ "docs/agent-character-motion.md",+ "docs/agent-look.md",+ "docs/agent-motion.md",+ "docs/agent-render-jobs.md",+ "docs/agent-review.md",+ "docs/agent-scene.md",+ "docs/export-glb.md","docs/gltf.md","docs/guide.md",- "docs/modeling.md",- "docs/mesh.md",- "docs/agent-scene.md",+ "docs/lighting.md",+ "docs/material-maps.md","docs/mcp.md",- "docs/agent-look.md",- "docs/agent-asset.md",- "docs/agent-render-jobs.md",- "docs/agent-motion.md",- "docs/agent-character-motion.md",- "docs/agent-review.md"+ "docs/mesh.md",+ "docs/modeling.md",+ "docs/physics.md",+ "docs/skeleton-pose.md",+ "docs/verification.md"],"main": "./build/67.module.js","module": "./build/67.module.js",