pixelkiln 0.131.0 → 0.132.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/docs/CHARACTERS_3D.md +4 -0
- package/docs/RESEARCH_3D.md +44 -1
- package/package.json +1 -1
package/docs/CHARACTERS_3D.md
CHANGED
|
@@ -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/RESEARCH_3D.md
CHANGED
|
@@ -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
|
+

|
|
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,
|
|
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.
|