3D engine that AI agents drive
Rename the project to 67js
Nguyen Xuan An0e7e2aaa2da9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 1bf34e5d..09f80180 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,7 @@## Unreleased+- Rename the project from 67.js to 67js, with no dot, and the GitHub repository to `anxuanng/67js`. The npm package `@codepawlhq/67js`, the site domain and the Worker name stay.- Add a recipe timeline, job audio and an encoder choice (part of issue #60, first slice). A recipe `timeline` lists named shots played in order over the motion clock, each with a `duration`, an optional `motionStart`, a partial `camera` on top of the sampled one and a `dip` through black; `set-timeline` edits it. `settings.timeline: { start }` renders it as an image, stills or video: one clock drives the shot, the motion and the renderer, so a seek to any time gives the same frame as inside a video. `settings.audio: { file, offset }` mixes one `.wav`, `.mp3`, `.ogg` or `.flac` from the new `--audio <folder>` option into a video, checks that it covers the video, decodes both streams afterwards and reports `metrics.sync` (a gap over 50 ms fails the job); `settings.encoder` is `cpu` or `nvenc`. File names are plain names without paths, drives or protocols, files must be regular and at most 32 MiB, and ffmpeg gets `-protocol_whitelist file`; nothing else comes from the agent. Video jobs can last 60 s (was 30), still capped at 900 frames, so a 60 s video runs at 15 fps. Measured through MCP on SwiftShader (`npm run smoke:film-timeline`): 9 PNG seeks across three shots and a dip match 8 stills byte for byte, and a 60 s, 900 frame video with sound rendered in 58 s (84 s on a loaded machine) at 128 x 128 with the click in the decoded audio on the decoded cut frame (offset 0.1 ms, streams 20 ms apart). Tool schemas stay inside their budgets (the timeline is a record reference; fields are in `scene_capabilities` `filmTimeline`). Left out: resumable long renders, several audio tracks, gain, markers inside a shot, animation events, crossfades and timelines for imported assets. The video sequence editor stays a non-goal.- Decide on WebGPU (part of issue #56, no engine change): wait, WebGL2 stays the only backend. Headless Chrome 156 has a WebGPU adapter on the RTX 3060 with no flags, but none under the MCP `cpu` flags (`--use-angle=swiftshader`); the SwiftShader Vulkan adapter needs `--use-webgpu-adapter=swiftshader`. With three.js as a proxy on 3 bench scenes, WebGPU frames were 2.6 to 4.4 times WebGL on the GPU and 1.4 to 3.0 times on SwiftShader, and first frames were slower. Browser support, shader rewrite size (about 1,400 GLSL lines and 450 call sites) and bundle cost are in `docs/webgpu-decision.md`.- Add recipe particles and hair (part of issue #63, no new tool). A `particles` section holds seeded emitter systems (point, box, sphere or disc; gravity, drag, wind, a landing floor, size over life) and hair systems that grow strands from a surface node, loaded on demand with the new `particles` module (`src/particles.js`, `src/hair.js`). Each particle is a closed-form function of its seed, index and time, so a seek never replays: the same time gives the same particles, a seek backwards repeats them and a seeded system gives identical bytes (`npm run smoke:agent-particles` checks PNG bytes through the MCP preview, including a second session). Counts are bounded to 4 systems, 2000 particles each, 4000 in total and 100000 drawn vertices. New `set-particles` operation and a `particles` report in `scene_inspect`; the schema takes one record reference, so the tool schemas stay within the total budget and the fields live in `scene_capabilities`. Cloth and particles now share validation helpers (`src/agent-recipe-checks.js`). Left out: particle collisions and bounce, rotation, colour and alpha, hair collision and combing. The smoke, fire and liquid decision (no browser solver, with measured grid costs) is in `docs/physics.md`.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex a746197a..d48bde61 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -1,4 +1,4 @@-# Contributing to 67.js+# Contributing to 67jsThank you for helping. This file covers setup, the checks a change must pass, the code style and the release flow.diff --git a/README.md b/README.mdindex f48ec3a7..9c3932ec 100644--- a/README.md+++ b/README.md@@ -2,7 +2,7 @@<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="67.js" width="260" />+ <img src="https://67js.codepawl.com/brand/wordmark-light.svg?v=0.10.0" alt="67js" width="260" /></picture></a></p>@@ -23,10 +23,10 @@</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 67.js" width="100%" />+ <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%" /></p>-67.js is a custom WebGL2 renderer with addons for terrain, vegetation, liquid, vehicles, characters and media export.+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.diff --git a/ROADMAP.md b/ROADMAP.mdindex 41c4fb5f..b87d75cc 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -1,6 +1,6 @@-# 67.js implementation roadmap+# 67js implementation roadmap-67.js develops 3D authoring and rendering tools for agents, with browser previews, deterministic animation and exported media.+67js develops 3D authoring and rendering tools for agents, with browser previews, deterministic animation and exported media.This document separates shipping capabilities from work in progress. Performance claims require measurements on matching scenes and hardware.The end goal is to be as capable as Blender, as light as three.js and as AI friendly as possible. Issue 23 in the project repository defines each part and orders the work. `docs/parity.md` in that repository records the coverage of each Blender feature.diff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.mdindex d67a2eae..9c5512dc 100644--- a/THIRD-PARTY-NOTICES.md+++ b/THIRD-PARTY-NOTICES.md@@ -76,7 +76,7 @@ The npm, pnpm, Yarn and Bun SVG marks are sourced from Simple Icons and distribuThe mesh addon loads `manifold-3d` as a separate dependency for booleans.Manifold is distributed under the Apache License, Version 2.0.Its dependency package includes the complete license text.-Manifold's JavaScript and WASM code are not bundled into the 67.js library archive.+Manifold's JavaScript and WASM code are not bundled into the 67js library archive.The MCP runtime serves them to its preview page from the installed peer dependency.Source and license: https://github.com/elalish/manifold.@@ -85,7 +85,7 @@ Source and license: https://github.com/elalish/manifold.The physics addon loads `@dimforge/rapier3d-compat` as a separate dependency.Rapier is distributed under the Apache License, Version 2.0.Its dependency package includes the complete license text.-Rapier's JavaScript and WASM code are not bundled into the 67.js library archive.+Rapier's JavaScript and WASM code are not bundled into the 67js library archive.Source and license: https://github.com/dimforge/rapier.js.## DejaVu Sans 2.37 (3D text outlines, `src/font-default.js`)diff --git a/assets.html b/assets.htmlindex fdd31988..b4a2a29a 100644--- a/assets.html+++ b/assets.html@@ -3,8 +3,8 @@<head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" />- <meta name="description" content="Load a GLB asset into 67.js, inspect its materials and scrub rigid node animation." />- <title>Asset viewer · 67.js</title>+ <meta name="description" content="Load a GLB asset into 67js, inspect its materials and scrub rigid node animation." />+ <title>Asset viewer · 67js</title><link rel="icon" href="/favicon.svg" /></head><body>diff --git a/bench/agent-modeling/README.md b/bench/agent-modeling/README.mdindex 57beac4a..6bf20d09 100644--- a/bench/agent-modeling/README.md+++ b/bench/agent-modeling/README.md@@ -1,6 +1,6 @@# Agent modeling suite-The suite measures how well an agent models through the 67.js MCP tools. It records how often the agent succeeds and+The suite measures how well an agent models through the 67js MCP tools. It records how often the agent succeeds andwhat each success costs in tool calls, tokens and time. It is the yardstick from the modeling plan: a mesh featureearns its place only if it raises these numbers.@@ -61,7 +61,7 @@ node bench/agent-modeling/run.mjs --claude <path to claude> --model sonnet --lab```Each task gets a fresh non-interactive Claude Code session in an empty temporary folder. The session has only the-67.js MCP server, its built-in file and shell tools are disabled, and it runs under a per-task budget (`--budget`, in+67js MCP server, its built-in file and shell tools are disabled, and it runs under a per-task budget (`--budget`, inUSD, default 3) and timeout (`--timeout`, in seconds, default 1200). Pick tasks with `--tasks crate,bolt`. Rawtranscripts and exported recipes go to `artifacts/agent-modeling/<run>/`. The summary, with the model ID reported bythe session, goes to `results/<run>.json`. Grade one recipe by hand with@@ -123,7 +123,7 @@ score and cannot be regraded. The next run records one.## Baseline-`results/2026-10-30-07-48-sonnet-baseline.json`: `claude-sonnet-5-5`, one run per task, without the `build-67js-scene` skill, 67.js 0.11.0.+`results/2026-10-30-07-48-sonnet-baseline.json`: `claude-sonnet-5-5`, one run per task, without the `build-67js-scene` skill, 67js 0.11.0.10 of 10 passed with 67 tool calls and $4.76 in total. The `bracket` record comes from a rerun after its prompt wasmade unambiguous about the total height; the others were graded again after three checker fixes, without new agent runs.diff --git a/bench/agent-modeling/run.mjs b/bench/agent-modeling/run.mjsindex a886679f..c7525f9d 100644--- a/bench/agent-modeling/run.mjs+++ b/bench/agent-modeling/run.mjs@@ -1,4 +1,4 @@-// Runs the agent modeling suite: one fresh, non-interactive Claude Code session per task, with only the 67.js MCP+// Runs the agent modeling suite: one fresh, non-interactive Claude Code session per task, with only the 67js MCP// server, then grades the recipe the agent exported.//// node bench/agent-modeling/run.mjs --claude <claude executable> [--model sonnet] [--tasks crate,bolt]diff --git a/bench/agent-modeling/tasks.mjs b/bench/agent-modeling/tasks.mjsindex b907bcae..ae966b53 100644--- a/bench/agent-modeling/tasks.mjs+++ b/bench/agent-modeling/tasks.mjs@@ -5,7 +5,7 @@ import { REFERENCES } from './references.mjs';import { KETTLE_START, KETTLE_START_PLAIN } from './kettle.mjs';import { DESK_START, DESK_START_PLAIN, DESK_CHECKS } from './desk.mjs';-export const PROMPT_PREAMBLE = `You are modeling with the 67.js MCP tools. Build the object described below as a procedural recipe scene:+export const PROMPT_PREAMBLE = `You are modeling with the 67js MCP tools. Build the object described below as a procedural recipe scene:start it with scene_create, refine it with mesh_edit, mesh_stack and scene_apply, and look at it with scene_look whenthat helps. Units are metres and Y is up. Rest the object on the ground (lowest point at Y = 0), centred on X = 0 andZ = 0. Build it as closed, watertight solids. When the object is finished, call scene_export_recipe once: the exporteddiff --git a/bench/reference/README.md b/bench/reference/README.mdindex 5813d903..a66c2e87 100644--- a/bench/reference/README.md+++ b/bench/reference/README.md@@ -1,6 +1,6 @@# Reference renders-This suite scores how close a 67.js render is to Blender on 11 fixed scenes. Later work uses these scores as its starting point.+This suite scores how close a 67js render is to Blender on 11 fixed scenes. Later work uses these scores as its starting point.## Run it@@ -14,7 +14,7 @@ CI does not run this suite. `tests/reference-baseline.test.js` checks only thatMeasured on 2026-10-30 with an RTX 3060, SwiftShader and Blender 5.2.2. The metric is [FLIP](https://github.com/NVlabs/flip) for LDR images: 0 means identical, and a higher score means a larger visible difference.-| Scene | 67.js against Cycles | EEVEE against Cycles | 67.js against EEVEE | Largest visible gap against Cycles |+| Scene | 67js against Cycles | EEVEE against Cycles | 67js against EEVEE | Largest visible gap against Cycles || --- | --- | --- | --- | --- || `outdoor-hdri` | 0.0676 | 0.0383 | 0.0520 | Soft shadow contact, and a darker ball base || `character` | 0.0995 | 0.0740 | 0.0833 | No contact shadow from the environment light |@@ -25,36 +25,36 @@ Measured on 2026-10-30 with an RTX 3060, SwiftShader and Blender 5.2.2. The metr| `fog` | 0.2612 | 0.2662 | 0.0542 | No multiple scattering || `lit-interior` | 0.4997 | 0.5159 | 0.1204 | No indirect light, and point lights cast no shadows || `spot-area` | 0.1242 | 0.1935 | 0.1707 | The sphere is lit more weakly at its shaded edge, and the wall has no bounce light |-| `brick-graph` | 0.2269 | 0.1440 | 0.1480 | Bump is weaker than Blender's Bump node, so the joints cast less shadow, and Blender's noise is not 67.js noise, so brick tone differs |+| `brick-graph` | 0.2269 | 0.1440 | 0.1480 | Bump is weaker than Blender's Bump node, so the joints cast less shadow, and Blender's noise is not 67js noise, so brick tone differs |-Rows are the baseline taken before shadows for point lights. The `lit-interior` scene now sets `castShadow` on its three point lights. With shadows, 67.js scores 0.5055 against Cycles (0.4997 before, so 0.0058 worse) and 0.0923 against EEVEE (0.1204 before, better): the shadow shape now matches, but Cycles fills its shadows with indirect light and 67.js leaves them dark. The committed `lit-interior` row stays at the earlier numbers. `spot-area` is new with shadows, a spot light and an area light.+Rows are the baseline taken before shadows for point lights. The `lit-interior` scene now sets `castShadow` on its three point lights. With shadows, 67js scores 0.5055 against Cycles (0.4997 before, so 0.0058 worse) and 0.0923 against EEVEE (0.1204 before, better): the shadow shape now matches, but Cycles fills its shadows with indirect light and 67js leaves them dark. The committed `lit-interior` row stays at the earlier numbers. `spot-area` is new with shadows, a spot light and an area light.Light bake (issue #55): `npm run reference -- --bake lit-interior` bakes bounced light into the room with `addons/light-bake` (defaults: 128 samples, 2 bounces, 25,648 texels, about 6 s on this machine) and leaves the scene itself unchanged; Blender still gets the plain scene. Measured 2026-10-31 on the RTX 3060: `lit-interior` against Cycles goes from 0.5055 to 0.1444 (SwiftShader 0.5051 to 0.1439), and against EEVEE from 0.0923 to 0.4739, because EEVEE has no indirect light here and the bake adds it. No other scene moved by more than 0.002 (the largest change was 0.0001, `car-paint` against EEVEE). The committed baseline rows and images are not rewritten. The remaining gap shows in the FLIP image as faint blotches on the walls, which is bake noise at 128 samples; at 48 samples the blotches were plain to see and the score was 0.1688.-`brick-graph` (issue #50) is a wall of bricks written as one material graph (triangle waves for the joints, half a brick of shift on every second course, noise through a colour ramp, height as bump) on a quad with UVs, so it uses `mapping: "uv"`. `render-blender.py` translates the same graph JSON into Blender nodes (Math, Map Range, Noise Texture, Color Ramp, Mix and Bump), so each side evaluates its own nodes. It measured 0.2269 against Cycles and 0.1440 for EEVEE on 2026-10-31. A first run scored 0.4027 and showed a black wall in 67.js: the `min` and `max` nodes returned NaN. The scene found that bug. The other rows were re-measured in the same run; `glass` against Cycles moved from 0.1450 to 0.1326 and `lit-interior` to the with-shadows numbers described above, and no other score moved by more than 0.002.+`brick-graph` (issue #50) is a wall of bricks written as one material graph (triangle waves for the joints, half a brick of shift on every second course, noise through a colour ramp, height as bump) on a quad with UVs, so it uses `mapping: "uv"`. `render-blender.py` translates the same graph JSON into Blender nodes (Math, Map Range, Noise Texture, Color Ramp, Mix and Bump), so each side evaluates its own nodes. It measured 0.2269 against Cycles and 0.1440 for EEVEE on 2026-10-31. A first run scored 0.4027 and showed a black wall in 67js: the `min` and `max` nodes returned NaN. The scene found that bug. The other rows were re-measured in the same run; `glass` against Cycles moved from 0.1450 to 0.1326 and `lit-interior` to the with-shadows numbers described above, and no other score moved by more than 0.002.-The mean against Cycles is 0.198 for 67.js and 0.160 for EEVEE. The mean difference between the RTX 3060 and SwiftShader is 0.007.+The mean against Cycles is 0.198 for 67js and 0.160 for EEVEE. The mean difference between the RTX 3060 and SwiftShader is 0.007.-EEVEE against Cycles is a yardstick: it shows what a good rasterizer scores. In `lit-interior` and `fog`, EEVEE scores no better than 67.js. Those two scenes depend on indirect light, and this suite does not use EEVEE light probes. A low score does not mean a good picture on its own, so read each score with its image in `images/`.+EEVEE against Cycles is a yardstick: it shows what a good rasterizer scores. In `lit-interior` and `fog`, EEVEE scores no better than 67js. Those two scenes depend on indirect light, and this suite does not use EEVEE light probes. A low score does not mean a good picture on its own, so read each score with its image in `images/`.`baseline.json` also holds the scores for SwiftShader and each render time in Blender.## How the two sides stay comparable- **Geometry:** `scenes.js` builds each scene with the engine's code, and `harness.js` hands the same vertices, normals and textures to Blender. This replaces GLB, because GLB export can not write textures yet (issue #49).-- **Character:** Blender's glTF importer does not reproduce the rest pose of `RobotExpressive.glb`. three.js and 67.js agree on that pose. So `harness.js` skins the vertices first, and Blender gets the result as plain geometry.-- **Lights:** a measurement on a white plane gave the units. Sun strength equals irradiance in both. A Blender point light has 4π watts for each unit of 67.js intensity.+- **Character:** Blender's glTF importer does not reproduce the rest pose of `RobotExpressive.glb`. three.js and 67js agree on that pose. So `harness.js` skins the vertices first, and Blender gets the result as plain geometry.+- **Lights:** a measurement on a white plane gave the units. Sun strength equals irradiance in both. A Blender point light has 4π watts for each unit of 67js intensity.- **Environment:** the same HDRI at the same rotation. The clouds line up in the images.- **Display:** Blender writes linear pixels, and `score.py` applies the tone curve and gamma from `src/post.js`. Both sides then use one display transform.-- **Lighting tricks:** the 67.js fill lights are off. All light comes from the sun, the environment and point lights.+- **Lighting tricks:** the 67js fill lights are off. All light comes from the sun, the environment and point lights.## Limits- Scores come from one camera for each scene and one machine. They do not measure motion or speed.- This suite sets an HDRI from code and leaves occlusion off; `--ambient-occlusion <strength> [--ambient-occlusion-radius <units>]` turns it on. A recipe reaches only the named procedural setups, so these scores still describe a better environment than an agent gets (issue #53).-- The Blender leaf material has no translucency, and the 67.js foliage shader adds it by a trick. `foliage` is therefore partly a difference in materials.+- The Blender leaf material has no translucency, and the 67js foliage shader adds it by a trick. `foliage` is therefore partly a difference in materials.- `render-blender.py` does not read normal maps. No scene uses one yet, so a new scene with a normal map must add that first.-- `glass` and `car-paint` use the real 67.js `transmission` and `clearcoat` layers, and the Blender side sets the same values on the Principled BSDF. 67.js refracts through the front surface only, so the sphere does not show the inverted sky that Cycles traces through the back face.+- `glass` and `car-paint` use the real 67js `transmission` and `clearcoat` layers, and the Blender side sets the same values on the Principled BSDF. 67js refracts through the front surface only, so the sphere does not show the inverted sky that Cycles traces through the back face.- `car-paint` scored 0.1521 against Cycles and `glass` 0.1326 (it was 0.1450 with the `liquid` material). The other scenes scored the same as in the table above, to four digits. The table above is the 2026-10-30 baseline and has not been rewritten.-- `fog` has no noise on either side. EEVEE and 67.js approximate scattering, and Cycles follows 8 volume bounces.-- Sample counts are fixed: 256 for Cycles with denoising, 64 for EEVEE and 4 MSAA samples for 67.js.+- `fog` has no noise on either side. EEVEE and 67js approximate scattering, and Cycles follows 8 volume bounces.+- Sample counts are fixed: 256 for Cycles with denoising, 64 for EEVEE and 4 MSAA samples for 67js.diff --git a/bench/reference/harness.js b/bench/reference/harness.jsindex df3e150b..4968127f 100644--- a/bench/reference/harness.js+++ b/bench/reference/harness.js@@ -33,7 +33,7 @@ function addWeightedTransform(output, offset, palette, joint, weight, x, y, z, toutput[offset + 2] += weight * (palette[base + 2] * x + palette[base + 6] * y + palette[base + 10] * z + palette[base + 14] * translationWeight);}-// Blender's glTF importer cannot reproduce this rig's pose (three.js and 67.js agree on it), so Blender gets the+// Blender's glTF importer cannot reproduce this rig's pose (three.js and 67js agree on it), so Blender gets the// skinned result as plain geometry. A score then measures shading, and not an importer's pose.function bakeSkinnedGeometry(part) {const { geometry, skin } = part;@@ -70,7 +70,7 @@ function describeScene(id, scene) {};}-// Blender always gets the original parts: the bake is 67.js's approximation of what Cycles computes.+// Blender always gets the original parts: the bake is 67js's approximation of what Cycles computes.async function bakeScene(scene, bakeOptions) {const { bakeLightmaps } = await import('/src/light-bake.js');const { pointLights, keyColor, lightDirection } = scene.environment;diff --git a/bench/reference/render-blender.py b/bench/reference/render-blender.pyindex 557aa2b5..3e395b00 100644--- a/bench/reference/render-blender.py+++ b/bench/reference/render-blender.py@@ -1,7 +1,7 @@# Renders each described scene in Cycles and EEVEE, and saves linear pixels as .npy for the scorer.# blender -b --factory-startup --python bench/reference/render-blender.py -- <work directory># Light units were measured on a white plane: sun strength equals irradiance, a point or spot light has 4 pi watts for each-# unit of 67.js intensity, and an area light has pi watts for each unit.+# unit of 67js intensity, and an area light has pi watts for each unit.import base64import jsonimport math@@ -20,9 +20,9 @@ EEVEE_SAMPLES = 64WATTS_PER_INTENSITY = 4 * math.piWATTS_PER_AREA_INTENSITY = math.piSUN_ANGLE = math.radians(1)-# 67.js is Y up, and Blender is Z up.+# 67js is Y up, and Blender is Z up.Y_UP_TO_Z_UP = Matrix(((1, 0, 0, 0), (0, 0, -1, 0), (0, 1, 0, 0), (0, 0, 0, 1)))-# The centre of an environment image looks toward -Z in 67.js, which is +Y here. In Blender it looks toward -X.+# The centre of an environment image looks toward -Z in 67js, which is +Y here. In Blender it looks toward -X.ENVIRONMENT_ROTATION_Z = -math.pi / 2NUMPY_TYPES = {"Float32Array": np.float32,@@ -135,7 +135,7 @@ def add_vertex_colors(material, principled, description):def add_material_layers(material, principled, description):- """Maps the 67.js material layers onto the Principled BSDF inputs of the same meaning."""+ """Maps the 67js material layers onto the Principled BSDF inputs of the same meaning."""principled.inputs["Coat Weight"].default_value = description.get("clearcoat", 0)principled.inputs["Coat Roughness"].default_value = description.get("clearcoatRoughness", 0)principled.inputs["Transmission Weight"].default_value = description.get("transmission", principled.inputs["Transmission Weight"].default_value)@@ -145,7 +145,7 @@ def add_material_layers(material, principled, description):principled.inputs["Sheen Weight"].default_value = 1set_linear_color(principled.inputs["Sheen Tint"], sheen_color)principled.inputs["Sheen Roughness"].default_value = description.get("sheenRoughness", 0)- # Blender's specular level 0.5 is the 4 percent reflectance that 67.js calls specular 1.+ # Blender's specular level 0.5 is the 4 percent reflectance that 67js calls specular 1.principled.inputs["Specular IOR Level"].default_value = 0.5 * description.get("specular", 1)set_linear_color(principled.inputs["Specular Tint"], description.get("specularColor", [1, 1, 1]))attenuation_distance = description.get("attenuationDistance")@@ -163,13 +163,13 @@ GRAPH_MATH_OPERATIONS = {"add": "ADD", "sub": "SUBTRACT", "mul": "MULTIPLY", "div": "DIVIDE", "min": "MINIMUM", "max": "MAXIMUM","pow": "POWER", "abs": "ABSOLUTE", "floor": "FLOOR", "fract": "FRACT", "sqrt": "SQRT",}-# 67.js noise has no seed in Blender, and Blender's noise function differs from the one in src/material-texture-kit.js,+# 67js noise has no seed in Blender, and Blender's noise function differs from the one in src/material-texture-kit.js,# so a graph with noise only matches in how it looks, not pixel for pixel.GRAPH_BUMP_DISTANCE = 0.15class GraphTranslator:- """Builds the Blender nodes for a 67.js material graph (src/material-graph.js). Values are a number, a socket,+ """Builds the Blender nodes for a 67js material graph (src/material-graph.js). Values are a number, a socket,{"color": socket or three numbers} or {"vector": three numbers or sockets}. Only the nodes the reference scenes use exist."""def __init__(self, material):@@ -307,7 +307,7 @@ class GraphTranslator:def add_graph(material, principled, description):- """Builds the material from its graph, so Blender evaluates the same nodes 67.js baked into textures."""+ """Builds the material from its graph, so Blender evaluates the same nodes 67js baked into textures."""translator = GraphTranslator(material)graph = description["graph"]links = material.node_tree.links@@ -430,8 +430,8 @@ def build_spot_light(scene, index, spot):def build_area_light(scene, index, area):- # Measured on a white plane: a Blender area light of W watts matches a 67.js area light of W / pi candela, and the- # 67.js formula stays within about 1.2 percent on the axis from 0.2 m to 2 m for 1 m and 2 m squares.+ # Measured on a white plane: a Blender area light of W watts matches a 67js area light of W / pi candela, and the+ # 67js formula stays within about 1.2 percent on the axis from 0.2 m to 2 m for 1 m and 2 m squares.light = bpy.data.lights.new(f"Area-{index}", "AREA")light.energy = area["intensity"] * WATTS_PER_AREA_INTENSITYlight.color = area["color"]@@ -447,7 +447,7 @@ def build_area_light(scene, index, area):width_axis = Vector((1, 0, 0))width_axis.normalize()height_axis = width_axis.cross(normal)- # The light shines toward its local -Z, and the 67.js rectangle faces along its direction.+ # The light shines toward its local -Z, and the 67js rectangle faces along its direction.rotation = Matrix((width_axis, height_axis, -normal)).transposed()area_object.rotation_mode = "QUATERNION"area_object.rotation_quaternion = rotation.to_quaternion()diff --git a/bench/reference/run.mjs b/bench/reference/run.mjsindex 0bbd3419..0066b721 100644--- a/bench/reference/run.mjs+++ b/bench/reference/run.mjs@@ -1,6 +1,6 @@-// Renders the reference scenes in 67.js and Blender, then scores them: npm run reference+// Renders the reference scenes in 67js and Blender, then scores them: npm run reference// --ambient-occlusion <strength> [--ambient-occlusion-radius <units>] turns occlusion on (off by default).-// --bake [<id>,<id>] bakes bounced light into the named scenes (every scene when no ids follow) before 67.js draws them;+// --bake [<id>,<id>] bakes bounced light into the named scenes (every scene when no ids follow) before 67js draws them;// Blender still gets the plain scene.// Use --score-only to score existing renders, --skip-blender to keep them, and --scene <id> for one scene.import { spawnSync } from 'node:child_process';diff --git a/bench/reference/score.py b/bench/reference/score.pyindex 59d60d5b..833f1448 100644--- a/bench/reference/score.py+++ b/bench/reference/score.py@@ -1,4 +1,4 @@-# Scores each 67.js render against Cycles and EEVEE with FLIP, and saves side by side images.+# Scores each 67js render against Cycles and EEVEE with FLIP, and saves side by side images.# uv run --no-project --python 3.12 --with flip-evaluator --with pillow --with numpy python -I bench/reference/score.py <work directory> <output directory># FLIP is 0 for identical images, and higher means a larger visible difference. EEVEE against Cycles is a yardstick:# it shows what a good rasterizer scores on the same scene.@@ -45,8 +45,8 @@ def side_by_side(cycles, eevee, gpu, scores):panels = [panel(cycles, "Cycles"),panel(eevee, f"EEVEE (FLIP {scores['eevee-vs-cycles']})"),- panel(gpu, f"67.js GPU (FLIP {scores['gpu-vs-cycles']})"),- panel(error_map, "FLIP error, 67.js GPU against Cycles"),+ panel(gpu, f"67js GPU (FLIP {scores['gpu-vs-cycles']})"),+ panel(error_map, "FLIP error, 67js GPU against Cycles"),]sheet = Image.new("RGB", (PANEL_WIDTH * 2, (PANEL_HEIGHT + LABEL_HEIGHT) * 2))for index, item in enumerate(panels):diff --git a/bench/runtime/README.md b/bench/runtime/README.mdindex 071b3909..64140a49 100644--- a/bench/runtime/README.md+++ b/bench/runtime/README.md@@ -1,6 +1,6 @@# Runtime against three.js-This suite compares what a frame costs in 67.js and in three.js on 7 matching scenes. **three.js wins most of them today.**+This suite compares what a frame costs in 67js and in three.js on 7 matching scenes. **three.js wins most of them today.**## Culling and levels of detail (issue 37)@@ -23,11 +23,11 @@ CI does not run this suite. It needs Chrome and a GPU, and `tests/runtime-report## Result-Measured on 2026-10-31 at 960 by 540 with 4 MSAA samples, against three.js 0.186.1. A ratio above 1 means that 67.js costs more.+Measured on 2026-10-31 at 960 by 540 with 4 MSAA samples, against three.js 0.186.1. A ratio above 1 means that 67js costs more.**Full frame on SwiftShader, in milliseconds.** This is the path that a headless agent uses.-| Scene | 67.js | three.js | Ratio |+| Scene | 67js | three.js | Ratio || --- | --- | --- | --- || `instanced-objects` | 631 | 48 (instanced 44) | 13.3 || `many-materials` | 2,207 | 237 | 9.3 |@@ -39,7 +39,7 @@ Measured on 2026-10-31 at 960 by 540 with 4 MSAA samples, against three.js 0.186**Full frame on an RTX 3060, in milliseconds.** Other jobs were using the GPU during this run, so these numbers are noisy.-| Scene | 67.js | three.js | Ratio |+| Scene | 67js | three.js | Ratio || --- | --- | --- | --- || `instanced-objects` | 1.25 | 4.34 (instanced 0.36) | 0.3 || `many-materials` | 4.75 | 2.97 | 1.6 |@@ -51,7 +51,7 @@ Measured on 2026-10-31 at 960 by 540 with 4 MSAA samples, against three.js 0.186**First frame on an RTX 3060, in milliseconds.** Each run has an empty browser profile, so no shader cache helps either engine.-| Scene | 67.js | three.js | Ratio |+| Scene | 67js | three.js | Ratio || --- | --- | --- | --- || `instanced-objects` | 2,608 | 204 | 12.8 || `many-materials` | 2,564 | 269 | 9.5 |@@ -66,13 +66,13 @@ Measured on 2026-10-31 at 960 by 540 with 4 MSAA samples, against three.js 0.186**three.js wins:**- Full frames on SwiftShader, in every scene.-- Full frames on the RTX 3060, in 6 of 7 scenes. In the seventh, an `InstancedMesh` beats 67.js by 3.5 times.+- Full frames on the RTX 3060, in 6 of 7 scenes. In the seventh, an `InstancedMesh` beats 67js by 3.5 times.- The first frame, in every scene.-- GPU memory that WebGL calls show, in every scene. 67.js allocates about 46 MB for its render targets.-- Fewer triangles when objects are off camera, because it culls them. 67.js draws all of them (issue 37).+- GPU memory that WebGL calls show, in every scene. 67js allocates about 46 MB for its render targets.+- Fewer triangles when objects are off camera, because it culls them. 67js draws all of them (issue 37).- Heap memory in `skinned-characters`, because three.js clones one parsed file.-**67.js wins:**+**67js wins:**- CPU time to submit a frame, in 6 of 7 scenes. It takes 0.07 ms against 3.91 ms for 5,000 individual meshes. It groups objects into a few draw calls by itself. An `InstancedMesh` needs the same grouping by hand in three.js.- Heap memory in 6 of 7 scenes.@@ -93,9 +93,9 @@ FLIP between the two engines, where 0 means identical.| `many-lights` | 0.132 || `many-materials` | 0.241 |-Both engines use the same geometry, lights and tone curve, so these are small differences. `many-materials` is the largest, because half of its spheres are metal and three.js has only an ambient light, with nothing for metal to reflect. 67.js reflects a constant environment map, so it is the one that has reflections.+Both engines use the same geometry, lights and tone curve, so these are small differences. `many-materials` is the largest, because half of its spheres are metal and three.js has only an ambient light, with nothing for metal to reflect. 67js reflects a constant environment map, so it is the one that has reflections.-The comparison is not exact. 67.js pays for an environment map and an HDR post-processing pass, and three.js does not. A scene with an environment map in three.js costs more than this.+The comparison is not exact. 67js pays for an environment map and an HDR post-processing pass, and three.js does not. A scene with an environment map in three.js costs more than this.## How it measuresdiff --git a/bench/runtime/run.mjs b/bench/runtime/run.mjsindex afb7528e..979dfc9b 100644--- a/bench/runtime/run.mjs+++ b/bench/runtime/run.mjs@@ -1,4 +1,4 @@-// Compares 67.js and three.js on matching scenes: npm run benchmark:runtime+// Compares 67js and three.js on matching scenes: npm run benchmark:runtime// Use --gpu-only to skip SwiftShader. --scene <id>, --engine <name> and --frames <count> run a part, and do not rewrite// the report.import { spawnSync } from 'node:child_process';diff --git a/bench/size/README.md b/bench/size/README.mdindex 5fbf898a..b9a28cd8 100644--- a/bench/size/README.md+++ b/bench/size/README.md@@ -14,7 +14,7 @@Measured on 2026-10-31 with three.js 0.186.1. Sizes are bytes gzip.-| Scene | 67.js | three.js | Goal |+| Scene | 67js | three.js | Goal || --- | --- | --- | --- || `lit-box` | 48,762 | 133,652 | 50,000 || `gltf-box` | 159,422 | 155,814 | 80,000 |diff --git a/docs.html b/docs.htmlindex 21abd7d7..527ea455 100644--- a/docs.html+++ b/docs.html@@ -1,6 +1,6 @@<!doctype html><html lang="en">-<head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta name="description" content="67.js documentation: scenes, materials, cameras, animation, GLB assets, CPU/GPU media export and AI agent workflows."/><title>Documentation · 67.js</title><link rel="icon" href="/favicon.svg"/></head>+<head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta name="description" content="67js documentation: scenes, materials, cameras, animation, GLB assets, CPU/GPU media export and AI agent workflows."/><title>Documentation · 67js</title><link rel="icon" href="/favicon.svg"/></head><body class="documentation"><a class="skip-link" href="#content">Skip to content</a><header class="navigation">@@ -23,8 +23,8 @@</div></main><footer class="site-footer" aria-label="Site footer">- <div class="footer-introduction"><a class="brand" href="/" aria-label="67.js home">67<span>.js</span></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"><span class="package-logo package-logo-npm" aria-hidden="true"></span>npm</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a><a href="/logo.svg" download>Logo SVG</a></div>+ <div class="footer-introduction"><a class="brand" href="/" aria-label="67js home">67<span>.js</span></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/67js" data-icon="github">GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js"><span class="package-logo package-logo-npm" aria-hidden="true"></span>npm</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a><a href="/logo.svg" download>Logo SVG</a></div></footer><script type="module" src="/src/documentation.js"></script></body></html>diff --git a/docs/benchmark.json b/docs/benchmark.jsonindex 2e4c3fa7..8955c0a9 100644--- a/docs/benchmark.json+++ b/docs/benchmark.json@@ -8,13 +8,13 @@},"results": [{- "name": "67.js instanced",+ "name": "67js instanced","milliseconds": 0.015000000596046448,"calls": 8,"pixelAgreement": 1},{- "name": "67.js individual",+ "name": "67js individual","milliseconds": 1.8168749995529652,"calls": 575,"pixelAgreement": 0.99999755859375diff --git a/docs/film-storyboard.md b/docs/film-storyboard.mdindex ce9039b1..9cdc9da8 100644--- a/docs/film-storyboard.md+++ b/docs/film-storyboard.md@@ -1,7 +1,7 @@-# Oppenheimer: a 67.js trailer study+# Oppenheimer: a 67js trailer studyThis 187-second procedural reconstruction follows the visual structure of [Universal Pictures’ Oppenheimer New Trailer](https://www.youtube.com/watch?v=uYPbbksJxIg).-The study uses 33 authored cuts across 13 sets, rendered through the actual 67.js WebGL engine.+The study uses 33 authored cuts across 13 sets, rendered through the actual 67js WebGL engine.All geometry, camera moves and motion come from the scene code.The output contains no source footage, dialogue or soundtrack.diff --git a/docs/gltf.md b/docs/gltf.mdindex c6b29ba9..50818840 100644--- a/docs/gltf.md+++ b/docs/gltf.md@@ -149,7 +149,7 @@ Without the matching decoder, a file that uses a compression extension fails wit### Decoders-The decoders are the Three.js loaders, and they stay yours: only an application that passes one imports Three.js. 67.js does not bundle or fetch their wasm files, so you choose where they are served.+The decoders are the Three.js loaders, and they stay yours: only an application that passes one imports Three.js. 67js does not bundle or fetch their wasm files, so you choose where they are served.A Draco loader needs `decodeDracoFile(buffer, onLoad, attributeIds, attributeTypes, colorSpace, onError)`, a meshopt decoder needs `ready` and `decodeGltfBuffer`, and a KTX2 loader needs `load(url, onLoad, onProgress, onError)`.```jsdiff --git a/docs/guide.md b/docs/guide.mdindex cb4eef89..a6e9e558 100644--- a/docs/guide.md+++ b/docs/guide.md@@ -1,8 +1,8 @@-# 67.js guide+# 67js guideBuild a scene once. Make it interactive. Export the frame or film.-67.js is a WebGL2 graphics toolkit with shared geometry, deterministic animation and a bounded media pipeline. It is not API-compatible with Three.js and does not provide a Blender-style modeling editor.+67js is a WebGL2 graphics toolkit with shared geometry, deterministic animation and a bounded media pipeline. It is not API-compatible with Three.js and does not provide a Blender-style modeling editor.## Install@@ -513,7 +513,7 @@ The CPU addon owns recipe state. The separate Node MCP server connects it to broGive the agent this guide and the matching repository skill. Start with a scene brief: focal subject, visual references, camera, output size, required interaction, GPU/CPU backend and memory budget. Read the matching scene recipe and run the smallest trial first.-Suggested prompt: “Use 67.js to build an interactive mechanical study. Reuse meshes, use a 256MiB render budget, provide orbit and keyboard controls, pause hidden playback, and capture a real wide and mobile preview. List unsupported features. Do not claim speed superiority without a comparable benchmark.”+Suggested prompt: “Use 67js to build an interactive mechanical study. Reuse meshes, use a 256MiB render budget, provide orbit and keyboard controls, pause hidden playback, and capture a real wide and mobile preview. List unsupported features. Do not claim speed superiority without a comparable benchmark.”Agent workflow: inspect the installed `VERSION` and supported exports. Create finite invertible transforms. Share geometry identities. Validate bounds.@@ -547,7 +547,7 @@ Core exports are available from `67js`:`67js/addons/canvas2d`: 2D recipes. `67js/addons/gltf`: optional asset decoding. These are separate imports to keep the core smaller.-67.js targets WebGL2. Version `0.4.0` includes the APIs below. Check the installed package version and release metadata before using them.+67js targets WebGL2. Version `0.4.0` includes the APIs below. Check the installed package version and release metadata before using them.## Release and source availabilitydiff --git a/docs/lighting.md b/docs/lighting.mdindex dde14301..9077201e 100644--- a/docs/lighting.md+++ b/docs/lighting.md@@ -116,6 +116,6 @@ Validation runs before light arrays or the framebuffer change. Invalid later ligTwo shapes were considered: mutable light nodes with independent scene ownership, and serializable lights in the existing environment contract. Environment data was chosen because film samples already provide absolute-time frame overrides. Light hierarchy nodes and editor handles require a later authoring contract.-[Three.js PointLight](https://threejs.org/docs/pages/PointLight.html) documents candela intensity, inverse-square attenuation and a smooth finite cutoff. [Blender light objects](https://docs.blender.org/manual/en/dev/render/lights/light_object.html) distinguish source size and emitted power. 67.js radius currently regularizes attenuation. It does not reproduce Blender's spherical emitter or watt-based power.+[Three.js PointLight](https://threejs.org/docs/pages/PointLight.html) documents candela intensity, inverse-square attenuation and a smooth finite cutoff. [Blender light objects](https://docs.blender.org/manual/en/dev/render/lights/light_object.html) distinguish source size and emitted power. 67js radius currently regularizes attenuation. It does not reproduce Blender's spherical emitter or watt-based power.Run `node --test tests/lighting.test.js` for retained-state checks and `node scripts/smoke-lighting.mjs` with the development server running for linear HDR pixel checks, native GPU timing and before/after laboratory images.diff --git a/docs/mesh.md b/docs/mesh.mdindex bea76db0..482c101b 100644--- a/docs/mesh.md+++ b/docs/mesh.md@@ -367,7 +367,7 @@ with n-gon caps, with creases of sharpness 10, 2 and 0.5. A crease of sharpnessVolume differs by under 1% on four cases, because it is measured on bent quads from each quad's first corner.Timing, measured on this machine: one level on a 100,489-quad grid takes about 225 ms (402k faces out), and about 390 ms-with a crease on every edge. That is fast enough that 67.js does not keep a stencil table; a stack node reuses its cached+with a crease on every edge. That is fast enough that 67js does not keep a stencil table; a stack node reuses its cachedresult until an earlier node changes.### Decimate, remesh and levels of detaildiff --git a/docs/parity.md b/docs/parity.mdindex 9b1b02a3..7cbaec99 100644--- a/docs/parity.md+++ b/docs/parity.md@@ -1,6 +1,6 @@# Blender parity ledger-This ledger compares 67.js with each feature in the [Blender 5.2 manual](https://docs.blender.org/manual/en/latest/).+This ledger compares 67js with each feature in the [Blender 5.2 manual](https://docs.blender.org/manual/en/latest/).It is the record for the goal in issue #23. Use `npm run parity` to print the coverage of each section.Modifier coverage (rows under `Modeling > Modifiers`, from `npm run parity`): 11 done, 16 partial, 33 missing and 1 out of scope, 8 of the done rows compared with Blender, 18% of the in-scope rows done.@@ -9,20 +9,20 @@ Modifier coverage (rows under `Modeling > Modifiers`, from `npm run parity`): 11| Status | Meaning || --- | --- |-| `done` | 67.js covers the purpose of the feature, and the Evidence column links to a test. |+| `done` | 67js covers the purpose of the feature, and the Evidence column links to a test. || `partial` | Some of the feature works. The note says what exists and what does not. |-| `missing` | The feature is in scope, and 67.js does not have it. |+| `missing` | The feature is in scope, and 67js does not have it. || `out of scope` | The goal does not include the feature. The note gives the reason. |-Agents are the user of 67.js, so a row judges the purpose of a Blender feature and not its interface. A row covers the pages below it unless a finer row exists.+Agents are the user of 67js, so a row judges the purpose of a Blender feature and not its interface. A row covers the pages below it unless a finer row exists.`done` does not mean equal to Blender. A test shows that the feature works, and it does not show that the result matches. `npm run parity` counts a row as compared only when its evidence is in `tests/fixtures/blender/` or `bench/reference/`.-`bench/reference/` scores 67.js renders against Cycles and EEVEE on 8 scenes. Its README gives the scores and the largest gap in each scene.+`bench/reference/` scores 67js renders against Cycles and EEVEE on 8 scenes. Its README gives the scores and the largest gap in each scene.`tests/blender-golden.test.js` compares mesh operations with results from Blender. A compared row can still differ, and `tests/fixtures/blender/differences.json` gives the reason for each difference.-Rows differ in size: `Modeling > Modifiers > Generate > Weld Modifier` and `Rendering > Render Engines > Cycles` each count as one. Do not quote the percentage as a measure of how close 67.js is to Blender.+Rows differ in size: `Modeling > Modifiers > Generate > Weld Modifier` and `Rendering > Render Engines > Cycles` each count as one. Do not quote the percentage as a measure of how close 67js is to Blender.To change a row, change its status and its evidence in the same pull request as the feature. `tests/parity-ledger.test.js` fails if a `done` row has no evidence, if a link is broken or if a manual page has no row.@@ -230,7 +230,7 @@ To move to a new Blender release, run `node scripts/parity-manual-snapshot.mjs`.| Add-ons > glTF 2.0 | partial | Import is broad. Export writes the five texture channels as PNG, skins with joints, morph targets and node clips, and bakes pattern materials with box projected UVs; Blender 5.2 and three.js open the RobotExpressive export with its 43 bones and 14 clips. Morph weight clips export, and the `scene_export_glb` MCP tool writes the current pose or an imported clip as a GLB file, checked in Blender 5.2 for a patterned recipe, the robot with IK and its Walking action. Not yet: recipe motion tracks as clips, a clip together with IK or node overrides. | [gltf](../tests/gltf.test.js), [export](../tests/export.test.js), [round trip](../tests/export-roundtrip.test.js), [MCP contract](../tests/mcp-tools.test.js) | #49 || Add-ons > Manage UI Translations | out of scope | Blender interface work. | | || Add-ons > VR Scene Inspection | out of scope | Interface for a person. | | |-| Advanced | out of scope | Decided in issue #23: 67.js does not run agent code. MCP and the JavaScript API take the place of `bpy`. | | |+| Advanced | out of scope | Decided in issue #23: 67js does not run agent code. MCP and the JavaScript API take the place of `bpy`. | | |## Work outside the manual@@ -240,7 +240,7 @@ The goal also needs this work, and no page in the Blender manual covers it.| --- | --- | --- | --- || Parity evidence | partial | This ledger exists. The Blender comparisons do not. | #24, #25, #26 || Bundle size | partial | `npm run size` checks a budget for each entry, and the package has a 1 MiB limit. three.js is gone from the library; only the benchmark page imports it. | #27, #33, #34, #35, #36 |-| Runtime speed | partial | `bench/runtime` compares 8 scenes, and three.js wins most of the 7 older ones. Frustum culling per part and per instance group is on by default, `lods` from `generateGeometryLods` pick a level per instance by pixel error (`docs/culling-lod.md`), and `createGpuTimer` plus `createAdaptiveResolution` give live viewers GPU timing and a bounded resolution scale. On `large-outdoor` 67.js is 1.55 ms against 6.0 ms for three.js on an RTX 3060. Part of #37: recipes have no way to declare `lods` yet, shadow passes are not culled, and bakes run on the main thread. | #28, #37, #38, #74 |+| Runtime speed | partial | `bench/runtime` compares 8 scenes, and three.js wins most of the 7 older ones. Frustum culling per part and per instance group is on by default, `lods` from `generateGeometryLods` pick a level per instance by pixel error (`docs/culling-lod.md`), and `createGpuTimer` plus `createAdaptiveResolution` give live viewers GPU timing and a bounded resolution scale. On `large-outdoor` 67js is 1.55 ms against 6.0 ms for three.js on an RTX 3060. Part of #37: recipes have no way to declare `lods` yet, shadow passes are not culled, and bakes run on the main thread. | #28, #37, #38, #74 || Agent measurement | partial | A task suite runs on one model and reads recipes only. | #29, #30, #31, #69 || Pull request checks | partial | The `Test` workflow reports a status and does not block a merge. | #32 || Relations between parts | partial | The agent version of snapping: node `relations` (`attach`, `gap`, `flush`, `align`, `centered`) over world bounds or a tagged region, solved again on every edit, cycles rejected. Tests in [part-relations](../tests/part-relations.test.js); suite tasks `kettle-resize` and `desk-resize` with plain twins (no gain in calls measured on Sonnet). No snapping to edges or vertices, no relation on the part's own tagged region. | #44 |diff --git a/docs/physics.md b/docs/physics.mdindex 22691785..f84fc761 100644--- a/docs/physics.md+++ b/docs/physics.md@@ -44,7 +44,7 @@ applyAnimation(1); // A backward seek produces the same recorded pose.physics.dispose();```-`boxPart` is an existing 67.js part with a retained `Float32Array(16)` matrix.+`boxPart` is an existing 67js part with a retained `Float32Array(16)` matrix.The binding replaces its world translation and rotation while keeping its scale and matrix identity.The physics body origin must match the visual part origin.Multiple visual parts can bind to one body when they share that origin.@@ -413,11 +413,11 @@ Blender comparison (`scripts/blender-cloth.py`, Blender 5.2.2, default stiffness| Case | Result || --- | --- || 2 x 1.5 m sheet pinned along its top, 2 s | Mean vertex distance 0.08 percent of the height, free edge 1.2485 m against 1.25 m. Both hang straight, so this is a weak test. |-| 1.6 m sheet dropped on a 0.4 m ball, 2 s | Does not match: mean vertex distance 63 percent of the sheet size (lowest point -0.47 m in 67.js, 0.35 m in Blender). This is a model and timing difference, not a stretch defect (numbers below). No parity is claimed for draping. |+| 1.6 m sheet dropped on a 0.4 m ball, 2 s | Does not match: mean vertex distance 63 percent of the sheet size (lowest point -0.47 m in 67js, 0.35 m in Blender). This is a model and timing difference, not a stretch defect (numbers below). No parity is claimed for draping. |-Drape measurements (same 13 x 13 grid, 1.6 m sheet at 1 m, ball radius 0.4 m at the origin, mass 0.2 kg/m2; Blender 5.2.2 default stiffness, quality 8, air damping 1; 67.js defaults):+Drape measurements (same 13 x 13 grid, 1.6 m sheet at 1 m, ball radius 0.4 m at the origin, mass 0.2 kg/m2; Blender 5.2.2 default stiffness, quality 8, air damping 1; 67js defaults):-| | 67.js | Blender |+| | 67js | Blender || --- | --- | --- || Longest edge over rest length, at 2 s | 1.021 | 1.048 || Mean edge over rest length, at 2 s | 1.001 | 1.007 |@@ -426,9 +426,9 @@ Drape measurements (same 13 x 13 grid, 1.6 m sheet at 1 m, ball radius 0.4 m at| Nearest vertex to the ball centre when resting on it | 0.410 (radius + 0.01 thickness) | 0.427 (radius + 0.01 ball distance + 0.01 cloth distance, plus the 48-segment sphere) || Mean vertex motion in the last 2 s | 0.025 m, nearly settled | 0.30 m, still sliding off the ball |-- Stretch is far inside 10 percent in both solvers, so stiffness or iteration count does not explain the gap; `tests/cloth-blender.test.js` pins the 67.js drape to 10 percent per edge and 5 percent in area.+- Stretch is far inside 10 percent in both solvers, so stiffness or iteration count does not explain the gap; `tests/cloth-blender.test.js` pins the 67js drape to 10 percent per edge and 5 percent in area.- The setups match except collision margins, which differ by 17 mm and are too small to matter.-- Blender had not settled at the compared frame (2 s, lowest point 0.35 m), nor at 8 s (lowest -0.83 m, still falling): the sheet falls slowly, reaching the ball near 2 s, where 67.js lands within 0.4 s, and then slides off one side. At 8 s the distance is still 58 percent of the sheet size. Matching 67.js `damping` to 3 or 8 only moves the 2 s distance from 63 to 60 or 61 percent, so air drag does not explain it either. The cause is a difference between the models (Blender's cloth is damped springs with its own collision response and falls slowly; this solver is position-based), and nothing was tuned to hide it.+- Blender had not settled at the compared frame (2 s, lowest point 0.35 m), nor at 8 s (lowest -0.83 m, still falling): the sheet falls slowly, reaching the ball near 2 s, where 67js lands within 0.4 s, and then slides off one side. At 8 s the distance is still 58 percent of the sheet size. Matching 67js `damping` to 3 or 8 only moves the 2 s distance from 63 to 60 or 61 percent, so air drag does not explain it either. The cause is a difference between the models (Blender's cloth is damped springs with its own collision response and falls slowly; this solver is position-based), and nothing was tuned to hide it.Solvers differ in kind, and a reviewer's by-eye comparison of a drape is still open.diff --git a/docs/release-verification.md b/docs/release-verification.mdindex c58ca995..49266eb4 100644--- a/docs/release-verification.md+++ b/docs/release-verification.md@@ -212,7 +212,7 @@ The figures remain stylized silhouettes, without photorealistic character assets## 0.3.0-The package is `@codepawlhq/67js`, installed locally through the `67js` alias. The display name remains 67.js.+The package is `@codepawlhq/67js`, installed locally through the `67js` alias. The display name remains 67js.| Check | Measured result || --- | --- |diff --git a/docs/site-verification.md b/docs/site-verification.mdindex fb1d61c2..009cdbe0 100644--- a/docs/site-verification.md+++ b/docs/site-verification.md@@ -2,7 +2,7 @@## 0.3.1-The site uses CodePawl's neutral light/dark surfaces, focus colors and rounded panels. The 67.js mark is a transparent outline block. Navigation icons are local SVGs.+The site uses CodePawl's neutral light/dark surfaces, focus colors and rounded panels. The 67js mark is a transparent outline block. Navigation icons are local SVGs.The documentation interface reads `docs/guide.md`. Release preparation copies that source into the plain-text download. The site also serves `llms.txt` for models and agents. The package includes the guide and both scene/media skills.diff --git a/docs/spume.md b/docs/spume.mdindex 9bb10195..414935a1 100644--- a/docs/spume.md+++ b/docs/spume.md@@ -1,7 +1,7 @@# Spume liquid playback`67js/addons/spume` plays back a liquid bake from [Spume](https://github.com/codepawl/spume), the CodePawl GPU liquid solver.-Spume bakes offline on an NVIDIA GPU with Python and NVIDIA Warp. The browser never runs the solver: this addon reads the baked cache folder and turns each frame into ordinary rigid 67.js parts.+Spume bakes offline on an NVIDIA GPU with Python and NVIDIA Warp. The browser never runs the solver: this addon reads the baked cache folder and turns each frame into ordinary rigid 67js parts.```jsimport { Renderer67 } from '67js';@@ -19,7 +19,7 @@ function draw(seconds) {## Baking a cache-Bake from a Spume checkout. Units are metres, +Y up, the floor at y = 0, which matches 67.js.+Bake from a Spume checkout. Units are metres, +Y up, the floor at y = 0, which matches 67js.```bashuv run python run.py --out out/geyser --name geyser --pressure cg --iterations 20diff --git a/docs/webgpu-decision.md b/docs/webgpu-decision.mdindex 1396954b..99f25032 100644--- a/docs/webgpu-decision.md+++ b/docs/webgpu-decision.md@@ -8,7 +8,7 @@ Machine: Windows 11, RTX 3060 12 GB (shared with other jobs, 24 to 100 percent b## What was tested-There is no WGSL port of the 67.js shaders, and writing one is the work this decision avoids. The spike draws the `bench/runtime` scenes `instanced-objects`, `many-materials` and `large-mesh` (the scenes where three.js wins, `bench/runtime/PROFILE.md`) with three.js 0.186.1 on its WebGL2 renderer and on its WebGPU renderer, with the same geometry, materials and lights. This is a proxy: it tells what the API and the driver stack change for a full PBR scene, not what a 67.js WGSL backend would cost. The spike draws `instanced-objects` as individual meshes (the bench's non-instanced three.js variant), so it is a heavier draw-call load than the 3-draw 67.js run. The 67.js rows come from `node bench/runtime/run.mjs --engine 67js --frames 20` in the same session.+There is no WGSL port of the 67js shaders, and writing one is the work this decision avoids. The spike draws the `bench/runtime` scenes `instanced-objects`, `many-materials` and `large-mesh` (the scenes where three.js wins, `bench/runtime/PROFILE.md`) with three.js 0.186.1 on its WebGL2 renderer and on its WebGPU renderer, with the same geometry, materials and lights. This is a proxy: it tells what the API and the driver stack change for a full PBR scene, not what a 67js WGSL backend would cost. The spike draws `instanced-objects` as individual meshes (the bench's non-instanced three.js variant), so it is a heavier draw-call load than the 3-draw 67js run. The 67js rows come from `node bench/runtime/run.mjs --engine 67js --frames 20` in the same session.## Is WebGPU available in headless Chrome here@@ -46,7 +46,7 @@ SwiftShader (WebGL through `--use-angle=swiftshader`, WebGPU through SwiftShader| `many-materials` | 424 ms | 766 ms | 266.1 ms | 384.5 ms || `large-mesh` | 983 ms | 1,160 ms | 235.3 ms | 419.1 ms |-67.js on its own pipeline (HDR target, MSAA, shadows, post), same session:+67js on its own pipeline (HDR target, MSAA, shadows, post), same session:| Scene | RTX 3060 first frame | RTX 3060 frame | SwiftShader first frame | SwiftShader frame || --- | --- | --- | --- | --- |@@ -57,14 +57,14 @@ SwiftShader (WebGL through `--use-angle=swiftshader`, WebGPU through SwiftShaderWhat this says:- Three.js on WebGPU was slower than three.js on WebGL2 in all 6 pairs: 2.6 to 4.4 times the frame time on the GPU, 1.4 to 3.0 on SwiftShader, and 1.2 to 6.5 times the first frame (measured). A new API did not remove the first-frame compile cost: WebGPU had to build its pipelines too.-- On the fallback, WebGPU on SwiftShader was 1.4 to 3.0 times the WebGL frame (measured). The 67.js gap on SwiftShader is the per-pixel cost of one large lit shader with MSAA and an HDR target (`PROFILE.md`), which runs on the CPU either way; a graphics API does not change that (inferred).+- On the fallback, WebGPU on SwiftShader was 1.4 to 3.0 times the WebGL frame (measured). The 67js gap on SwiftShader is the per-pixel cost of one large lit shader with MSAA and an HDR target (`PROFILE.md`), which runs on the CPU either way; a graphics API does not change that (inferred).- The 3.4 s first-frame cost that `PROFILE.md` found in ANGLE's compile of the 37,179 character fragment shader was already cut to 0.7 to 1.0 s on the GPU by `#define` specialization, which is a WebGL change that needs no new backend (measured, `PROFILE.md`).-- Not measured: a hand-written WGSL port of the 67.js shader. A hand-written WGSL path could differ from three.js's generated shaders, and these numbers do not say by how much.+- Not measured: a hand-written WGSL port of the 67js shader. A hand-written WGSL path could differ from three.js's generated shaders, and these numbers do not say by how much.- Pictures were not compared pixel for pixel. The share of non-background pixels matched between backends in every scene (0.36, 0.87, 0.29, measured), which shows the same scene was drawn and nothing more.## Bundle size-A scene with a box, one light and a standard material, built with Vite and esbuild minify, in a clean entry (measured). These are three.js numbers, not 67.js numbers.+A scene with a box, one light and a standard material, built with Vite and esbuild minify, in a clean entry (measured). These are three.js numbers, not 67js numbers.| Entry | Minified | Gzip || --- | --- | --- |@@ -72,7 +72,7 @@ A scene with a box, one light and a standard material, built with Vite and esbui| `three/webgpu` WebGPURenderer (it carries its own WebGL2 fallback backend) | 1,023,136 | 236,780 || both imported | 1,449,769 | 329,427 |-For 67.js, the lit box is 58,928 bytes gzip (`npm run size`, 2026-10-31, against a goal of 50,000 and three.js at 133,652) and `entry:core` has a budget of 82,600 (`bench/size/budgets.json`). A second backend means a second set of shaders, pipelines and resource code. Counting template-literal text in the 7 files that hold GLSL gives 1,377 non-blank lines (an upper bound, some are JS strings): `shaders.js` 847, `post.js` 244, `environment.js` 163, `camera-effects.js` 67, `ambient-occlusion.js` 45, `render-passes.js` 4, `gl-program.js` 7. The `context.` call count is 357 in `renderer.js`, 34 in `environment.js`, 25 in `render-passes.js`, 24 in `camera-effects.js` and 12 in `gl-program.js`, about 450 call sites in total (measured by grep). Guessed: carrying both backends adds 25 to 45 KB gzip to core, because WGSL is wordier than GLSL and WebGPU needs explicit pipeline and bind group code; which would move the lit box further from its 50,000 goal. This estimate was not built.+For 67js, the lit box is 58,928 bytes gzip (`npm run size`, 2026-10-31, against a goal of 50,000 and three.js at 133,652) and `entry:core` has a budget of 82,600 (`bench/size/budgets.json`). A second backend means a second set of shaders, pipelines and resource code. Counting template-literal text in the 7 files that hold GLSL gives 1,377 non-blank lines (an upper bound, some are JS strings): `shaders.js` 847, `post.js` 244, `environment.js` 163, `camera-effects.js` 67, `ambient-occlusion.js` 45, `render-passes.js` 4, `gl-program.js` 7. The `context.` call count is 357 in `renderer.js`, 34 in `environment.js`, 25 in `render-passes.js`, 24 in `camera-effects.js` and 12 in `gl-program.js`, about 450 call sites in total (measured by grep). Guessed: carrying both backends adds 25 to 45 KB gzip to core, because WGSL is wordier than GLSL and WebGPU needs explicit pipeline and bind group code; which would move the lit box further from its 50,000 goal. This estimate was not built.## Which shader features would need rewriting@@ -113,4 +113,4 @@ When to look again:- the MCP `cpu` backend needs a different software renderer, or- a three.js WebGPU frame beats WebGL2 on the same scenes on the 3060 on a quiet GPU.-Not verified: a WGSL port of the 67.js shaders; WebGPU timing on a quiet GPU (the RTX 3060 was shared); Firefox, Safari and Android behaviour (support facts only come from MDN and web.dev); the bundle growth of a real second backend.+Not verified: a WGSL port of the 67js shaders; WebGPU timing on a quiet GPU (the RTX 3060 was shared); Firefox, Safari and Android behaviour (support facts only come from MDN and web.dev); the bundle growth of a real second backend.diff --git a/downloads.html b/downloads.htmlindex 2872e3b0..f1abd5bc 100644--- a/downloads.html+++ b/downloads.html@@ -5,7 +5,7 @@<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="refresh" content="0;url=/#downloads" /><link rel="canonical" href="https://67js.codepawl.com/#downloads" />- <title>Install 67.js</title>+ <title>Install 67js</title></head>- <body><p><a href="/#downloads">Install 67.js on the homepage</a></p></body>+ <body><p><a href="/#downloads">Install 67js on the homepage</a></p></body></html>diff --git a/film.html b/film.htmlindex 7bd7a981..6b9518f1 100644--- a/film.html+++ b/film.html@@ -4,12 +4,12 @@<meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="theme-color" content="#080909" />- <meta name="description" content="OPPENHEIMER. A 3D trailer study rendered live in 67.js, inspired by the Oppenheimer New Trailer." />- <title>OPPENHEIMER · A 67.js trailer study</title>+ <meta name="description" content="OPPENHEIMER. A 3D trailer study rendered live in 67js, inspired by the Oppenheimer New Trailer." />+ <title>OPPENHEIMER · A 67js trailer study</title><link rel="icon" href="/favicon.svg" /></head><body>- <main class="film-stage" aria-label="OPPENHEIMER, a 67.js 3D trailer study">+ <main class="film-stage" aria-label="OPPENHEIMER, a 67js 3D trailer study"><canvas id="film-canvas" aria-label="Procedural 3D film"></canvas><div id="film-flash" class="film-flash" aria-hidden="true"></div><div id="film-title" class="film-title" aria-hidden="true">@@ -19,7 +19,7 @@<header class="film-header player-interface"><a class="brand" href="./">67<span>.js</span></a><span class="film-name">OPPENHEIMER</span>- <nav aria-label="Explore 67.js">+ <nav aria-label="Explore 67js"><a href="./nature.html">Nature</a><a href="./object.html">Object</a><a href="./docs.html">Docs</a><a href="./downloads.html">Downloads</a></nav>@@ -35,7 +35,7 @@<input id="film-time" type="range" min="0" max="187" step="0.01" value="0" /><output id="film-clock" for="film-time">0:00 / 3:07</output></div>- <p class="film-caption">A 67.js 3D study · Original synthesized score · <a href="https://www.youtube.com/watch?v=uYPbbksJxIg">Trailer reference: Universal Pictures</a></p>+ <p class="film-caption">A 67js 3D study · Original synthesized score · <a href="https://www.youtube.com/watch?v=uYPbbksJxIg">Trailer reference: Universal Pictures</a></p></section><p id="film-error" class="film-error player-interface" role="alert" hidden></p></main>diff --git a/getting-started.html b/getting-started.htmlindex 84fbc247..3192a55f 100644--- a/getting-started.html+++ b/getting-started.html@@ -5,7 +5,7 @@<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="refresh" content="0;url=/docs.html#install" /><link rel="canonical" href="https://67js.codepawl.com/docs.html" />- <title>Getting started · 67.js documentation</title>+ <title>Getting started · 67js documentation</title></head><body><p>Getting started is now part of <a href="/docs.html#install">Documentation</a>.</p>diff --git a/index.html b/index.htmlindex ce9429a3..60fd2d1e 100644--- a/index.html+++ b/index.html@@ -4,35 +4,35 @@<meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="theme-color" content="#191d22" />- <meta name="description" content="67.js is a WebGL2 3D engine for agents and people: PBR, shadows, fog, animation, GLB, PNG and MP4 export, and an MCP server. Install with npm i @codepawlhq/67js." />+ <meta name="description" content="67js is a WebGL2 3D engine for agents and people: PBR, shadows, fog, animation, GLB, PNG and MP4 export, and an MCP server. Install with npm i @codepawlhq/67js." /><meta property="og:type" content="website" />- <meta property="og:site_name" content="67.js" />- <meta property="og:title" content="67.js · a 3D engine agents can drive" />+ <meta property="og:site_name" content="67js" />+ <meta property="og:title" content="67js · a 3D engine agents can drive" /><meta property="og:description" content="WebGL2 rendering, deterministic animation and an MCP server in one npm package." /><meta property="og:url" content="https://67js.codepawl.com/" /><meta property="og:image" content="https://67js.codepawl.com/previews/wall-e.png" />- <meta property="og:image:alt" content="WALL·E rendered by 67.js" />+ <meta property="og:image:alt" content="WALL·E rendered by 67js" /><meta name="twitter:card" content="summary_large_image" /><link rel="canonical" href="https://67js.codepawl.com/" />- <title>67.js · a 3D engine agents can drive</title>+ <title>67js · a 3D engine agents can drive</title><link rel="icon" href="/favicon.svg" /></head><body><a class="skip-link" href="#content">Skip to content</a><header class="navigation">- <a class="brand" href="/" aria-label="67.js home">67<span>.js</span></a>+ <a class="brand" href="/" aria-label="67js home">67<span>.js</span></a><span class="version" data-release-version>Loading release</span><nav aria-label="Library"><a href="/docs.html">Docs</a></nav></header><main id="content">- <section class="hero" aria-label="67.js introduction and live preview">+ <section class="hero" aria-label="67js introduction and live preview"><header class="introduction"><div><h1>A 3D engine<br />agents can drive</h1><p>WebGL2 rendering, deterministic animation and an MCP server in one package.</p>- <section id="downloads" class="home-install" aria-label="Install 67.js">+ <section id="downloads" class="home-install" aria-label="Install 67js"><div class="package-install"><div class="package-managers" role="group" aria-label="Package manager"><button data-package-manager="npm" aria-pressed="true"><span class="package-logo package-logo-npm" aria-hidden="true"></span><span>npm</span></button>@@ -46,7 +46,7 @@</section><div class="hero-actions"><a href="/docs.html#getting-started" data-icon="book">Get started</a>- <a href="https://github.com/anxuanng/67.js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a>+ <a href="https://github.com/anxuanng/67js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js"><span class="package-logo package-logo-npm brand-npm" aria-hidden="true"></span>npm</a></div></div>@@ -91,9 +91,9 @@ renderer.render({<li>PBR materials</li><li>Shadows</li><li>HDR and bloom</li><li>MSAA</li><li>Volumetric fog</li><li>Skinning and morphs</li><li>Physics</li><li>Spume liquid</li><li>Glass and leaf cutouts</li><li>HDRI lighting</li><li>Textured terrain</li><li>Trees and grass</li><li>Vehicles</li><li>Humanoid retargeting</li><li>GLB import and export</li><li>PNG and MP4 export</li></ul><div class="gallery">- <a class="example" href="./object.html"><img src="./previews/wall-e.webp" alt="WALL·E model rendered in 67.js" width="1280" height="720" loading="lazy" /><div class="example-caption"><h3>WALL·E</h3></div><p>574 parts you can pull apart</p></a>+ <a class="example" href="./object.html"><img src="./previews/wall-e.webp" alt="WALL·E model rendered in 67js" width="1280" height="720" loading="lazy" /><div class="example-caption"><h3>WALL·E</h3></div><p>574 parts you can pull apart</p></a><a class="example" href="./nature.html"><img src="./previews/nature.webp" alt="A winding stream through Silverwater valley" width="1280" height="720" loading="lazy" /><div class="example-caption"><h3>Silverwater valley</h3></div><p>Light, wind and fog in a landscape</p></a>- <a class="example" href="./film.html"><img src="./previews/film-contact.webp" alt="Scenes from the Oppenheimer 3D trailer study rendered in 67.js" width="1280" height="720" loading="lazy" /><div class="example-caption"><h3>Oppenheimer</h3></div><p>A short film on one timeline</p></a>+ <a class="example" href="./film.html"><img src="./previews/film-contact.webp" alt="Scenes from the Oppenheimer 3D trailer study rendered in 67js" width="1280" height="720" loading="lazy" /><div class="example-caption"><h3>Oppenheimer</h3></div><p>A short film on one timeline</p></a><a class="example" href="./modeling.html"><img src="./previews/modeling.webp" alt="A porcelain and brass lantern built with profile, extrusion and curve tools" width="1280" height="720" loading="lazy" /><div class="example-caption"><h3>Aster lantern</h3></div><p>Modeling from profiles and curves</p></a><a class="example" href="./view2d.html"><img src="./previews/view2d.webp" alt="A flat orbital poster rendered through an orthographic camera" width="960" height="540" loading="lazy" /><div class="example-caption"><h3>Orbital field</h3></div><p>Orthographic and 2D views</p></a><a class="example" href="./assets.html"><img src="./previews/assets.webp" alt="An imported geometric study displayed in the asset viewer" width="960" height="540" loading="lazy" /><div class="example-caption"><h3>Your models</h3></div><p>Open a GLB and play its clips</p></a>@@ -133,8 +133,8 @@ renderer.render({</section></main><footer class="site-footer" aria-label="Site footer">- <div class="footer-introduction"><a class="brand" href="/" aria-label="67.js home">67<span>.js</span></a><p>Made by <a href="https://codepawl.com">CodePawl</a>.</p></div>- <div class="footer-links"><a href="https://github.com/anxuanng/67.js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js"><span class="package-logo package-logo-npm brand-npm" aria-hidden="true"></span>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></div>+ <div class="footer-introduction"><a class="brand" href="/" aria-label="67js home">67<span>.js</span></a><p>Made by <a href="https://codepawl.com">CodePawl</a>.</p></div>+ <div class="footer-links"><a href="https://github.com/anxuanng/67js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js"><span class="package-logo package-logo-npm brand-npm" aria-hidden="true"></span>npm</a><a data-release-commit href="https://github.com/anxuanng/67js">Release commit</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a><a href="/logo.svg" download>Logo SVG</a></div></footer><script type="module" src="/src/home.js"></script></body>diff --git a/modeling.html b/modeling.htmlindex 3a5ffeef..0a0dd286 100644--- a/modeling.html+++ b/modeling.html@@ -3,14 +3,14 @@<head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" />- <meta name="description" content="An original mechanical lantern built with 67.js profile, extrusion and curve tools." />- <title>Aster lantern · 67.js</title>+ <meta name="description" content="An original mechanical lantern built with 67js profile, extrusion and curve tools." />+ <title>Aster lantern · 67js</title><link rel="icon" href="/favicon.svg" /></head><body><a class="skip-link" href="#content">Skip to content</a><header class="navigation">- <a class="brand" href="/" aria-label="67.js home">67<span>.js</span></a>+ <a class="brand" href="/" aria-label="67js home">67<span>.js</span></a><nav aria-label="Library"><a href="/downloads.html">Downloads</a><a href="/docs.html">Docs</a></nav></header><main id="content" class="modeling-study">@@ -22,8 +22,8 @@<p id="modeling-notice" role="status" hidden><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="m9 9 6 6m0-6-6 6"/></svg><span></span></p></main><footer class="site-footer" aria-label="Site footer">- <div class="footer-introduction"><a class="brand" href="/" aria-label="67.js home">67<span>.js</span></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-introduction"><a class="brand" href="/" aria-label="67js home">67<span>.js</span></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/67js" 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/motion.html b/motion.htmlindex 80dc4319..6a40fa04 100644--- a/motion.html+++ b/motion.html@@ -4,14 +4,14 @@<meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="theme-color" content="#171c20" />- <meta name="description" content="A deterministic 67.js animation with keyframe tracks and landscape, portrait and square compositions." />- <title>Clockwork orbit · 67.js</title>+ <meta name="description" content="A deterministic 67js animation with keyframe tracks and landscape, portrait and square compositions." />+ <title>Clockwork orbit · 67js</title><link rel="icon" href="/favicon.svg" /></head><body><main><header class="interface motion-header">- <a class="brand" href="./index.html" aria-label="67.js home">67<span>.js</span></a>+ <a class="brand" href="./index.html" aria-label="67js home">67<span>.js</span></a><nav aria-label="Scenes"><a href="./object.html">Object</a><a href="./nature.html">Nature</a><a href="./film.html">Film</a><a href="./motion.html" aria-current="page">Motion</a><a href="./docs.html">Docs</a><a href="./index.html#examples">Showcase</a></nav></header><section class="motion-stage" data-aspect="landscape" aria-label="Clockwork orbit animation">diff --git a/nature.html b/nature.htmlindex 8af371f9..97816418 100644--- a/nature.html+++ b/nature.html@@ -4,14 +4,14 @@<meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="theme-color" content="#17231f" />- <meta name="description" content="Explore a living alpine valley, built entirely from geometry in 67.js." />- <title>67.js · Silverwater valley</title>+ <meta name="description" content="Explore a living alpine valley, built entirely from geometry in 67js." />+ <title>67js · Silverwater valley</title><link rel="icon" href="/favicon.svg" /></head><body><main><header class="world-header">- <a class="brand" href="./index.html" aria-label="67.js home">67<span>.js</span></a>+ <a class="brand" href="./index.html" aria-label="67js home">67<span>.js</span></a><nav aria-label="Scenes"><a href="./object.html">Object</a><a href="./nature.html" aria-current="page">Nature</a>diff --git a/object.html b/object.htmlindex a6ff4999..56109915 100644--- a/object.html+++ b/object.html@@ -4,14 +4,14 @@<meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="theme-color" content="#25292d" />- <meta name="description" content="Explore WALL·E inside and out. An explodable procedural 3D study rendered with 67.js." />- <title>67.js · Object studio</title>+ <meta name="description" content="Explore WALL·E inside and out. An explodable procedural 3D study rendered with 67js." />+ <title>67js · Object studio</title><link rel="icon" href="/favicon.svg" /></head><body><main><header class="toolbar">- <a class="brand" href="./" aria-label="67.js home">67<span>.js</span></a>+ <a class="brand" href="./" aria-label="67js home">67<span>.js</span></a><nav class="studio-nav" aria-label="Scenes"><a href="./object.html" aria-current="page">Object</a><a href="./nature.html">Nature</a><a href="./film.html">Film</a><a href="./docs.html">Docs</a><a href="./index.html#examples">Showcase</a></nav><div class="toolbar-actions"><button id="reset" title="Reset camera (R)">Reset view</button>diff --git a/package.json b/package.jsonindex bf5b2fb3..30f2b4d9 100644--- a/package.json+++ b/package.json@@ -8,7 +8,7 @@"homepage": "https://67js.codepawl.com","repository": {"type": "git",- "url": "git+https://github.com/anxuanng/67.js.git"+ "url": "git+https://github.com/anxuanng/67js.git"},"files": ["build",diff --git a/public/brand/wordmark-dark.svg b/public/brand/wordmark-dark.svgindex f1fa104b..ca3228f4 100644--- a/public/brand/wordmark-dark.svg+++ b/public/brand/wordmark-dark.svg@@ -1 +1 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 80" fill="none"><title>67.js</title><g stroke="#ECECEC" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"><path d="m40 8 28 16v32L40 72 12 56V24L40 8Z"/><path d="m12 24 28 16 28-16M40 40v32"/></g><text x="86" y="55" fill="#ECECEC" font-family="ui-sans-serif,-apple-system,system-ui,'Segoe UI',Helvetica,Arial,sans-serif" font-size="44" font-weight="600" letter-spacing="-1">67.js</text></svg>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 80" fill="none"><title>67js</title><g stroke="#ECECEC" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"><path d="m40 8 28 16v32L40 72 12 56V24L40 8Z"/><path d="m12 24 28 16 28-16M40 40v32"/></g><text x="86" y="55" fill="#ECECEC" font-family="ui-sans-serif,-apple-system,system-ui,'Segoe UI',Helvetica,Arial,sans-serif" font-size="44" font-weight="600" letter-spacing="-1">67js</text></svg>diff --git a/public/brand/wordmark-light.svg b/public/brand/wordmark-light.svgindex 87c809f3..f2116629 100644--- a/public/brand/wordmark-light.svg+++ b/public/brand/wordmark-light.svg@@ -1 +1 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 80" fill="none"><title>67.js</title><g stroke="#1A1A1A" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"><path d="m40 8 28 16v32L40 72 12 56V24L40 8Z"/><path d="m12 24 28 16 28-16M40 40v32"/></g><text x="86" y="55" fill="#1A1A1A" font-family="ui-sans-serif,-apple-system,system-ui,'Segoe UI',Helvetica,Arial,sans-serif" font-size="44" font-weight="600" letter-spacing="-1">67.js</text></svg>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 80" fill="none"><title>67js</title><g stroke="#1A1A1A" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"><path d="m40 8 28 16v32L40 72 12 56V24L40 8Z"/><path d="m12 24 28 16 28-16M40 40v32"/></g><text x="86" y="55" fill="#1A1A1A" font-family="ui-sans-serif,-apple-system,system-ui,'Segoe UI',Helvetica,Arial,sans-serif" font-size="44" font-weight="600" letter-spacing="-1">67js</text></svg>diff --git a/public/favicon.svg b/public/favicon.svgindex 2acd7eaf..0cc1981a 100644--- a/public/favicon.svg+++ b/public/favicon.svg@@ -1 +1 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" fill="none"><title>67.js outline block</title><g stroke="#777777" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"><path d="m40 8 28 16v32L40 72 12 56V24L40 8Z"/><path d="m12 24 28 16 28-16M40 40v32"/></g></svg>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" fill="none"><title>67js outline block</title><g stroke="#777777" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"><path d="m40 8 28 16v32L40 72 12 56V24L40 8Z"/><path d="m12 24 28 16 28-16M40 40v32"/></g></svg>diff --git a/public/llms.txt b/public/llms.txtindex ec936696..8a649b10 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -1,4 +1,4 @@-# 67.js+# 67js> A WebGL2 toolkit for interactive browser scenes and deterministic PNG/MP4 output. Reuse the scene across preview and export.@@ -78,7 +78,7 @@ Images and films covers the repository CLI. Performance and memory covers allocaWithout the alias, imports use `@codepawlhq/67js`. Aliased core imports use `67js`.Addon paths include `67js/addons/model`, `67js/addons/nature`, `67js/addons/film`, `67js/addons/motion`, `67js/addons/canvas2d` and `67js/addons/gltf`.The core exports `Renderer67`, `box`, `cylinder`, `sphere`, `torus`, camera helpers, animation helpers, effects and budget helpers.-Exact signatures and defaults are in the guide. Names from Three.js are not substitutes for 67.js APIs.+Exact signatures and defaults are in the guide. Names from Three.js are not substitutes for 67js APIs.## Build a scene@@ -123,7 +123,7 @@ Report estimates separately from observed process metrics. Reduce resolution, MS## Limits and honest claims-67.js currently uses WebGL2. It is not API-compatible with Three.js and is not a complete Blender editor.+67js currently uses WebGL2. It is not API-compatible with Three.js and is not a complete Blender editor.There is no WebGPU backend or complete mesh editor.Version `0.4.0` includes the APIs below. Check VERSION and release.json against the installed package before using them.@@ -163,7 +163,7 @@ Update the target morph/skin/world pose, call attachment.update(), then upload tClearance uses world units and the geometric face normal. This rigid point attachment does not guarantee clearance over the entire accessory footprint.-The optional GLB decoder uses Three.js GLTFLoader. The renderer remains 67.js.+The optional GLB decoder uses Three.js GLTFLoader. The renderer remains 67js.Adaptive quality, GPU timing and picking are roadmap work. Speed claims require comparable scenes, hardware, settings and measurements.## Tiny maintenance gremlinsdiff --git a/public/logo.svg b/public/logo.svgindex 18fdf633..650953b0 100644--- a/public/logo.svg+++ b/public/logo.svg@@ -1 +1 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" fill="none"><title>67.js outline block</title><g stroke="#ECECEC" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"><path d="m40 8 28 16v32L40 72 12 56V24L40 8Z"/><path d="m12 24 28 16 28-16M40 40v32"/></g></svg>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" fill="none"><title>67js outline block</title><g stroke="#ECECEC" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"><path d="m40 8 28 16v32L40 72 12 56V24L40 8Z"/><path d="m12 24 28 16 28-16M40 40v32"/></g></svg>diff --git a/scripts/blender-cloth.py b/scripts/blender-cloth.pyindex 424ae67e..7e011267 100644--- a/scripts/blender-cloth.py+++ b/scripts/blender-cloth.py@@ -3,8 +3,8 @@Run from the repo root:PATH="/c/Program Files/Blender Foundation/Blender 5.2:$PATH" blender -b --factory-startup --python scripts/blender-cloth.py-Positions are written in 67.js axes (Y up): Blender (x, y, z) becomes (x, z, -y). Vertex order matches the grid-geometry of 67.js: rows from the top down, columns left to right.+Positions are written in 67js axes (Y up): Blender (x, y, z) becomes (x, z, -y). Vertex order matches the grid+geometry of 67js: rows from the top down, columns left to right."""import jsonimport math@@ -30,7 +30,7 @@ def reset_scene():def grid_object(name, center, width, height, plane):- """A (SEGMENTS + 1)^2 vertex sheet. plane 'vertical' lies in XZ (67.js XY), 'horizontal' in XY (67.js XZ)."""+ """A (SEGMENTS + 1)^2 vertex sheet. plane 'vertical' lies in XZ (67js XY), 'horizontal' in XY (67js XZ)."""mesh = bpy.data.meshes.new(name)builder = bmesh.new()vertices = []diff --git a/scripts/blender-constraints-golden.py b/scripts/blender-constraints-golden.pyindex c7e0d865..71a95210 100644--- a/scripts/blender-constraints-golden.py+++ b/scripts/blender-constraints-golden.py@@ -3,10 +3,10 @@Run from Bash:PATH="/c/Program Files/Blender Foundation/Blender 5.2:$PATH" blender -b --factory-startup --python scripts/blender-constraints-golden.py-Each case lists nodes (empties with a parent, location, Euler XYZ degrees and scale), one constraint written in 67.js's+Each case lists nodes (empties with a parent, location, Euler XYZ degrees and scale), one constraint written in 67js'srecipe form, and optionally a `pose` that moves a node after the constraint is set up (child_of binds at the rest poseand then follows the target). The script builds the same scene in Blender, reads the owner's evaluated world matrix and-writes it column-major, the layout 67.js uses. The numbers come from Blender's own evaluation; nothing is copied from it.+writes it column-major, the layout 67js uses. The numbers come from Blender's own evaluation; nothing is copied from it."""import jsonimport mathdiff --git a/scripts/blender-golden.py b/scripts/blender-golden.pyindex 46408269..42a3a322 100644--- a/scripts/blender-golden.py+++ b/scripts/blender-golden.py@@ -320,7 +320,7 @@ def add_boolean(mesh_object, edit, inputs):modifier.object = cutter-# Blender stores a crease from 0 to 1. Measured against 67.js sharpness, crease squared times 10 is the sharpness.+# Blender stores a crease from 0 to 1. Measured against 67js sharpness, crease squared times 10 is the sharpness.def add_subdivision(mesh_object, edit, _inputs):levels = edit.get("levels", 1)if "crease" in edit:@@ -613,7 +613,7 @@ def evaluated_measure(curve_object):return result-# A Bezier curve with a round bevel: the 67.js radialSegments 4 + 2n sides is Blender's bevel resolution n, and the+# A Bezier curve with a round bevel: the 67js radialSegments 4 + 2n sides is Blender's bevel resolution n, and the# caps are filled. Handles are absolute positions in both.def run_curve_case(case):spec = case["curve"]@@ -639,7 +639,7 @@ def run_curve_case(case):return evaluated_measure(curve_object)-# Blender's own default font is not DejaVu Sans, so the text cases load the font 67.js bundles. Get DejaVuSans.ttf with+# Blender's own default font is not DejaVu Sans, so the text cases load the font 67js bundles. Get DejaVuSans.ttf with# "npm pack dejavu-fonts-ttf" (ttf/DejaVuSans.ttf in the package) and point DEJAVU_SANS_TTF at it.def bundled_font():path = os.environ.get("DEJAVU_SANS_TTF")@@ -648,7 +648,7 @@ def bundled_font():return bpy.data.fonts.load(path)-# Blender's text object extrudes both ways from the baseline plane, so its extrude is half the 67.js depth.+# Blender's text object extrudes both ways from the baseline plane, so its extrude is half the 67js depth.def text_measure(name, body, size, extrude, curve_segments):font_data = bpy.data.curves.new(name, "FONT")font_data.font = bundled_font()diff --git a/scripts/measure-size.mjs b/scripts/measure-size.mjsindex d72dcf2c..4df0f429 100644--- a/scripts/measure-size.mjs+++ b/scripts/measure-size.mjs@@ -123,10 +123,10 @@ function printComparisonWithThree(measured, three, goals) {for (const [name, threeSize] of Object.entries(three)) {const engineSize = measured[`scene:${name}`].gzip;const goal = goals[name] === undefined ? '' : `, goal ${goals[name]}`;- console.log(` ${name.padEnd(14)} 67.js ${engineSize}, three.js ${threeSize.gzip}${goal}`);+ console.log(` ${name.padEnd(14)} 67js ${engineSize}, three.js ${threeSize.gzip}${goal}`);}for (const [name, goal] of Object.entries(goals)) {- if (!three[name]) console.log(` ${name.padEnd(14)} 67.js ${measured[`scene:${name}`].gzip}, no three.js equivalent, goal ${goal}`);+ if (!three[name]) console.log(` ${name.padEnd(14)} 67js ${measured[`scene:${name}`].gzip}, no three.js equivalent, goal ${goal}`);}}diff --git a/skills/build-67js-scene/SKILL.md b/skills/build-67js-scene/SKILL.mdindex cd9ca2a5..8974539d 100644--- a/skills/build-67js-scene/SKILL.md+++ b/skills/build-67js-scene/SKILL.md@@ -1,12 +1,12 @@---name: build-67js-scene-description: Build or refine interactive 3D scenes with 67.js. Use for 67.js models, nature worlds, cinematic scenes, camera controls, materials and anti-aliasing, including "làm cảnh 67.js" and "model bị răng cưa".+description: Build or refine interactive 3D scenes with 67js. Use for 67js models, nature worlds, cinematic scenes, camera controls, materials and anti-aliasing, including "làm cảnh 67js" and "model bị răng cưa".license: MIT----# Dựng cảnh 3D bằng 67.js+# Dựng cảnh 3D bằng 67js-Use the actual 67.js checkout. Locate it from the active workspace or Git remote before writing files.+Use the actual 67js checkout. Locate it from the active workspace or Git remote before writing files.Read its `README.md`, `src/renderer.js` and the closest existing scene module.Use `simplify-code` and `engineering-workflows` for implementation.diff --git a/skills/build-67js-scene/agents/openai.yaml b/skills/build-67js-scene/agents/openai.yamlindex d6357284..f4a2688c 100644--- a/skills/build-67js-scene/agents/openai.yaml+++ b/skills/build-67js-scene/agents/openai.yaml@@ -1,4 +1,4 @@interface:- display_name: "Dựng cảnh 3D bằng 67.js"- short_description: "Dựng model, cảnh thiên nhiên và phim bằng 67.js"- default_prompt: "Use $build-67js-scene to implement and inspect this 67.js scene."+ display_name: "Dựng cảnh 3D bằng 67js"+ short_description: "Dựng model, cảnh thiên nhiên và phim bằng 67js"+ default_prompt: "Use $build-67js-scene to implement and inspect this 67js scene."diff --git a/skills/render-67js-media/SKILL.md b/skills/render-67js-media/SKILL.mdindex 1702b896..5a3eb170 100644--- a/skills/render-67js-media/SKILL.md+++ b/skills/render-67js-media/SKILL.md@@ -1,12 +1,12 @@---name: render-67js-media-description: Export 67.js scenes to PNG or MP4 on GPU or CPU. Use for render ảnh/video 3D, export presets, MSAA quality, performance measurements and bounded RAM/VRAM capture without buffering full frame sequences.+description: Export 67js scenes to PNG or MP4 on GPU or CPU. Use for render ảnh/video 3D, export presets, MSAA quality, performance measurements and bounded RAM/VRAM capture without buffering full frame sequences.license: MIT----# Xuất ảnh và video 67.js+# Xuất ảnh và video 67js-Locate the 67.js checkout and read its `scripts/render-media.mjs` and `src/budget.js`.+Locate the 67js checkout and read its `scripts/render-media.mjs` and `src/budget.js`.Read [rendering.md](references/rendering.md) for commands, backends and measurement limits.Use the repository pipeline rather than constructing a parallel exporter.diff --git a/skills/render-67js-media/agents/openai.yaml b/skills/render-67js-media/agents/openai.yamlindex b9089f32..ec73a5db 100644--- a/skills/render-67js-media/agents/openai.yaml+++ b/skills/render-67js-media/agents/openai.yaml@@ -1,4 +1,4 @@interface:- display_name: "Xuất ảnh và video 67.js"+ display_name: "Xuất ảnh và video 67js"short_description: "Render ảnh, video bằng GPU hoặc CPU có giới hạn nhớ"default_prompt: "Use $render-67js-media to export this scene and verify its quality and memory report."diff --git a/src/asset-viewer.js b/src/asset-viewer.jsindex 6f3583fa..dcc24505 100644--- a/src/asset-viewer.js+++ b/src/asset-viewer.js@@ -136,7 +136,7 @@ function showAsset(loaded, title) {syncAnimation();document.querySelector('#metrics').textContent = `${asset.parts.length.toLocaleString()} parts · ${renderer.batches.length} draws`;document.querySelector('#notice').hidden = true;- document.title = `${title} · 67.js asset viewer`;+ document.title = `${title} · 67js asset viewer`;invalidate();}diff --git a/src/benchmark.js b/src/benchmark.jsindex dfc72bd5..3fa72e68 100644--- a/src/benchmark.js+++ b/src/benchmark.js@@ -41,11 +41,11 @@ export async function runBenchmark(parts, onProgress = () => {}) {const camera = { eye: [4, 3.1, 5], target: [0, 1.2, 0] };try {for (const batching of [true, false]) {- onProgress(`Measuring 67.js ${batching ? 'instanced' : 'individual meshes'}…`);+ onProgress(`Measuring 67js ${batching ? 'instanced' : 'individual meshes'}…`);const renderer = new Renderer67(canvas, parts, { batching, pixelRatio: 1, benchmark: true });try {const milliseconds = await measure(() => renderer.render(camera), renderer.context);- results.push({ name: `67.js ${batching ? 'instanced' : 'individual'}`, milliseconds, calls: renderer.batches.length, pixelAgreement: comparePixels(renderer.context, () => renderer.render(camera)) });+ results.push({ name: `67js ${batching ? 'instanced' : 'individual'}`, milliseconds, calls: renderer.batches.length, pixelAgreement: comparePixels(renderer.context, () => renderer.render(camera)) });} finally {renderer.dispose();}diff --git a/src/documentation.js b/src/documentation.jsindex ad99ce5d..7bc895c3 100644--- a/src/documentation.js+++ b/src/documentation.js@@ -54,7 +54,7 @@ function inline(value) {// Keep exact source slices for Copy page, including the Markdown heading.const headings = [...guide.matchAll(/^## (.+)\r?$/gm)];const topics = [- { id: 'overview', title: 'About 67.js', raw: guide.slice(0, headings[0].index) },+ { id: 'overview', title: 'About 67js', raw: guide.slice(0, headings[0].index) },...headings.map((heading, index) => ({id: heading[1].trim().toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/-$/, ''),title: heading[1].trim(),@@ -196,7 +196,7 @@ function openTopic(focus = false) {article.replaceChildren(section);if (currentTopic.id === 'install') {const managerLink = document.createElement('p');- managerLink.innerHTML = `<a class="doc-install-link" href="/#downloads">Install 67.js ${icon('arrow')}</a>`;+ managerLink.innerHTML = `<a class="doc-install-link" href="/#downloads">Install 67js ${icon('arrow')}</a>`;section.append(managerLink);}const index = topics.indexOf(currentTopic);@@ -212,7 +212,7 @@ function openTopic(focus = false) {}article.append(pagination);document.querySelector('#doc-topic-name').textContent = currentTopic.title;- document.title = `${currentTopic.title} · 67.js documentation`;+ document.title = `${currentTopic.title} · 67js documentation`;copyStatus.textContent = '';document.querySelector('.doc-copy-fallback')?.remove();copyPage.innerHTML = `${icon('copy')}Copy page`;diff --git a/src/export-writer.js b/src/export-writer.jsindex f0ba4c16..f24678ff 100644--- a/src/export-writer.js+++ b/src/export-writer.js@@ -25,7 +25,7 @@ function componentBounds(data, componentCount) {/** Collects the JSON document and the binary chunk of one GLB. */export function createGlbWriter() {const document = {- asset: { version: '2.0', generator: '67.js' },+ asset: { version: '2.0', generator: '67js' },scene: 0,scenes: [{ nodes: [] }],nodes: [],diff --git a/src/film.js b/src/film.jsindex e5156fb7..18f451a5 100644--- a/src/film.js+++ b/src/film.js@@ -1020,7 +1020,7 @@ export function sampleFilm(time, { aspect = 16 / 9 } = {}) {monochrome: selected.monochrome,fade: 1 - visibility,title: titleVisible ? 'OPPENHEIMER' : '',- subtitle: titleVisible ? 'A 67.js trailer study' : '',+ subtitle: titleVisible ? 'A 67js trailer study' : '',time: boundedTime,sceneTime: boundedTime - FILM_SHOTS.find(candidate => candidate.scene === selected.scene).start,explosionProgress: selected.scene === 'ignition' ? smoothstep(ignitionTime / 1.7) : 0,diff --git a/src/gltf.js b/src/gltf.jsindex 92e292fa..7676df69 100644--- a/src/gltf.js+++ b/src/gltf.js@@ -20,7 +20,7 @@ const GLTF_ALPHA_MODES = { OPAQUE: 'opaque', MASK: 'mask', BLEND: 'blend' };const DEFAULT_MAX_INSTANCES = 4096;const ALLOWED_EXTENSIONS = new Set(['KHR_mesh_quantization', 'KHR_materials_emissive_strength', 'KHR_texture_transform', 'EXT_mesh_gpu_instancing', ...GLTF_LAYER_EXTENSIONS]);const DECODER_BY_EXTENSION = { KHR_draco_mesh_compression: 'draco', EXT_meshopt_compression: 'meshopt', KHR_texture_basisu: 'ktx2' };-// Accepted when optional, because 67.js does not render them. Rejected when listed in extensionsRequired.+// Accepted when optional, because 67js does not render them. Rejected when listed in extensionsRequired.const IGNORED_EXTENSIONS = new Set(GLTF_CAPABILITIES.ignoredExtensions);const IDENTITY_UV_TRANSFORM = Object.freeze({ offset: [0, 0], rotation: 0, scale: [1, 1] });const MATERIAL_TEXTURES = [diff --git a/src/home.js b/src/home.jsindex ebd3314e..a7fb84a5 100644--- a/src/home.js+++ b/src/home.js@@ -65,7 +65,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/anxuanng/67js/commit/${release.commit}` : null);setText('[data-release-commit]', release ? `Commit ${release.commit.slice(0, 7)}` : 'Release commit');}diff --git a/src/vegetation.js b/src/vegetation.jsindex 78614766..a4c80fff 100644--- a/src/vegetation.js+++ b/src/vegetation.js@@ -1,4 +1,4 @@-// Procedural vegetation for 67.js: branching trees, bushes, grass, Poisson-disk scattering+// Procedural vegetation for 67js: branching trees, bushes, grass, Poisson-disk scattering// on terrain and distance level of detail.//// Trees use a parametric recursive branching model (not space colonization): every branchdiff --git a/tests/blender-constraints.test.js b/tests/blender-constraints.test.jsindex 5c7011e1..b9125245 100644--- a/tests/blender-constraints.test.js+++ b/tests/blender-constraints.test.js@@ -5,7 +5,7 @@ import { createAgentScene } from '../src/agent-scene.js';import { quaternionFromEuler } from '../src/rotation-euler.js';// tests/fixtures/blender/constraints.json holds Blender 5.2's evaluated world matrix of the constrained node in each case-// (scripts/blender-constraints-golden.py). 67.js builds the same nodes, applies the same constraint and must land on the same+// (scripts/blender-constraints-golden.py). 67js builds the same nodes, applies the same constraint and must land on the same// matrix. Coordinates are shared as they are; track_to is given worldUp [0, 0, 1] because Blender's up is Z.const golden = JSON.parse(readFileSync(new URL('./fixtures/blender/constraints.json', import.meta.url), 'utf8'));diff --git a/tests/blender-curve-text.test.js b/tests/blender-curve-text.test.jsindex d6ed8264..a4892fa7 100644--- a/tests/blender-curve-text.test.js+++ b/tests/blender-curve-text.test.js@@ -5,7 +5,7 @@ import { curve } from '../src/modeling.js';import { text } from '../src/text-geometry.js';// Curve and text objects are compared by volume, area and bounds, because Blender merges the seam vertices that-// 67.js keeps for its UVs, so vertex counts differ by design. Cases and results come from tests/fixtures/blender,+// 67js keeps for its UVs, so vertex counts differ by design. Cases and results come from tests/fixtures/blender,// written by scripts/blender-golden.py.const FIXTURE_DIRECTORY = new URL('./fixtures/blender/', import.meta.url);const readFixture = name => JSON.parse(readFileSync(new URL(name, FIXTURE_DIRECTORY), 'utf8'));diff --git a/tests/cloth-blender.test.js b/tests/cloth-blender.test.jsindex 0a195343..f82bd294 100644--- a/tests/cloth-blender.test.js+++ b/tests/cloth-blender.test.js@@ -102,7 +102,7 @@ test('the Blender drape bake had not settled at the compared frame, nor at 8 secassert.ok(blender.longest < 1.1, 'Blender stretches little too, so stiffness does not explain the gap');});-test('a sheet dropped on a ball stays outside it in 67.js and in Blender, though the drape shapes differ', () => {+test('a sheet dropped on a ball stays outside it in 67js and in Blender, though the drape shapes differ', () => {const scene = createAgentScene(recipe([{ id: 'sheet', geometry: 'sheet', material: 'paint', translation: [0, 1, 0], rotation: [-0.7071068, 0, 0, 0.7071068], scale: [1.6, 1.6, 1] },{ id: 'ball', geometry: 'ball', material: 'paint', scale: [BALL_RADIUS, BALL_RADIUS, BALL_RADIUS] }],@@ -110,6 +110,6 @@ test('a sheet dropped on a ball stays outside it in 67.js and in Blender, though));scene.sampleMotion(golden.seconds);const nearest = points => Math.min(...points.map(point => Math.hypot(...point)));- assert.ok(nearest(worldPositions(scene)) > BALL_RADIUS - 0.01, 'no 67.js particle inside the ball');+ assert.ok(nearest(worldPositions(scene)) > BALL_RADIUS - 0.01, 'no 67js particle inside the ball');assert.ok(nearest(golden.cases['drape-over-ball'].positions) > BALL_RADIUS - 0.03, 'no Blender vertex inside the ball');});diff --git a/tests/film.test.js b/tests/film.test.jsindex d804ea4b..e6030575 100644--- a/tests/film.test.js+++ b/tests/film.test.js@@ -30,7 +30,7 @@ test('187-second study has contiguous authored cuts, a late detonation and termiassert.equal(sampleFilm(180.9).title, '');assert.equal(sampleFilm(183).title, '');assert.equal(sampleFilm(185).title, 'OPPENHEIMER');- assert.equal(sampleFilm(185).subtitle, 'A 67.js trailer study');+ assert.equal(sampleFilm(185).subtitle, 'A 67js trailer study');assert.equal(sampleFilm(185).titleOpacity, 1);assert.equal(sampleFilm(180.9).explosionProgress, 0);assert.equal(sampleFilm(181).sceneTime, 0);diff --git a/tests/fixtures/blender/differences.json b/tests/fixtures/blender/differences.jsonindex 8d3f49f7..21e45bfe 100644--- a/tests/fixtures/blender/differences.json+++ b/tests/fixtures/blender/differences.json@@ -1,34 +1,34 @@{"bevel-cube-all-round": {- "vertexCount": "Where three rounded edges meet, 67.js fills the corner with a triangular patch and Blender uses a quad grid with one centre triangle per corner.",- "faceCount": "The triangular corner patch of 67.js has more faces than the quad grid of Blender.",- "faceSizes": "The corner patch of 67.js is all triangles. The strips are quads in both.",+ "vertexCount": "Where three rounded edges meet, 67js fills the corner with a triangular patch and Blender uses a quad grid with one centre triangle per corner.",+ "faceCount": "The triangular corner patch of 67js has more faces than the quad grid of Blender.",+ "faceSizes": "The corner patch of 67js is all triangles. The strips are quads in both.","area": "The two corner fills are different surfaces. The area differs by 0.3%.","positions": "The strips match. The inner corner points differ, because the two corner fills are different surfaces."},"bevel-cube-one-edge-profile": {- "positions": "Both place points on the same superellipse. 67.js steps by equal angle, and Blender spaces them differently when the profile is not 0.5."+ "positions": "Both place points on the same superellipse. 67js steps by equal angle, and Blender spaces them differently when the profile is not 0.5."},"bevel-cube-clamped": {- "volume": "67.js clamps at 49% of an edge, because at 50% faces collapse to zero area. Blender clamps at 50% and keeps coincident vertices.",- "area": "The 49% clamp of 67.js leaves a slightly larger solid than the 50% clamp of Blender.",- "positions": "The 49% clamp of 67.js moves each point 0.014 from where the 50% clamp of Blender puts it."+ "volume": "67js clamps at 49% of an edge, because at 50% faces collapse to zero area. Blender clamps at 50% and keeps coincident vertices.",+ "area": "The 49% clamp of 67js leaves a slightly larger solid than the 50% clamp of Blender.",+ "positions": "The 49% clamp of 67js moves each point 0.014 from where the 50% clamp of Blender puts it."},"mirror-touching-plane": {- "faceCount": "67.js removes the wall left on the mirror plane, so the result is one solid. Blender merges the vertices and keeps one inner face.",- "faceSizes": "67.js has one quad fewer, because it removes the inner wall on the mirror plane.",- "area": "Blender counts the inner wall on the mirror plane in the area, and 67.js has no such wall."+ "faceCount": "67js removes the wall left on the mirror plane, so the result is one solid. Blender merges the vertices and keeps one inner face.",+ "faceSizes": "67js has one quad fewer, because it removes the inner wall on the mirror plane.",+ "area": "Blender counts the inner wall on the mirror plane in the area, and 67js has no such wall."},"array-relative-merged": {- "faceCount": "67.js removes the walls between merged copies, so the result is one solid. Blender merges the vertices and keeps the walls.",- "faceSizes": "67.js has three quads fewer, because it removes the walls between merged copies.",- "volume": "The walls that Blender keeps have no single winding, so its signed volume of 5.5 is not the volume of the solid. The 67.js value of 4 is the volume of the solid.",- "area": "Blender counts the walls between copies in the area, and 67.js has no such walls."+ "faceCount": "67js removes the walls between merged copies, so the result is one solid. Blender merges the vertices and keeps the walls.",+ "faceSizes": "67js has three quads fewer, because it removes the walls between merged copies.",+ "volume": "The walls that Blender keeps have no single winding, so its signed volume of 5.5 is not the volume of the solid. The 67js value of 4 is the volume of the solid.",+ "area": "Blender counts the walls between copies in the area, and 67js has no such walls."},"boolean-through-hole": {- "edgeCount": "67.js has no face with a hole, so it splits a holed face into triangles and quads. Blender keeps one polygon with a seam.",- "faceCount": "A holed face becomes many faces in 67.js and one polygon in Blender. Volume, area and vertices match.",- "faceSizes": "A holed face becomes triangles and quads in 67.js and a 12-sided polygon in Blender."+ "edgeCount": "67js has no face with a hole, so it splits a holed face into triangles and quads. Blender keeps one polygon with a seam.",+ "faceCount": "A holed face becomes many faces in 67js and one polygon in Blender. Volume, area and vertices match.",+ "faceSizes": "A holed face becomes triangles and quads in 67js and a 12-sided polygon in Blender."},"subdivide-cube-level-1": {"volume": "The refined quads are bent, and the measure splits each quad from its first corner, so the volume depends on which corner a quad starts at. Counts, area and every vertex match Blender; the volume differs from Blender by under 1%."@@ -43,14 +43,14 @@"volume": "The refined quads are bent, and the measure splits each quad from its first corner, so the volume depends on which corner a quad starts at. Counts, area and every vertex match Blender; the volume differs from Blender by under 1%."},"knife-project-cube-line": {- "edgeCount": "Blender's check here is a plane through the line that holds the projection direction, which also cuts the two faces that run along that direction. 67.js cuts only faces the projection can see side-on to the line, so those two faces keep their edges and gain the cut points as corners.",- "faceCount": "The two faces that run along the projection direction are not split by the knife, so 67.js has two faces fewer than the plane cut.",+ "edgeCount": "Blender's check here is a plane through the line that holds the projection direction, which also cuts the two faces that run along that direction. 67js cuts only faces the projection can see side-on to the line, so those two faces keep their edges and gain the cut points as corners.",+ "faceCount": "The two faces that run along the projection direction are not split by the knife, so 67js has two faces fewer than the plane cut.","faceSizes": "Those two faces stay whole with the cut points inserted, so they become hexagons where Blender has four quads."},"remesh-sphere": {- "faceCount": "Both build a quad surface on a grid of the same voxel size, but the grids start at different points and Blender's OpenVDB mesher and the surface nets of 67.js cut the surface into different cells, so the counts differ by 2.2%. Volume, area and Hausdorff distance agree."+ "faceCount": "Both build a quad surface on a grid of the same voxel size, but the grids start at different points and Blender's OpenVDB mesher and the surface nets of 67js cut the surface into different cells, so the counts differ by 2.2%. Volume, area and Hausdorff distance agree."},"remesh-torus": {- "faceCount": "Both build a quad surface on a grid of the same voxel size, but the grids start at different points and Blender's OpenVDB mesher and the surface nets of 67.js cut the surface into different cells, so 67.js has 6.6% fewer quads. Volume, area and Hausdorff distance agree."+ "faceCount": "Both build a quad surface on a grid of the same voxel size, but the grids start at different points and Blender's OpenVDB mesher and the surface nets of 67js cut the surface into different cells, so 67js has 6.6% fewer quads. Volume, area and Hausdorff distance agree."}}diff --git a/tests/gltf.test.js b/tests/gltf.test.jsindex b5dc93e6..67996a15 100644--- a/tests/gltf.test.js+++ b/tests/gltf.test.js@@ -85,7 +85,7 @@ test('GLB bridge preserves hierarchy, shared geometry, missing normals, UVs andasset.dispose();});-test('67.js exported GLB roundtrip preserves transforms and repeated primitive identity', async () => {+test('67js exported GLB roundtrip preserves transforms and repeated primitive identity', async () => {const geometry = {positions: new Float32Array([0, 0, 0, 1, 0, 0, 0, 1, 0]),normals: new Float32Array([0, 0, 1, 0, 0, 1, 0, 0, 1]),diff --git a/view2d.html b/view2d.htmlindex a93ad8ef..4a14f1ec 100644--- a/view2d.html+++ b/view2d.html@@ -4,7 +4,7 @@<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="theme-color" content="#1e2327">- <title>2D & orthographic views · 67.js</title>+ <title>2D & orthographic views · 67js</title><link rel="icon" href="/favicon.svg" /></head><body>