threedog 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/docs/AI.md +1 -1
- package/docs/COMMANDS.md +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each version and how a game upgrades.
|
|
4
4
|
|
|
5
|
+
## 1.4.0 (2026-11-15)
|
|
6
|
+
|
|
7
|
+
- New: `threedog hub`, a local web page that lists your threedog games and shows each game's screenshot wall. The points to shoot are in the game's own `shots.json` (each point takes the options of `threedog shot`: `view`, `cam`, `pos`, `at`, `play`, `time`, `weather`, `wait`, `size`, `page`). After a file of a game changes and 30 s pass with no further change, the hub shoots all its points again, one game at a time, and the page updates by itself; each point keeps its last 10 pictures, and a point that fails shows its reason. From the page you can create a game (the `threedog init` starts), add an existing game folder, open a game or its asset gallery, and re-shoot by hand. `threedog hub --shortcut` (or the page's button) puts a desktop icon that opens it (Windows). The server answers only on 127.0.0.1 and refuses requests from other web pages.
|
|
8
|
+
- New: `threedog init` adds the game to the hub's list (`~/.threedog/projects.json`; `THREEDOG_HOME` moves it). New games start with a `shots.json` of one point.
|
|
9
|
+
- Upgrading: nothing to change. To get pictures of your own spots, add a `shots.json` to the game's folder.
|
|
10
|
+
|
|
5
11
|
## 1.3.0 (2026-11-12)
|
|
6
12
|
|
|
7
13
|
- Fixed: on WebGPU the engine now asks the device for the adapter's own `maxBufferSize`, `maxStorageBufferBindingSize`, `maxSampledTexturesPerShaderStage` and `maxSamplersPerShaderStage` (as it already did for the color attachment limits) instead of WebGPU's defaults. Before, `voxelGI` on a scene of about a million triangles or more failed every frame with `Buffer size exceeds the max buffer size limit` (its triangle buffer passed the default 256 MB), and a material with more than 16 textures counting the lights' shadow maps failed with only `Invalid PipelineLayout`. Measured on one desktop GPU: buffer 256 MB to 2 GB, storage binding 128 MB to 2 GB, textures per stage 16 to 48; samplers stay where the adapter's own limit is 16. A game's own renderer keeps the limits the game gave it.
|
package/docs/AI.md
CHANGED
|
@@ -125,7 +125,7 @@ A row or `threedog how` -> recipe -> `api/<module>.md`. Also: `CONVENTIONS.md`,
|
|
|
125
125
|
| To do | Use | Recipe |
|
|
126
126
|
|---|---|---|
|
|
127
127
|
| Broke; describe, explain, shot: which tool | `.threedog/errors.log`, `engine.describe`, `engine.explain` | 16-dev-bridge.md §11 |
|
|
128
|
-
| Picture looks wrong: judge it | `threedog shot` | 60-judge-the-picture.md §"How to judge" |
|
|
128
|
+
| Picture looks wrong: judge it | `threedog shot` (points in `shots.json`; `threedog hub` re-shoots them) | 60-judge-the-picture.md §"How to judge" |
|
|
129
129
|
| Drive and check the live game | the dev bridge (`verify <scenario>`) | 16-dev-bridge.md §1 |
|
|
130
130
|
| Slow, low fps | `engine.jobs`, `engine.threads`, `engine.budget`, `engine.debug` | 15-perf.md §1 |
|
|
131
131
|
| Deploy | `npm run build` | 61-deploy.md |
|
package/docs/COMMANDS.md
CHANGED
|
@@ -88,6 +88,7 @@ export const specs = [{
|
|
|
88
88
|
| `threedog tune show [-w game]` · `threedog tune write [file] [--apply] [-w game]` | Values from `.threedog/tune.json` as one `// threedog:tune begin ... end` block of plain three.js writes (`engine.scene.fog.far = 90;`, `material.setValues` by name, UI CSS variables) in `file`. A later write merges into the block, so values the panel no longer holds stay; delete a line to drop it. Model generator params (the panel's models folder) become the `default` in that model's `params` schema where it is registered (no file needed for those). Without `--apply` it only prints the diff. `recipes/35-picture-from-reference.md` |
|
|
89
89
|
| Tuning without a mouse | Try values with `threedog js` (`engine.scene.fog.far = 90`), look with `threedog snap`, then write the result into `.threedog/tune.json` as `{ "values": { "engine.scene.fog.far": 90, "engine.scene.background": "#336699" }, "css": { "accent": "#7fd3ff" }, "materials": { "rock": { "roughness": 0.8 } }, "models": { "tree": { "height": 4 } } }` and run `threedog tune write main.js --apply`, or write the value straight into the code |
|
|
90
90
|
| `threedog gallery [-w game]` · `threedog gallery --shots [--mode …] [--light …] [--material name]` | Every registered model and texture on a turntable under three neutral light setups (tone mapping copied from the game), and the look-dev page (recipe 05 "Look-dev"). Without `--shots` it serves the game in dev and prints the `?gallery=1` URL; `--shots` writes `.threedog/gallery/` pictures, `index.html` and `index.json` headless, and `--mode` adds review pictures (silhouette, value, material channels) with measured facts and no thresholds. Options: `threedog gallery --help`. `recipes/05-props-bake.md` section 2c |
|
|
91
|
+
| `threedog hub [--port 5180] [--no-open] [--shortcut]` | Local web page: a card per game, a screenshot wall per game (points in `shots.json`, fields as `threedog shot`), re-shot 30 s after file changes; new project, add folder. `--shortcut`: desktop icon (Windows). |
|
|
91
92
|
| `npm run build` | Bundle each workspace into its own dist/ |
|
|
92
93
|
| `threedog preview [game]` (or `-w game`, as for dev and build) | Serve a workspace's built dist/ (vite preview) to open the production build in a browser. It is the shipped game, so URL keys (`?play`, `?time`…) are not read; `shot`, `test` and `dev` read them, or set `createEngine({ urlState: true })` (`?fresh` stays dev-only) |
|
|
93
94
|
| `threedog relay [port]` | The WebSocket relay for the net module (default port 8787, no dependencies). `recipes/27-net.md` |
|
package/package.json
CHANGED