pixelkiln 0.131.0 → 0.133.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.
@@ -294,6 +294,10 @@ SET=spear python3 research/scripts/wield.py <animated.glb> <with-spear-motions.g
294
294
  `GRIP_AT` is where the forward hand's middle is, as a share of the item's
295
295
  length from its butt, and `GRIP_APART` how far behind it the other hand is.
296
296
  That adds `Spear_Idle`, `Spear_Walk`, `Spear_Jog` and `Spear_Thrust`. The
297
+ idle is a side-on stance: the hips turned 45 degrees so the forward shoulder
298
+ leads, the forward foot ahead, the other behind and turned out, and the head
299
+ looking along the shaft. The walk and jog turn the hips less (28 and 14
300
+ degrees), and the thrust squares them up as the point goes out. The
297
301
  stock one-handed motions do not suit a shaft; `offhand.py` can still be run
298
302
  on them, but the rear hand is often off the shaft.
299
303
 
package/docs/CLI.md CHANGED
@@ -200,23 +200,40 @@ finish it before polling.
200
200
 
201
201
  ### `pick`
202
202
 
203
- Open the local candidate-review UI for jobs with alternatives. The page keeps
204
- native aspect ratios, uses exact integer zoom for small art, fits large work,
205
- and centers the decision surface on wide displays. A revision row shows its
206
- parent source beside the new candidates, and a regeneration (`gen --force`)
207
- shows the art it would replace beside them while that file is still on disk,
208
- so the question is "is this better?" rather than "is this good?". A frame set
209
- (a ComfyUI frame set, a PixelLab animation, or a frame-set revision such as
210
- `animate-skeleton`) appears as an
211
- animated ordered strip and is accepted or left unresolved as a unit. Its preview
212
- can be paused, starts paused when reduced motion is enabled, and stops while it
213
- is offscreen. Frames and candidates the provider decoded to a local cache are
214
- served by the review server itself, since a localhost page may not load a
215
- `file://` image. Arrow keys navigate, Enter selects, 1–9 choose directly, and 0
216
- leaves a row unresolved. Only rows submitted
217
- with **Apply selections** are written to the lockfile. Closing the window applies
218
- nothing. See the [Getting started guide](GETTING_STARTED.md#start-a-new-project)
219
- for a screenshot of the interface.
203
+ Open the local candidate-review UI for jobs with alternatives. It is a review
204
+ queue built for 50+ assets: a list of every asset on the left, each playing its
205
+ candidate as a small thumbnail, and a stage on the right that shows the current
206
+ asset at the largest whole-number zoom that fits (fitted, never stretched, when
207
+ the art is larger than the stage). A frame set (a ComfyUI frame set, a PixelLab
208
+ animation, or a frame-set revision such as `animate-skeleton`) plays as an
209
+ animation and is accepted or left unresolved as a unit; alternatives are
210
+ browsed one at a time. Playback starts paused when reduced motion is enabled
211
+ and stops while the tab is hidden.
212
+
213
+ `C` flips the stage between the candidate and the art it would replace (a
214
+ `gen --force` regeneration, while that file is still on disk) or a revision's
215
+ parent source, at the same scale, so the question is "is this better?" rather
216
+ than "is this good?". `X` opens a horizontal strip of every frame or candidate,
217
+ with onion skin (`O`) and ping-pong playback (`P`). `F` flags the frame on the
218
+ stage; a set with a flagged frame cannot be accepted, and the list can be
219
+ filtered by status (`1`–`5`: all, undecided, accepted, flagged, later).
220
+
221
+ Every action has a key: `↑`/`↓` move between assets, `←`/`→` step frames or
222
+ candidates, `Space` plays and pauses the page, `A` accepts, `L` sets an asset
223
+ aside for later, `Shift+A` accepts every unflagged asset, `Shift+S` and
224
+ `Shift+D` select and deselect all, and `Ctrl`/`Cmd+Enter` applies. Under `gen`,
225
+ `R` (pressed twice, since it spends) rerolls one asset: it is resubmitted with
226
+ `--force` inside the same run, under the same budget, and its new candidates
227
+ replace the old ones on the page when they reach review.
228
+
229
+ Each choice, flag and "later" is saved as it is made to the review state beside
230
+ the candidate cache (`.pixelkiln/review-state.json`), so a refresh or a
231
+ restarted run reopens the page where it was left. Frames and candidates are
232
+ served from that local cache by the review server itself, each frame requested
233
+ once. Only assets accepted when you press **Apply** are written to the
234
+ lockfile; closing the window applies nothing. See the
235
+ [Getting started guide](GETTING_STARTED.md#start-a-new-project) for a
236
+ screenshot of the interface.
220
237
 
221
238
  The live localhost URL is progress, not piped command output. In a terminal it
222
239
  prints normally; when stdout is piped, PixelKiln sends it to stderr immediately
@@ -799,7 +816,7 @@ provider, and what the session budget still allows. It is the page's version of
799
816
  terminal `plan` in another window agrees at every step. Progress appears in a
800
817
  job strip under the filters; each job keeps the log lines the CLI would have
801
818
  printed. Candidate sets stop in `review`: **Review** slides the `pick` sheet
802
- out over the gallery, **Apply selections** writes the lockfile and downloads
819
+ out over the gallery, **Apply** writes the lockfile and downloads
803
820
  the chosen art, and unchosen rows stay in review exactly as with `pick`. A
804
821
  regeneration's sheet shows the current art beside the candidates. A job
805
822
  runs in waves, as `gen` does: when a wave lands, anything the job was asked
@@ -149,7 +149,7 @@ without applying discards no provider objects.
149
149
  ![PixelKiln local candidate review UI](../website/public/review-ui-showcase.jpg)
150
150
 
151
151
  The sheet is served only on localhost and selection remains human-controlled.
152
- Only rows submitted with **Apply selections** are recorded; unresolved rows can
152
+ Only assets accepted when you press **Apply** are recorded; unresolved ones can
153
153
  be reopened later with [`pixelkiln pick`](CLI.md#pick).
154
154
 
155
155
  If a run stops between stages, rerun `plan`. It points `processing` work to
@@ -62,6 +62,7 @@ Last updated 17 November 2026.
62
62
  | 52 | Footwork for the two-handed attack | Our scripts | The cut now has a step: the hips wind up, the left foot steps out as the blade lands, and both legs are solved again. Feet stay on the ground and wrists are unchanged | Keep. |
63
63
  | 53 | A spear, hands apart | PixelLab, Hunyuan3D-2mv, our scripts | A generated spear held left hand forward with the right behind it on the shaft, and four motions made for it: a guard, a walk, a jog and a thrust with a step | Keep for the first body. The second body's rear wrist bends 82 to 86 degrees, and stock motions fit a shaft poorly. |
64
64
  | 54 | The spear's rear elbow | Our scripts | The rear arm's elbow moved from back and up to out at the side, found by trying 37 places for it on both bodies | Keep. The second body's rear wrist went from 82 to 86 degrees down to 8 to 19, the first body's from 47 to 72 down to 15 to 20. |
65
+ | 55 | A side-on spear stance | Our scripts | The spear motions rewritten with the hips turned (45 degrees standing, 28 walking, 14 jogging), the feet split and the head looking along the shaft | Keep. Both bodies hold it with wrists under 36 degrees and both feet on the ground. The walk's legs still walk straight under turned hips. |
65
66
 
66
67
  **How the percentages are measured.** The model is projected back to each of the eight camera positions and its outline is compared with the sprite's outline. The score is the area the two share divided by the area either covers, averaged over the views. 100% means the model casts exactly the sprite's shadow from every side. It measures shape only, not colour. It also favours carving, which is built from those same outlines.
67
68
 
@@ -1508,6 +1509,48 @@ Not checked: the rebuilt model's picture in the site viewer, whether the rear ar
1508
1509
 
1509
1510
  **Verdict.** Keep. The second body's spear is usable. The fault was the elbow, not the poses.
1510
1511
 
1512
+ ## 55. A side-on spear stance
1513
+
1514
+ **Question.** Step 53's spear motions face square to the front. A spearman stands turned, the leading shoulder forward. Can the motions be made side-on with what `wield.py` already has?
1515
+
1516
+ **What was tried.** Three small additions to a motion's footwork, then the four spear motions written again.
1517
+
1518
+ - *The other foot back.* A row of a motion's `feet` could step one foot. It can now also put the other foot behind (a seventh number), so a stance has its feet apart for its whole length.
1519
+ - *That foot turned out* (`rear_foot`, degrees), as a rear foot is.
1520
+ - *The head keeps looking ahead* (`look`). When the hips turn, the neck takes half the turn back and the head the rest.
1521
+ - *The motions.* `Spear_Idle` is the stance: hips turned 45 degrees away from the leading side and 0.06 leg lengths lower, the leading foot 0.22 ahead, the other 0.18 behind and turned out 40 degrees. `Spear_Walk` and `Spear_Jog` keep the stock legs and turn the hips 28 and 14 degrees. `Spear_Thrust` starts in the stance, winds to 52 degrees, then steps the leading foot out to 0.60 as the hips come round to 30. The grip is written from the chest, so each pose's shaft is turned towards the leading side by about what the hips are turned away, and the point stays ahead.
1522
+ - *The poses.* The stance's grip was picked from 96 tried on both bodies, the thrust's furthest reach from 48.
1523
+
1524
+ **Result.**
1525
+
1526
+ ![Both bodies in the side-on stance from the side and from above, walking, and with the thrust landed](../website/public/research/3d/spear-stance.png)
1527
+
1528
+ - **Both hands are on the shaft and both feet reach at every moment of all four motions on both bodies,** with no pull-in.
1529
+ - **Wrist bend, most through each motion, in degrees (forward hand, rear hand):**
1530
+
1531
+ | | Stance | Walk | Jog | Thrust |
1532
+ |---|---|---|---|---|
1533
+ | First body | 19, 9 | 18, 2 | 24, 16 | 26, 29 |
1534
+ | Second body | 13, 14 | 22, 14 | 35, 22 | 34, 29 |
1535
+
1536
+ - **Both files are valid** and Godot 4.7.2 imports both with its 17 required bones. The viewer's spear model is rebuilt.
1537
+
1538
+ Two things went wrong on the way:
1539
+
1540
+ - **The feet came off the ground in the walk and jog,** by up to 2.7 centimetres on the second body: with the hips turned, a leg at full stretch falls short. The hips are 0.05 leg lengths lower in both, and the feet reach.
1541
+ - **The thrust's forward wrist bent 54 degrees** with the hips squared to 20 degrees and the shaft straight ahead of them. The straight-wristed poses have the shaft further across the chest, so the hips now stop at 30.
1542
+
1543
+ Flaws:
1544
+
1545
+ - **The walk and jog are stock legs under turned hips.** The feet go where they went and point where they pointed. A real advance with a spear is a shuffle that keeps the leading foot ahead; this is a walk with the trunk turned.
1546
+ - **The point is not dead ahead.** In the stance and at the end of the thrust the shaft is about 5 degrees across the line the body faces.
1547
+ - **Three stances that do not match.** Standing is turned 45 degrees, walking 28, jogging 14, and the feet are split only when standing. An engine blending between them will swing the trunk.
1548
+ - **Nothing keeps the shaft's butt out of the cape,** as before.
1549
+
1550
+ Not checked: the rebuilt model's picture in the site viewer, any moment but the four pictured on each body, the motions in play in an engine, and the right hand leading.
1551
+
1552
+ **Verdict.** Keep. The stance and the thrust read as a spearman's. The walk and jog are a stopgap until the legs are made for the stance.
1553
+
1511
1554
  ## What has not worked, in one place
1512
1555
 
1513
1556
  So nobody repeats them:
@@ -1542,7 +1585,7 @@ Two bugs worth remembering, because both produced plausible wrong pictures: glTF
1542
1585
  - **Sixteen directions and lighting for the sprite cards** (step 31): the in-between views of step 13, and normals from the hidden mesh.
1543
1586
  - **More directions, and animation.** Step 13 gives sixteen directions. Thirty-two would spin smoothly, and the same trick on a walk cycle would give walks in the in-between directions, which the generator does not offer.
1544
1587
  - **Fix the squat proportions.** Carve at a finer grid, or let the redraw see a true neighbour at full height (the guide sheet does this and kept proportions better on the bare character).
1545
- - **Held items.** Steps 47 to 51 put a sword in either hand, open or drawn as a fist, a shield on a forearm, and a greatsword in both hands with four motions of its own. Step 52 gave the attack a step and step 53 added a spear with the hands apart, and step 54 moved its rear elbow so both bodies hold it with easy wrists. Still to do: a handle sized to the hand, root motion, a side-on spear stance, and motions made for a shield or a left-handed sword.
1588
+ - **Held items.** Steps 47 to 51 put a sword in either hand, open or drawn as a fist, a shield on a forearm, and a greatsword in both hands with four motions of its own. Step 52 gave the attack a step and step 53 added a spear with the hands apart, step 54 moved its rear elbow so both bodies hold it with easy wrists, and step 55 turned the spear motions side-on. Still to do: a handle sized to the hand, root motion, a spear advance with legs of its own, and motions made for a shield or a left-handed sword.
1546
1589
  - **A score that sees cleanliness.** Colour error against one drawing cannot tell a clean redraw from a torn render.
1547
1590
  - **Fewer, larger pieces in the unwrap.** The chest unwraps into a few large pieces, but the character comes out in hundreds of small ones, which is fine for a program and poor for a person or an image model to paint on. One piece per view, like a folded paper model, would make the texture a sprite sheet.
1548
1591
  - **Carve at a finer grid** than one voxel per pixel, so thin objects survive.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelkiln",
3
- "version": "0.131.0",
3
+ "version": "0.133.0",
4
4
  "description": "Manifest-driven pixel-art generation, review, recovery, and packaging with deterministic provenance.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -23,6 +23,7 @@
23
23
  },
24
24
  "scripts": {
25
25
  "pixelkiln": "tsx src/cli.ts",
26
+ "pick:fixture": "tsx scripts/pick-fixture.ts",
26
27
  "build": "tsup",
27
28
  "prepack": "npm run build",
28
29
  "release": "semantic-release",