pixelkiln 0.133.0 → 0.134.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.
@@ -293,11 +293,14 @@ SET=spear python3 research/scripts/wield.py <animated.glb> <with-spear-motions.g
293
293
 
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
- That adds `Spear_Idle`, `Spear_Walk`, `Spear_Jog` and `Spear_Thrust`. The
296
+ That adds `Spear_Idle`, `Spear_Advance`, `Spear_Walk`, `Spear_Jog` and `Spear_Thrust`. The
297
297
  idle is a side-on stance: the hips turned 45 degrees so the forward shoulder
298
298
  leads, the forward foot ahead, the other behind and turned out, and the head
299
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
300
+ degrees), and the thrust squares them up as the point goes out.
301
+ `Spear_Advance` moves forward in the stance, the forward foot stepping and
302
+ the other following without passing it; it is made in place, and the report's
303
+ `groundMetresALoop` says how far to move the character in one loop. The
301
304
  stock one-handed motions do not suit a shaft; `offhand.py` can still be run
302
305
  on them, but the rear hand is often off the shaft.
303
306
 
@@ -63,6 +63,7 @@ Last updated 17 November 2026.
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
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. |
66
+ | 56 | A spear advance | Our scripts | A forward step written as footwork: the leading foot steps, the other follows, neither passes the other, the hips stay turned 45 degrees | Keep. Both bodies advance in the stance with the stance's wrists and both feet reaching. Made in place; not seen in a game. |
66
67
 
67
68
  **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.
68
69
 
@@ -1551,6 +1552,30 @@ Not checked: the rebuilt model's picture in the site viewer, any moment but the
1551
1552
 
1552
1553
  **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
1554
 
1555
+ ## 56. A spear advance
1556
+
1557
+ **Question.** Step 55's stance is side-on, but `Spear_Walk` and `Spear_Jog` are stock legs under hips turned less, so the trunk swings round every time he starts or stops. Can he move forward without leaving the stance?
1558
+
1559
+ **What was tried.** One new motion, `Spear_Advance`, written as footwork and not taken from a stock walk.
1560
+
1561
+ - *The feet.* Each foot on the ground goes back under the body at a steady pace, 0.26 leg lengths in all. For 32% of each cycle it is lifted 0.07 and brought forward again, leaving and landing at the ground's pace. The rear foot does the same half a cycle later. Neither passes the other: the leading foot stays between 0.09 and 0.35 ahead, the other between 0.05 and 0.31 behind.
1562
+ - *The hips* stay turned 45 degrees and sink a little as the feet part. The arms hold the stance's grip.
1563
+ - *The other foot's lift.* A row of `feet` gains an eighth number for it. The rows are made by a small function, `shuffle`, 24 to a cycle.
1564
+ - *The length.* The body comes from the idle, so the motion is as long as the idle (2.5 seconds) and holds three cycles; it loops with nothing to hide at the seam.
1565
+ - *The ground.* It is made in place. The report gives how far the ground goes by in a loop (`groundMetresALoop`), for a game to move him by.
1566
+
1567
+ **Result.**
1568
+
1569
+ ![Both bodies at three moments of one advance cycle, from the side and from the front quarter](../website/public/research/3d/spear-advance.png)
1570
+
1571
+ - **Both feet reach and both hands are on the shaft at every moment on both bodies,** with no pull-in.
1572
+ - **The wrists are the stance's:** 19 and 8 degrees at most on the first body (forward hand, rear hand), 12 and 13 on the second.
1573
+ - **The ground covered in one loop** is 1.01 m for the first body and 0.85 m for the second, about 0.4 and 0.34 m a second.
1574
+ - **First frame to last: 0 degrees.** Both files validate with no errors or warnings, with 17 animations, and Godot finds all 17 required bones on both.
1575
+ - **Not done:** a lifted foot stays flat, with no roll from heel to toe. Nothing was checked in a game with the body really moving, so whether the feet slide at that speed is worked out, not seen. A retreat is this motion played backwards, which was not tried. `Spear_Walk` and `Spear_Jog` are unchanged.
1576
+
1577
+ **Verdict.** Keep. A character in the stance can now close distance without turning out of it.
1578
+
1554
1579
  ## What has not worked, in one place
1555
1580
 
1556
1581
  So nobody repeats them:
@@ -1585,7 +1610,7 @@ Two bugs worth remembering, because both produced plausible wrong pictures: glTF
1585
1610
  - **Sixteen directions and lighting for the sprite cards** (step 31): the in-between views of step 13, and normals from the hidden mesh.
1586
1611
  - **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.
1587
1612
  - **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).
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.
1613
+ - **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, step 55 turned the spear motions side-on, and step 56 added an advance that keeps the stance. Still to do: a handle sized to the hand, root motion, and motions made for a shield or a left-handed sword.
1589
1614
  - **A score that sees cleanliness.** Colour error against one drawing cannot tell a clean redraw from a torn render.
1590
1615
  - **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.
1591
1616
  - **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.133.0",
3
+ "version": "0.134.0",
4
4
  "description": "Manifest-driven pixel-art generation, review, recovery, and packaging with deterministic provenance.",
5
5
  "type": "module",
6
6
  "sideEffects": false,