3D engine that AI agents drive
Point the repo surface at codepawl/67.js and rewrite the README
Nguyen Xuan Anb7be26861b91
diff --git a/README.md b/README.mdindex c3d788e6..6400ecd6 100644--- a/README.md+++ b/README.md@@ -1,13 +1,13 @@<p align="center"><a href="https://67js.codepawl.com"><picture>- <source media="(prefers-color-scheme: dark)" srcset="https://67js.codepawl.com/brand/wordmark-dark.svg?v=0.10.0" />- <img src="https://67js.codepawl.com/brand/wordmark-light.svg?v=0.10.0" alt="67js" width="260" />+ <source media="(prefers-color-scheme: dark)" srcset="public/brand/wordmark-dark.svg" />+ <img src="public/brand/wordmark-light.svg" alt="67js" width="260" /></picture></a></p>-<p align="center"><strong>A WebGL2 engine for 3D scenes that people and agents can build, inspect and render.</strong></p>+<p align="center"><strong>A WebGL2 3D engine that AI agents drive.</strong></p><p align="center"><a href="https://www.npmjs.com/package/@codepawlhq/67js"><img src="https://img.shields.io/npm/v/@codepawlhq/67js?color=3b6e22&label=npm" alt="npm version" /></a>@@ -16,33 +16,25 @@</p><p align="center">- <a href="https://67js.codepawl.com">Showcase</a> ·+ <a href="https://67js.codepawl.com/showcase.html">Showcase</a> ·<a href="https://67js.codepawl.com/docs.html">Documentation</a> ·<a href="https://67js.codepawl.com/llms.txt">Guide for agents</a> ·- <a href="https://github.com/anxuanng/67.js/blob/main/CHANGELOG.md">Changelog</a>+ <a href="CHANGELOG.md">Changelog</a></p><p align="center">- <img src="https://67js.codepawl.com/previews/forest.webp?v=0.10.0" alt="Birch, beech and fir trees with scanned leaves over a grassy slope, rendered by 67js" width="100%" />+ <a href="https://67js.codepawl.com/showcase.html?scene=airport"><img src="public/previews/showcase-airport.webp" alt="An airport ramp with an airliner at its stand and the turnaround crew, rendered by 67js" width="100%" /></a></p>-67js is a custom WebGL2 renderer with addons for terrain, vegetation, liquid, vehicles, characters and media export.-Every scene is plain data: geometry, a matrix and a material for each part.-The renderer batches parts that share geometry into instanced draws, and it plans GPU memory before it allocates.-An MCP server lets an agent author a scene as a JSON recipe, look at PNG previews and render images or video.+67js is a WebGL2 renderer with addons for terrain, vegetation, characters, liquid, vehicles and media export.+A scene is plain data: each part has a geometry, a matrix and a material.+An agent builds and changes a scene through an MCP server, looks at PNG previews and renders stills or MP4 video.+The goal is to be as capable as Blender and as light as three.js. [Issue #23](https://github.com/codepawl/67.js/issues/23) tracks the work.<table><tr>- <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="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>- <td><a href="https://67js.codepawl.com/object.html"><img src="https://67js.codepawl.com/previews/wall-e-exploded.webp" alt="An exploded robot study with 574 separate parts" /></a><br /><b>Assembly studio</b>: 574 parts that explode apart</td>- <td><a href="https://67js.codepawl.com/nature.html"><img src="https://67js.codepawl.com/previews/nature.webp" alt="A valley with a river, a wooden bridge and stylized trees" /></a><br /><b>Nature world</b>: viewpoints, daylight, wind and water</td>+ <td width="50%"><a href="https://67js.codepawl.com/showcase.html?scene=datacenter"><img src="public/previews/showcase-datacenter.webp" alt="A cutaway AI data center hall rendered by 67js" /></a><br /><b>AI data center</b></td>+ <td width="50%"><a href="https://67js.codepawl.com/showcase.html?scene=port"><img src="public/previews/showcase-port.webp" alt="A container port with cranes and stacked containers rendered by 67js" /></a><br /><b>Container port</b></td></tr></table>@@ -53,7 +45,7 @@ npm install 67js@npm:@codepawlhq/67js```The registry name is `@codepawlhq/67js`. The command installs it under the alias `67js`, so imports stay short.-The package is ESM and bundles its runtime dependencies. It needs Node.js 20.19 or later for the tools, and a WebGL2 browser for rendering.+The package is ESM. The tools need Node.js 20.19 or later, and rendering needs a WebGL2 browser.## Quick start@@ -84,72 +76,46 @@ const renderer = new Renderer67(canvas, parts, { samples: 4, memoryBudgetMiB: 25renderer.render({ eye: [4, 3, 6], target: [0, 1, 0] });```-To save a PNG from a script without a browser window or an MCP client, use the [render-from-a-script recipe](docs/guide.md#render-a-png-from-a-script-without-mcp).-+Call `renderer.updateParts(parts)` to move or recolour parts without a new upload.Call `renderer.resize()` after the canvas changes size, and `renderer.dispose()` before you replace the renderer.-Use `renderer.updateParts(parts)` to move or recolour parts without a new upload.The [guide](docs/guide.md) covers cameras, lights, effects and every material field.--A forest on scanned terrain takes a few more lines:--```js-import { createTerrain } from '67js/addons/terrain';-import { loadLeafTextures } from '67js/addons/texture-set';-import { scatterVegetation, selectLevels } from '67js/addons/vegetation';--const eye = [0, 4, 22];-const terrain = createTerrain({ size: 400, chunks: 8, seed: 11 });-const forest = scatterVegetation({- area: { minX: -60, maxX: 60, minZ: -80, maxZ: 20 },- terrainHeight: terrain.heightAt,- leafTextures: await loadLeafTextures('https://67js.codepawl.com/textures/leaves'),- seed: 23,-});-const trees = selectLevels(forest.instances, eye, { cullDistance: 160 }).parts;-```--The scanned textures are not in the npm package. The site serves them with open CORS, or you can copy `public/textures` from this repository to your own host.--## What is in the box--The core export is the renderer with geometry primitives, cameras, lights, effects and GLB export.-Each addon is a separate import, so a page loads only what it uses.--| Area | Import | What it does |-| --- | --- | --- |-| 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](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. |-| Path tracer | `67js/addons/path-tracer` | [Offline stills that follow Cycles](https://67js.codepawl.com/path-tracer.md): bounced light, glass and soft shadows on the CPU. |-| Light bake | `67js/addons/light-bake` | [Bounced light baked into one lightmap per part](https://67js.codepawl.com/light-bake.md), drawn through the emissive map. |-| 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](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. |--The full list of guides is on the [documentation page](https://67js.codepawl.com/docs.html).+To save a PNG from a script, use the [render-from-a-script recipe](docs/guide.md#render-a-png-from-a-script-without-mcp).## For agentsThe package includes an MCP server that connects an agent to a persistent browser renderer.+The server needs a local Chrome installation.```shnpx 67js-mcp --backend gpu --memory 192```-The server needs Node.js 20.19 or later and a local Chrome installation.-Agents author [JSON recipes](docs/agent-scene.md), set [lights and fog](docs/agent-look.md), import [GLB assets](docs/agent-asset.md) and author [motion](docs/agent-motion.md).-They get PNG previews back, compare up to four views in one [review grid](docs/agent-review.md) and run [render jobs](docs/agent-render-jobs.md) for stills and MP4 video.+Use `--backend cpu` on a machine without a GPU.+An agent authors a [JSON recipe](docs/agent-scene.md), sets [lights and fog](docs/agent-look.md), imports [GLB assets](docs/agent-asset.md) and adds [motion](docs/agent-motion.md).+It gets PNG previews back, compares up to four views in a [review grid](docs/agent-review.md) and runs [render jobs](docs/agent-render-jobs.md) for stills and MP4 video.The server accepts no arbitrary code and no remote asset URLs. The [MCP reference](docs/mcp.md) lists its tools.Two skills teach an agent the engine: [build-67js-scene](skills/build-67js-scene/SKILL.md) for scenes and materials, and [render-67js-media](skills/render-67js-media/SKILL.md) for image and video export.-Give an agent [llms.txt](https://67js.codepawl.com/llms.txt) for the plain-text guide.+For a plain-text guide, give the agent [llms.txt](https://67js.codepawl.com/llms.txt).++## Addons++Each addon is a separate import, so a page loads only what it uses.++| Area | Import | Guide |+| --- | --- | --- |+| Lighting | `67js/addons/hdri` | [Image-based lighting](docs/lighting.md) from `.hdr` files |+| Terrain | `67js/addons/terrain`, `67js/addons/texture-set` | [Chunked terrain](docs/terrain.md) with scanned ground layers |+| Vegetation | `67js/addons/vegetation`, `67js/addons/grass`, `67js/addons/clutter` | [Trees](docs/vegetation.md), [grass](docs/grass.md) and [ground clutter](docs/clutter.md) with wind and level of detail |+| Characters | `67js/addons/gltf`, `67js/addons/retarget`, `67js/addons/skeleton-pose` | [glTF import](docs/gltf.md), [clip retargeting](docs/retarget.md) and [pose layers with IK](docs/skeleton-pose.md) |+| Liquid | `67js/addons/spume` | [Baked liquid playback](docs/spume.md) with refraction and spray |+| Vehicles | `67js/addons/vehicle` | [Wheeled vehicles on a path](docs/vehicle.md) |+| Physics | `67js/addons/physics` | [Rapier contacts and joints](docs/physics.md) recorded into a timeline |+| Modeling | `67js/addons/mesh`, `67js/addons/modeling`, `67js/addons/sculpt` | [Mesh editing](docs/mesh.md), [modeling](docs/modeling.md) and [sculpt brushes](docs/sculpt.md) |+| Offline light | `67js/addons/path-tracer`, `67js/addons/light-bake` | [Path-traced stills](docs/path-tracer.md) and [baked lightmaps](docs/light-bake.md) |+| Agents | `67js/addons/agent-scene`, `67js/addons/agent-asset` | [Scene sessions](docs/agent-scene.md) with revisions and checkpoints |++The [documentation page](https://67js.codepawl.com/docs.html) lists every guide.## Render images and video@@ -157,45 +123,31 @@ The render command exports a scene to PNG or MP4 through headless Chrome, on the```shnpm run render -- --kind image --scene nature --backend gpu --preset high --output artifacts/nature.png-npm run render -- --kind video --scene motion --aspect portrait --backend gpu --encoder gpu --output artifacts/short.mp4```-Video export streams one frame at a time and waits for encoder backpressure, so a film never sits in memory.-NVENC is used when its preflight succeeds, with libx264 as the fallback.-Each export writes a JSON report with render, capture and encoder time and peak memory.+Video export streams one frame at a time, so a film never sits in memory.The [render skill](skills/render-67js-media/SKILL.md) lists every preset and flag.-## Run the showcase locally+## Run the site locally1. Install Node.js 22.12 or later.2. Run `npm ci`.3. Run `npm run dev`. Vite prints the local URL.-| Page | What you see |-| --- | --- |-| `/` | Home page with examples, install commands and release data. |-| `/object.html` | Assembly studio with orbit, explosion, layers, finishes and GLB export. |-| `/nature.html` | A valley with viewpoints, daylight, wind and water ripples. |-| `/film.html` | A 187-second procedural trailer with playback controls. |-| `/motion.html` | A 12-second keyframe animation with HDR. |-| `/view2d.html` | Flat vector scenes and orthographic model views. |-| `/assets.html` | A GLB viewer with textures, clips and PNG capture. |-## Performance claims-Measured results and their limits are in [verification.md](docs/verification.md).-They compare matching scenes on the same hardware. They do not show a general speed advantage over Three.js or visual parity with Blender.+[verification.md](docs/verification.md) has the measured results and their limits.+They compare matching scenes on the same hardware. They do not show a general speed advantage over three.js or visual parity with Blender.## Contributing-Read [CONTRIBUTING.md](https://github.com/anxuanng/67.js/blob/main/CONTRIBUTING.md) before you open a pull request. It covers setup, checks, code style and the release flow.+Read [CONTRIBUTING.md](CONTRIBUTING.md) before you open a pull request. It covers setup, checks, code style and the release flow.## Credits- [gl-matrix](https://github.com/toji/gl-matrix) supplies the matrix math.-- The glTF addon has its own parser and does not depend on [Three.js](https://threejs.org/). The Draco, meshopt and KTX2 decoders are Three.js loaders that you pass in.-- Textures, leaf atlases and the HDRI on the site are CC0 scans from [Poly Haven](https://polyhaven.com) and [ambientCG](https://ambientcg.com). See [the texture credits](https://github.com/anxuanng/67.js/blob/main/public/textures/CREDITS.md).-- WALL·E is a Disney/Pixar character. The study is procedural geometry with no external model assets.-- The trailer study follows the shot order of [a Universal Pictures trailer](https://www.youtube.com/watch?v=uYPbbksJxIg) with procedural sets and an original score. It contains no film footage or soundtrack samples.+- The glTF addon has its own parser. The Draco, meshopt and KTX2 decoders are [three.js](https://threejs.org/) loaders that you pass in.+- The textures and the HDRI on the site are CC0 scans from [Poly Haven](https://polyhaven.com) and [ambientCG](https://ambientcg.com). See [the texture credits](public/textures/CREDITS.md).+- The showcase models and their sources are listed in each world's `scene.json` under `public/showcase/`.[MIT](LICENSE) © CodePawldiff --git a/ROADMAP.md b/ROADMAP.mdindex 98e2223f..18aebfa4 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -33,7 +33,7 @@ Version `0.10.0` adds terrain, texture sets, vegetation, liquid playback, vehiclVersion `0.11.0` adds `addons/mesh` for polygon editing, with booleans, bevel, loop cuts, UV unwrapping and a modifier stack. It adds the `mesh_edit`, `mesh_stack` and `mesh_inspect` tools, plus grass, clutter and moss.Version `0.12.0` adds seeded procedural material patterns.Version `0.13.0` adds `addons/skeleton-pose` with clip layers, masks and IK, and `0.13.1` and `0.14.0` make it work on real imported characters, including through MCP.-[CHANGELOG.md](https://github.com/anxuanng/67.js/blob/main/CHANGELOG.md) lists every change, including work on `main` that is not released yet.+[CHANGELOG.md](https://github.com/codepawl/67.js/blob/main/CHANGELOG.md) lists every change, including work on `main` that is not released yet.The stdio MCP server supplies twenty-two schema-backed tools and persistent CPU/GPU image previews.Recipes retain lighting, volumetric fog, grading and directional shadow coverage with atomic edits and undo.diff --git a/changes/repo-surface.md b/changes/repo-surface.mdnew file mode 100644index 00000000..a025c390--- /dev/null+++ b/changes/repo-surface.md@@ -0,0 +1 @@+- Point the package, site and docs at the new `codepawl/67.js` repository, rewrite the README around the showcase worlds and drop the preview images that only the old README used.diff --git a/docs.html b/docs.htmlindex bcc530cd..05036f04 100644--- a/docs.html+++ b/docs.html@@ -7,7 +7,7 @@<a class="brand" href="/">67js</a><span class="version" data-release-version>Loading release</span><nav aria-label="Library"><a href="/docs.html" aria-current="page">Docs</a></nav>- <a class="site-nav-cta" href="https://github.com/anxuanng/67.js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a>+ <a class="site-nav-cta" href="https://github.com/codepawl/67.js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a></header><main id="content" class="docs docs-page"><aside class="docs-sidebar" aria-label="Documentation navigation">@@ -25,7 +25,7 @@</main><footer class="site-footer" aria-label="Site footer"><p><a class="brand" href="/" aria-label="67js home">67js</a> by <a href="https://codepawl.com">CodePawl</a></p>- <nav class="footer-links" aria-label="Project links"><a href="https://github.com/anxuanng/67.js">GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js">npm</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a><a href="/logo.svg" download>Logo SVG</a></nav>+ <nav class="footer-links" aria-label="Project links"><a href="https://github.com/codepawl/67.js">GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js">npm</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a><a href="/logo.svg" download>Logo SVG</a></nav></footer><script type="module" src="/src/documentation.js"></script></body></html>diff --git a/docs/agent-render-jobs.md b/docs/agent-render-jobs.mdindex 530c8274..11ac089d 100644--- a/docs/agent-render-jobs.md+++ b/docs/agent-render-jobs.md@@ -114,7 +114,7 @@ A seek to any frame gives the same pixels: a job samples each frame from its tim## Path tracer-An `image` job can ask for the offline [path tracer](https://github.com/anxuanng/67.js/blob/main/docs/path-tracer.md) with `settings.renderer`:+An `image` job can ask for the offline [path tracer](https://github.com/codepawl/67.js/blob/main/docs/path-tracer.md) with `settings.renderer`:```json{ "kind": "image", "width": 960, "height": 540,diff --git a/docs/guide.md b/docs/guide.mdindex e5c28aba..8d5b5080 100644--- a/docs/guide.md+++ b/docs/guide.md@@ -161,7 +161,7 @@ Extrusion supports holes and bevels. Open tube ends remain uncapped.4. Share the geometry among repeated parts.The [modeling contract](/modeling.md) defines input bounds, winding, bevel limits and resource estimates.-The [scene graph](https://github.com/anxuanng/67.js/blob/main/docs/scene-graph.md) supports hierarchy and pivots without changing mesh topology.+The [scene graph](https://github.com/codepawl/67.js/blob/main/docs/scene-graph.md) supports hierarchy and pivots without changing mesh topology.The [modeling demo](https://67js.codepawl.com/modeling.html) combines these tools in a lantern scene.These generators do not perform solid Boolean operations or provide a mesh editor.@@ -177,9 +177,9 @@ The result preserves topology, UVs and colors, and rebuilds normals.3. Inspect the resulting surface for folds or intersections.4. Rebuild surface patches and query indices after changing geometry.-The [sculpt contract](https://github.com/anxuanng/67.js/blob/main/docs/sculpt.md) defines brush strength, seam handling and work limits.+The [sculpt contract](https://github.com/codepawl/67.js/blob/main/docs/sculpt.md) defines brush strength, seam handling and work limits.Smoothing can shrink volume. Sculpting rejects skin and morph channels and does not remesh or prevent intersections.-Compatible deformations can become [relative morph targets](https://github.com/anxuanng/67.js/blob/main/docs/morph-targets.md) for animation.+Compatible deformations can become [relative morph targets](https://github.com/codepawl/67.js/blob/main/docs/morph-targets.md) for animation.## Contact detection@@ -194,7 +194,7 @@ The `surfaces` mode finds triangle contact. The `closed-solids` mode also tests5. Dispose the indices when their geometry is no longer needed.An index also supports `raycast(matrix, ray)` for a triangle number, hit point and barycentric coordinates.-The [mesh query contract](https://github.com/anxuanng/67.js/blob/main/docs/mesh-query.md) describes results, solid validation, numerical limits and budget errors.+The [mesh query contract](https://github.com/codepawl/67.js/blob/main/docs/mesh-query.md) describes results, solid validation, numerical limits and budget errors.Rebuild indices after geometry edits. Queries reject skin and morph channels.Contact results do not measure penetration depth, resolve collisions or diagnose z-fighting.@@ -210,11 +210,11 @@ Nearest mode chooses a surface point. Project mode casts along a target-local di4. Use the returned geometry with the target part's retained matrix.5. Inspect `stats` and the resulting mesh before rendering.-The [shrinkwrap contract](https://github.com/anxuanng/67.js/blob/main/docs/shrinkwrap.md) defines local distances, work budgets and miss handling.+The [shrinkwrap contract](https://github.com/codepawl/67.js/blob/main/docs/shrinkwrap.md) defines local distances, work budgets and miss handling.Collapsed output triangles cause errors. Projection does not guarantee clearance across the complete accessory surface.`createSurfacePatch` from `67js/addons/surface` clips target triangles into an overlay with its own UVs and material.-The [surface patch contract](https://github.com/anxuanng/67.js/blob/main/docs/surface.md) defines projector orientation, depth and local clearance.+The [surface patch contract](https://github.com/codepawl/67.js/blob/main/docs/surface.md) defines projector orientation, depth and local clearance.Patches and shrinkwrap are static operations. They do not follow skin or morph deformation.## HDR environment lighting@@ -230,7 +230,7 @@ Pass `environment: { map }` to light and reflect from an equirectangular HDR ima3. Play it with `createSkinClipPlayer(skin, clip).apply(seconds)`, then `renderer.updateParts(parts)`.4. For a crowd, `createCrowd({ count, clip, seed })` gives placement, time offsets and playback rates. Each instance needs its own skin pose.-The [retarget contract](https://github.com/anxuanng/67.js/blob/main/docs/retarget.md) covers rest-pose assumptions and measured cost. Mixamo clips need the owner's Adobe login to download; the code only consumes files.+The [retarget contract](https://github.com/codepawl/67.js/blob/main/docs/retarget.md) covers rest-pose assumptions and measured cost. Mixamo clips need the owner's Adobe login to download; the code only consumes files.## Baked liquid@@ -241,7 +241,7 @@ The [retarget contract](https://github.com/anxuanng/67.js/blob/main/docs/retarge3. Create a player with `createSpumePlayer(cache, { matrix, loop })`.4. Each frame, call `renderer.replaceParts([...sceneParts, ...player.partsAt(seconds)])` and render.-The [Spume contract](https://github.com/anxuanng/67.js/blob/main/docs/spume.md) covers the cache format, whitewater options, placement and measured cost.+The [Spume contract](https://github.com/codepawl/67.js/blob/main/docs/spume.md) covers the cache format, whitewater options, placement and measured cost.Textured, skinned and morphed parts may stay in the list unchanged while frames are replaced; adding or removing them needs a new renderer.## Wheeled vehicles@@ -254,7 +254,7 @@ Textured, skinned and morphed parts may stay in the list unchanged while framesWheel spin, front-wheel steering, roll, pitch and ground following come from the path.Scene-graph nodes and imported GLBs use `applyVehiclePoseToSceneGraph` and `applyVehiclePoseToAsset`.-The [vehicle contract](https://github.com/anxuanng/67.js/blob/main/docs/vehicle.md) lists conventions, options and limits.+The [vehicle contract](https://github.com/codepawl/67.js/blob/main/docs/vehicle.md) lists conventions, options and limits.## Trees and grass@@ -264,7 +264,7 @@ The [vehicle contract](https://github.com/anxuanng/67.js/blob/main/docs/vehicle.2. Pick detail per camera with `selectLevels(forest.instances, eye)`.3. Pass `view.parts` to `Renderer67` and rebuild when `view.changed` is true.-Cards (`leaves: 'cards'`, the default) are single-sided, alpha-masked, double-sided `foliage` textures that sway with the wind; `'mesh'` leaves cost about twice the triangles. Pass `barkTextures` for scanned bark and `leafTextures: await loadLeafTextures('/textures/leaves')` for scanned leaf cards. The [Vegetation contract](https://github.com/anxuanng/67.js/blob/main/docs/vegetation.md) lists species, triangle budgets and limits.+Cards (`leaves: 'cards'`, the default) are single-sided, alpha-masked, double-sided `foliage` textures that sway with the wind; `'mesh'` leaves cost about twice the triangles. Pass `barkTextures` for scanned bark and `leafTextures: await loadLeafTextures('/textures/leaves')` for scanned leaf cards. The [Vegetation contract](https://github.com/codepawl/67.js/blob/main/docs/vegetation.md) lists species, triangle budgets and limits.## Grass fields@@ -274,11 +274,11 @@ Cards (`leaves: 'cards'`, the default) are single-sided, alpha-masked, double-si2. Add `grass.parts` to the renderer and pass `wind` in each frame.3. When `grass.update(eye)` returns true, call `renderer.replaceParts` with the new part list.-Tint the ground under the grass with `grass.groundColor`. The [Grass contract](https://github.com/anxuanng/67.js/blob/main/docs/grass.md) lists options, levels, measured budgets and limits.+Tint the ground under the grass with `grass.groundColor`. The [Grass contract](https://github.com/codepawl/67.js/blob/main/docs/grass.md) lists options, levels, measured budgets and limits.-`67js/addons/clutter` is in the current source and not yet published. It scatters pebbles, rocks, twigs and fallen leaves over terrain in the same streamed tiles. Pick a `preset` (`meadow`, `forest`, `riverbed`, `scree`), pass `terrainHeight`, and add `clutter.parts` next to the grass. The [Clutter contract](https://github.com/anxuanng/67.js/blob/main/docs/clutter.md) lists options and budgets.+`67js/addons/clutter` is in the current source and not yet published. It scatters pebbles, rocks, twigs and fallen leaves over terrain in the same streamed tiles. Pick a `preset` (`meadow`, `forest`, `riverbed`, `scree`), pass `terrainHeight`, and add `clutter.parts` next to the grass. The [Clutter contract](https://github.com/codepawl/67.js/blob/main/docs/clutter.md) lists options and budgets.-`67js/addons/light-bake` is in the current source and not yet published. `bakeLightmaps(parts, lights, options)` ray traces the light that bounces between surfaces into a lightmap texture for each part and returns new parts that draw it through the emissive map; direct light stays live. The [Light bake contract](https://github.com/anxuanng/67.js/blob/main/docs/light-bake.md) lists the limits.+`67js/addons/light-bake` is in the current source and not yet published. `bakeLightmaps(parts, lights, options)` ray traces the light that bounces between surfaces into a lightmap texture for each part and returns new parts that draw it through the emissive map; direct light stays live. The [Light bake contract](https://github.com/codepawl/67.js/blob/main/docs/light-bake.md) lists the limits.## Terrain and ground textures@@ -288,7 +288,7 @@ Tint the ground under the grass with `grass.groundColor`. The [Grass contract](h2. `const terrain = createTerrain({ size, chunks, resolution, levels, seed })`; give every `terrain.parts` entry the one shared material.3. Pass `terrain.heightAt` to `scatterVegetation` and vehicles, and call `renderer.replaceParts` when `terrain.update(eye)` returns parts.-The [Terrain contract](https://github.com/anxuanng/67.js/blob/main/docs/terrain.md) lists every option, the texture-array memory and the limits.+The [Terrain contract](https://github.com/codepawl/67.js/blob/main/docs/terrain.md) lists every option, the texture-array memory and the limits.## Retained surface attachments@@ -302,7 +302,7 @@ The accessory uses the attachment's retained world matrix. Its positive Z axis f4. Update the target matrix, morph weights and skin palette for the frame.5. Call `attachment.update()` before `renderer.updateParts()`.-The [attachment contract](https://github.com/anxuanng/67.js/blob/main/docs/surface-attachment.md) defines retained identities, world-unit clearance and unsupported shader deformation.+The [attachment contract](https://github.com/codepawl/67.js/blob/main/docs/surface-attachment.md) defines retained identities, world-unit clearance and unsupported shader deformation.Updates sample the selected triangle without rebuilding a BVH.Static raycast hits can supply binding coordinates, but query indices cannot raycast a visibly skinned or morphed surface.An attachment positions one rigid frame. It does not conform the accessory footprint or prevent every intersection.@@ -396,7 +396,7 @@ The [lighting contract](/lighting.md) defines intensity, radius, range and validPoint lights have no local shadows and can illuminate through walls.Radius regularizes attenuation and does not create an area emitter.-The [volume fog contract](https://github.com/anxuanng/67.js/blob/main/docs/volumetric.md) covers depth-clipped directional scattering in version `0.4.0`.+The [volume fog contract](https://github.com/codepawl/67.js/blob/main/docs/volumetric.md) covers depth-clipped directional scattering in version `0.4.0`.Active fog requires `hdr: true`, `depth: true` and supported floating-point targets.Its depth texture contributes to the render memory estimate.@@ -422,11 +422,11 @@ Tracks target unique part names. Supported transform tracks are translation, rotVersion `0.4.0` supports `CUBICSPLINE` tracks with explicit `inTangent` and `outTangent` values on every keyframe.Tangents represent component changes per second. Quaternion tangents are component derivatives.-The [curve contract](https://github.com/anxuanng/67.js/blob/main/docs/animation-curves.md) defines interpolation, overshoot constraints and retained player buffers.+The [curve contract](https://github.com/codepawl/67.js/blob/main/docs/animation-curves.md) defines interpolation, overshoot constraints and retained player buffers.`createAnimationMixer(parts)` combines clips through reusable actions and absolute-time control timelines.Actions support weights, playback speed, fades and crossfades.-The [mixer contract](https://github.com/anxuanng/67.js/blob/main/docs/animation-mixer.md) defines blending, ownership and control ordering.+The [mixer contract](https://github.com/codepawl/67.js/blob/main/docs/animation-mixer.md) defines blending, ownership and control ordering.1. Create clips and bind their actions through `mixer.clipAction(clip)`.2. Author `play`, `fadeTo` or `crossFade` controls in nondecreasing time order.@@ -448,13 +448,13 @@ The renderer applies morph deltas before skinning.3. Update joint palette values and morph weights for the desired frame.4. Call `renderer.updateParts(parts)` to validate and upload the poses.-The [skinning contract](https://github.com/anxuanng/67.js/blob/main/docs/skinning.md) defines supported transforms, four influences and identity requirements.-The [morph contract](https://github.com/anxuanng/67.js/blob/main/docs/morph-targets.md) defines channel shapes, weight bounds and resource estimates.+The [skinning contract](https://github.com/codepawl/67.js/blob/main/docs/skinning.md) defines supported transforms, four influences and identity requirements.+The [morph contract](https://github.com/codepawl/67.js/blob/main/docs/morph-targets.md) defines channel shapes, weight bounds and resource estimates.Changing topology, influences or pose identities requires a new renderer.The glTF addon imports supported skins and relative targets, including joint and weight animation.`asset.applyAnimation(time, clipIndex)` updates retained parts and poses for upload.-The [glTF morph contract](https://github.com/anxuanng/67.js/blob/main/docs/gltf-morph.md) and [asset contract](/gltf.md) define the supported asset subset.+The [glTF morph contract](https://github.com/codepawl/67.js/blob/main/docs/gltf-morph.md) and [asset contract](/gltf.md) define the supported asset subset.## Recorded physics@@ -608,7 +608,7 @@ Core exports are available from `67js`:## Release and source availabilityPublished npm `0.4.0` includes modeling, sculpting, static mesh queries, shrinkwrap, surface patches, animation mixing, skinning, morphs, physics and lighting.-Retained [surface attachments](https://github.com/anxuanng/67.js/blob/main/docs/surface-attachment.md) are introduced in `0.4.1` and are absent from published npm `0.4.0`.+Retained [surface attachments](https://github.com/codepawl/67.js/blob/main/docs/surface-attachment.md) are introduced in `0.4.1` and are absent from published npm `0.4.0`.Source checkouts can contain unreleased changes beyond their package version.The [release metadata](/release.json) identifies the published package and browser module.diff --git a/docs/material-maps.md b/docs/material-maps.mdindex ea69950b..d2d908ce 100644--- a/docs/material-maps.md+++ b/docs/material-maps.md@@ -109,7 +109,7 @@ Moss is shaded as its own material, not as a tint. Where it grows, roughness bec## Splat layers-A standard-tag material can carry `layers` (up to four `{ color, normal, roughness, height, scale, tint, triplanar }` entries built from `loadTextureSet`) and a `splat` rule object instead of these single maps. The layers are blended by slope, height and a weight mask, sampled in world space and packed into texture arrays on units 11 to 14. They replace `map`, `normalMap`, `metallicRoughnessMap` and `occlusionMap`, which must be absent, and parts batch only when `layers` and `splat` are the same objects. See [Terrain](https://github.com/anxuanng/67.js/blob/main/docs/terrain.md).+A standard-tag material can carry `layers` (up to four `{ color, normal, roughness, height, scale, tint, triplanar }` entries built from `loadTextureSet`) and a `splat` rule object instead of these single maps. The layers are blended by slope, height and a weight mask, sampled in world space and packed into texture arrays on units 11 to 14. They replace `map`, `normalMap`, `metallicRoughnessMap` and `occlusionMap`, which must be absent, and parts batch only when `layers` and `splat` are the same objects. See [Terrain](https://github.com/codepawl/67.js/blob/main/docs/terrain.md).## Material layersdiff --git a/docs/verification.md b/docs/verification.mdindex b79564db..3f1ff5a9 100644--- a/docs/verification.md+++ b/docs/verification.md@@ -1,6 +1,6 @@# Verification-These figures are from the 0.3.x site and export work, measured around 2026-10-09 and not repeated since. Per-release checks from 0.4.0 on are in [release-verification.md](https://github.com/anxuanng/67.js/blob/main/docs/release-verification.md). Run `npm test` for the current test count.+These figures are from the 0.3.x site and export work, measured around 2026-10-09 and not repeated since. Per-release checks from 0.4.0 on are in [release-verification.md](https://github.com/codepawl/67.js/blob/main/docs/release-verification.md). Run `npm test` for the current test count.The checks used Windows Chrome 154 through Playwright, an RTX 3060 through ANGLE D3D11 and CPU rendering through SwiftShader.diff --git a/index.html b/index.htmlindex ee93769b..af632ec3 100644--- a/index.html+++ b/index.html@@ -25,7 +25,7 @@<nav aria-label="Library"><a href="/docs.html">Docs</a></nav>- <a class="site-nav-cta" href="https://github.com/anxuanng/67.js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a>+ <a class="site-nav-cta" href="https://github.com/codepawl/67.js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a></header><main id="content"><section class="hero" aria-label="67js introduction and live preview">@@ -121,7 +121,7 @@ renderer.render({ eye: [58, 31, 84], target: [-8, 3, -18] });</code></pre></main><footer class="site-footer" aria-label="Site footer"><p><a class="brand" href="/" aria-label="67js home">67js</a> by <a href="https://codepawl.com">CodePawl</a></p>- <nav class="footer-links" aria-label="Project links"><a href="https://github.com/anxuanng/67.js">GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js">npm</a><a data-release-commit href="https://github.com/anxuanng/67.js">Release commit</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a><a href="/logo.svg" download>Logo SVG</a></nav>+ <nav class="footer-links" aria-label="Project links"><a href="https://github.com/codepawl/67.js">GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js">npm</a><a data-release-commit href="https://github.com/codepawl/67.js">Release commit</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a><a href="/logo.svg" download>Logo SVG</a></nav></footer><script type="module" src="/src/home.js"></script><script type="module" src="/src/home-effects.js"></script>diff --git a/modeling.html b/modeling.htmlindex ef10776d..977ee983 100644--- a/modeling.html+++ b/modeling.html@@ -23,7 +23,7 @@</main><footer class="site-footer" aria-label="Site footer"><div class="footer-introduction"><a class="brand" href="/" aria-label="67js home">67js</a><p>Browser 3D, from scene to film.<br>Made by <a href="https://codepawl.com">CodePawl</a>.</p></div>- <div class="footer-links"><a href="https://github.com/anxuanng/67.js" data-icon="github">GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js">npm</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a></div>+ <div class="footer-links"><a href="https://github.com/codepawl/67.js" data-icon="github">GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js">npm</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a></div></footer><script type="module" src="/src/modeling-player.js"></script></body>diff --git a/package.json b/package.jsonindex bb456aba..03a116b9 100644--- a/package.json+++ b/package.json@@ -3,12 +3,15 @@"version": "0.15.0","private": false,"type": "module",- "description": "JavaScript tools for agent-driven 3D authoring, browser previews and memory-aware CPU/GPU rendering",+ "description": "A WebGL2 3D engine that AI agents drive: an MCP server, PNG previews and CPU or GPU export to images and video","license": "MIT","homepage": "https://67js.codepawl.com","repository": {"type": "git",- "url": "git+https://github.com/anxuanng/67.js.git"+ "url": "git+https://github.com/codepawl/67.js.git"+ },+ "bugs": {+ "url": "https://github.com/codepawl/67.js/issues"},"files": ["build",diff --git a/public/previews/forest.webp b/public/previews/forest.webpdeleted file mode 100644index e477eb67..00000000Binary files a/public/previews/forest.webp and /dev/null differdiff --git a/public/previews/lighting.webp b/public/previews/lighting.webpdeleted file mode 100644index a7b69da3..00000000Binary files a/public/previews/lighting.webp and /dev/null differdiff --git a/public/previews/nature.webp b/public/previews/nature.webpdeleted file mode 100644index 9a7cbdaf..00000000Binary files a/public/previews/nature.webp and /dev/null differdiff --git a/public/previews/spume.webp b/public/previews/spume.webpdeleted file mode 100644index fb5de73f..00000000Binary files a/public/previews/spume.webp and /dev/null differdiff --git a/public/previews/terrain.webp b/public/previews/terrain.webpdeleted file mode 100644index c93c395c..00000000Binary files a/public/previews/terrain.webp and /dev/null differdiff --git a/public/previews/vehicle.webp b/public/previews/vehicle.webpdeleted file mode 100644index 6bee509b..00000000Binary files a/public/previews/vehicle.webp and /dev/null differdiff --git a/public/previews/wall-e-exploded.webp b/public/previews/wall-e-exploded.webpdeleted file mode 100644index a4774e1c..00000000Binary files a/public/previews/wall-e-exploded.webp and /dev/null differdiff --git a/public/previews/wall-e.png b/public/previews/wall-e.pngdeleted file mode 100644index 52a96dba..00000000Binary files a/public/previews/wall-e.png and /dev/null differdiff --git a/public/showcase/datacenter/scene.json b/public/showcase/datacenter/scene.jsonindex 8130b0ce..206e65b9 100644--- a/public/showcase/datacenter/scene.json+++ b/public/showcase/datacenter/scene.json@@ -325,7 +325,7 @@"model": "Racks, busways, cooling, pipework, hall shell and swap cart","author": "CodePawl","licence": "MIT",- "source": "https://github.com/anxuanng/67.js"+ "source": "https://github.com/codepawl/67.js"},{"model": "Metal029, Metal027, Metal038 (rack frames, steel, panels, cowls)",@@ -349,7 +349,7 @@"model": "Texture sets packed and resized from the maps above (colour, normal, roughness and metalness)","author": "CodePawl","licence": "MIT",- "source": "https://github.com/anxuanng/67.js"+ "source": "https://github.com/codepawl/67.js"}],"waterReflection": truediff --git a/showcase.html b/showcase.htmlindex 953f3289..0960c568 100644--- a/showcase.html+++ b/showcase.html@@ -15,7 +15,7 @@<nav aria-label="Library"><a href="/docs.html">Docs</a></nav>- <a class="site-nav-cta" href="https://github.com/anxuanng/67.js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a>+ <a class="site-nav-cta" href="https://github.com/codepawl/67.js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a></header><main id="content"><section class="showcase-stage" aria-labelledby="showcase-title">@@ -39,7 +39,7 @@</main><footer class="site-footer" aria-label="Site footer"><p><a class="brand" href="/" aria-label="67js home">67js</a> by <a href="https://codepawl.com">CodePawl</a></p>- <nav class="footer-links" aria-label="Project links"><a href="https://github.com/anxuanng/67.js">GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js">npm</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a></nav>+ <nav class="footer-links" aria-label="Project links"><a href="https://github.com/codepawl/67.js">GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js">npm</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a></nav></footer><script type="module" src="/src/showcase.js"></script></body>diff --git a/src/home.js b/src/home.jsindex 8400542c..b5dc3e08 100644--- a/src/home.js+++ b/src/home.js@@ -66,7 +66,7 @@ function renderRelease() {setLink('[data-release-tarball]', release ? releaseURL(release.tarball) : null, true);setLink('[data-release-module]', release ? releaseURL(release.module) : null, true);setLink('[data-release-api]', release ? releaseURL(release.api) : null);- setLink('[data-release-commit]', release ? `https://github.com/anxuanng/67.js/commit/${release.commit}` : null);+ setLink('[data-release-commit]', release ? `https://github.com/codepawl/67.js/commit/${release.commit}` : null);setText('[data-release-commit]', release ? `Commit ${release.commit.slice(0, 7)}` : 'Release commit');}