pixelkiln 0.128.0 → 0.129.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 +2 -1
- package/docs/RESEARCH_3D.md +29 -1
- package/package.json +1 -1
package/docs/CHARACTERS_3D.md
CHANGED
|
@@ -279,7 +279,8 @@ It adds `Great_Idle`, `Great_Walk`, `Great_Jog` and `Great_Attack`: the
|
|
|
279
279
|
sword's path is written in the script, both arms are solved to it, and the
|
|
280
280
|
legs and trunk come from the stock idle, walk and jog. It prints how far each
|
|
281
281
|
wrist bends, how far the blade is off its edge and whether a hand fell short.
|
|
282
|
-
To add a motion, add an entry to `MOTIONS` at the top of the script.
|
|
282
|
+
To add a motion, add an entry to `MOTIONS` at the top of the script. An entry's
|
|
283
|
+
`feet` list moves and turns the hips and steps a foot, as the attack does.
|
|
283
284
|
|
|
284
285
|
Then animate as in step 8. `retarget.py` carries the library's thumb and
|
|
285
286
|
middle finger over, so the hand is a fist in a walk and closed round the grip
|
package/docs/RESEARCH_3D.md
CHANGED
|
@@ -59,6 +59,7 @@ Last updated 17 November 2026.
|
|
|
59
59
|
| 49 | The left hand, and a shield | PixelLab, Hunyuan3D-2mv, our scripts | The sword sits in either body's left hand with no change; a generated shield is strapped to the left forearm of both and stands upright through the library's motions | Keep. The shield is carried, not used: the library has no shield or left-handed motions. |
|
|
60
60
|
| 50 | Two hands on one grip | PixelLab, Hunyuan3D-2mv, our scripts | A generated greatsword in both hands of both bodies through all twelve motions, by pulling the grip in front of the body and solving both arms at every moment | Keep as a baked fallback. Wrists bend past what a wrist can in some motions; real two-handed animations would be better. |
|
|
61
61
|
| 51 | Motions made for two hands | Our scripts | Four two-handed motions (a guard, a walk, a jog and a cut) made by writing down the sword's path and solving both arms to it. Wrists stay within 52 degrees on the first body, where the bent one-handed motions reached 100 | Keep. Use these where a motion exists, and step 50's bent ones for the rest. |
|
|
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. |
|
|
62
63
|
|
|
63
64
|
**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.
|
|
64
65
|
|
|
@@ -1403,6 +1404,33 @@ Not checked: how the motions read in play in an engine, the whole of each motion
|
|
|
1403
1404
|
|
|
1404
1405
|
**Verdict.** Keep. For a motion that exists in this form, it beats bending a one-handed one: the wrists stay inside what a wrist does and the sword goes where it was told. It is not a replacement for an animator or for captured motion.
|
|
1405
1406
|
|
|
1407
|
+
## 52. Footwork for the two-handed attack
|
|
1408
|
+
|
|
1409
|
+
**Question.** Step 51's attack moved the arms and leaned the spine over the idle's feet. Can the same written-down approach give it a step and a turn of the hips?
|
|
1410
|
+
|
|
1411
|
+
**Setup.** `wield.py` takes one more list for a motion, `feet`: at a few moments, how far the hips move forward and down, how far they turn towards the leading side, and how far the foot on the other hand's side steps forward and lifts, in leg lengths. The hips are moved and turned first, so the chest, and the sword that rides on it, turn with them. Both legs are then solved again from hip to ankle, knees forward. The standing foot keeps the place and facing the idle gave it; the stepping foot keeps its facing.
|
|
1412
|
+
|
|
1413
|
+
For `Great_Attack`: the hips turn 18 degrees towards the raised sword and shift back, the left foot lifts, and as the cut lands it comes down 0.45 leg lengths ahead with the hips forward, 0.14 leg lengths lower and turned 14 degrees the other way. Then everything returns.
|
|
1414
|
+
|
|
1415
|
+
**Result.**
|
|
1416
|
+
|
|
1417
|
+

|
|
1418
|
+
|
|
1419
|
+
- **Both feet reach their places at every moment** on both bodies, and the standing foot does not slide, since it is put where the idle had it.
|
|
1420
|
+
- **The arms are as they were:** wrists within 42 degrees on the first body and 69 on the second, both hands on the grip.
|
|
1421
|
+
- **The files are valid** and Godot 4.7.2 imports both with no errors and finds its 17 required bones. The first body's file is the same size, 2.9 MB.
|
|
1422
|
+
|
|
1423
|
+
Flaws:
|
|
1424
|
+
|
|
1425
|
+
- **A first try left a foot 2 centimetres short at rest.** The leg solver had the arms' limit of 97% of full reach, and a standing leg is straighter than that. Legs now get their full length.
|
|
1426
|
+
- **The stepping foot's toe does not roll.** It lifts and lands flat.
|
|
1427
|
+
- **The step is in place.** The character returns to where it stood; a game that wants the attack to carry it forward needs root motion, which is not written.
|
|
1428
|
+
- **The numbers were set once and looked at,** not searched as the arm poses were.
|
|
1429
|
+
|
|
1430
|
+
Not checked: the motion in play in an engine or in the site's viewer, and the idle, walk and jog, which have no footwork of their own beyond the stock legs.
|
|
1431
|
+
|
|
1432
|
+
**Verdict.** Keep. The attack reads as a lunge now, and the `feet` list is there for other motions.
|
|
1433
|
+
|
|
1406
1434
|
## What has not worked, in one place
|
|
1407
1435
|
|
|
1408
1436
|
So nobody repeats them:
|
|
@@ -1437,7 +1465,7 @@ Two bugs worth remembering, because both produced plausible wrong pictures: glTF
|
|
|
1437
1465
|
- **Sixteen directions and lighting for the sprite cards** (step 31): the in-between views of step 13, and normals from the hidden mesh.
|
|
1438
1466
|
- **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.
|
|
1439
1467
|
- **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).
|
|
1440
|
-
- **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. Still to do: a handle sized to the hand,
|
|
1468
|
+
- **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. Still to do: a handle sized to the hand, root motion, a staff or spear, and motions made for a shield or a left-handed sword.
|
|
1441
1469
|
- **A score that sees cleanliness.** Colour error against one drawing cannot tell a clean redraw from a torn render.
|
|
1442
1470
|
- **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.
|
|
1443
1471
|
- **Carve at a finer grid** than one voxel per pixel, so thin objects survive.
|