pixelkiln 0.144.0 → 0.144.1
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 +37 -11
- package/docs/RESEARCH_3D.md +48 -0
- package/package.json +1 -1
package/docs/CHARACTERS_3D.md
CHANGED
|
@@ -25,10 +25,11 @@ machine with a 12 GB RTX 3060.
|
|
|
25
25
|
- **Skin that hides.** The body is split by what covers it. Each piece lists
|
|
26
26
|
the items that hide it in its node's `extras`, as `"hiddenBy": ["Cuirass"]`.
|
|
27
27
|
Hide a piece while any item in its list is worn.
|
|
28
|
-
- **Lined items.**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
- **Lined, mended items.** `rig.py` ends by running `liner.py`. Each worn item
|
|
29
|
+
has its small holes filled and its edges smoothed, and carries a dark
|
|
30
|
+
lining: the skin it covers, copied into the item's own mesh and pulled in
|
|
31
|
+
under it. No skin shows through a visor or a gap in a sleeve, and there is
|
|
32
|
+
nothing new to switch on or off.
|
|
32
33
|
- **Two-sided items.** What is worn is an open shell, so its material is marked
|
|
33
34
|
`doubleSided` and its inside is drawn. Godot reads that as culling off.
|
|
34
35
|
- **A standard skeleton.** Twenty-one bones under the names Unity's and Godot's
|
|
@@ -194,6 +195,9 @@ behind it), it gets its wrist moved to the narrowest place and `LeftGrip` or
|
|
|
194
195
|
`RightGrip` in the middle of the fist. The script says which it found for each
|
|
195
196
|
hand. `FINGERS=0` turns all of this off.
|
|
196
197
|
|
|
198
|
+
When there are items, the last thing `rig.py` does is run `liner.py` on the
|
|
199
|
+
file it wrote (step 9b says what that does). `LINE=0` leaves it out.
|
|
200
|
+
|
|
197
201
|
### 8. Animate
|
|
198
202
|
|
|
199
203
|
```bash
|
|
@@ -223,13 +227,24 @@ that changes the arms.
|
|
|
223
227
|
python3 research/scripts/liner.py <character.glb> <out.glb>
|
|
224
228
|
```
|
|
225
229
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
`rig.py` runs this itself as its last step, so it is only run by hand on a
|
|
231
|
+
file made before that, or to try other settings. It does two things to each
|
|
232
|
+
worn item.
|
|
233
|
+
|
|
234
|
+
It mends the item. A generated item comes with dozens of small holes torn in
|
|
235
|
+
it and a ragged edge. A hole is a closed run of open edges up to `MEND` metres
|
|
236
|
+
round (default 0.6) that the body does not pass through; a cuff, a neck or a
|
|
237
|
+
hem is one it does pass through, and stays open. Each hole is filled with a
|
|
238
|
+
fan of triangles in the colour around it. The edges that stay open are
|
|
239
|
+
smoothed along their length, `EDGE` times (default 3), once only.
|
|
240
|
+
|
|
241
|
+
It lines the item. `rig.py` hides the skin right under an item, but skin still
|
|
242
|
+
shows through a visor's slits and where the body pokes past a plate. This
|
|
243
|
+
decides again what each worn item covers, cuts the body's pieces to match, and
|
|
244
|
+
gives each item a lining of one dark colour from its own texture, tucked under
|
|
245
|
+
it. Held, strapped and hanging items get none. `ITEMS`, `NEAR`, `UNDER`,
|
|
246
|
+
`CLOSE`, `TUCK` and `SHADE` are described at the top of the script. Running it
|
|
247
|
+
again replaces the lining and fills nothing twice.
|
|
233
248
|
|
|
234
249
|
### 10. Dress another body
|
|
235
250
|
|
|
@@ -330,6 +345,17 @@ its own name, with both arms carrying the item (a sword upright, a spear
|
|
|
330
345
|
level); `HOLD=Roll,Jump_Start` does only those. `DROP='^Sword_'` takes out the
|
|
331
346
|
ones that make no sense with two hands on the item.
|
|
332
347
|
|
|
348
|
+
A held motion keeps `FOLLOW` of the stock arm's own movement (default 0.25):
|
|
349
|
+
the item rises, dips and swings with where the leading hand went, and while
|
|
350
|
+
the body is tipped over, in a death or a roll, it is laid down (a sword along
|
|
351
|
+
the spine, a shaft across the chest) and not held upright. This needs the stock arms, so run `HOLD` on a file whose
|
|
352
|
+
stock motions have not been through it before.
|
|
353
|
+
|
|
354
|
+
`SLIDE` moves the item through the hands towards its point, in metres. A
|
|
355
|
+
spear carried level with half a metre of shaft behind the rear hand puts its
|
|
356
|
+
butt through a cape; `SLIDE=0.31` on the site's spear ends the butt just
|
|
357
|
+
behind that hand.
|
|
358
|
+
|
|
333
359
|
A spear or staff has no guard and its hands go apart. Say where they go, give
|
|
334
360
|
it to the hand that is forward, and ask for the spear motions:
|
|
335
361
|
|
package/docs/RESEARCH_3D.md
CHANGED
|
@@ -69,6 +69,7 @@ Last updated 17 November 2026.
|
|
|
69
69
|
| 59 | Shield motions | Our scripts | `shield.py`: the shield arm written as three directions (elbow, face, top), for a guard, a walk, a jog, the sword attack, a block, a held block and a bash | Keep. Seven motions on both bodies; nothing gets more than 1.7 cm inside the shield. Not seen in a game. |
|
|
70
70
|
| 60 | Held things clear of the trunk | Our scripts | `wield.py` measures the trunk from the file's own meshes, armour included, and moves the grip and swings the elbows until the forearms and the item are out of it; worn items are written two-sided | Keep. The greatsword's second forearm lay through the armoured belly for 84 to 89% of its length and now does for 1 to 8%; the spear no longer runs through the hip. Skin still shows at the edges of the armour |
|
|
71
71
|
| 61 | A lining, a cape that gives way, stock motions held in both hands | Our scripts | `liner.py` swaps the skin under each worn item for a dark lining inside the item's own mesh; `sway.py` keeps the cape out of the arms and what is held; `wield.py` `HOLD` re-solves the stock motions' arms | Keep. No skin shows through the visor or the sleeves; the spear idle's wrist bends 20 degrees, not 97. The cape still meets a level spear's butt, and the arm armour's ragged outline is unchanged |
|
|
72
|
+
| 62 | Mended armour, a spear slid forward, items laid down in a fall | Our scripts | `liner.py` fills the small holes in each worn item and smooths its open edges; `wield.py SLIDE` moves a shaft through the hands so its butt stays out of a cape; held stock motions follow a quarter of the arm's own movement and lay the item down when the body tips over; `rig.py` runs `liner.py` itself | 51 to 64 holes filled an item on the painted models; cape contact 5.8% to 0% in `Spear_Jog`, 10.2% to 0% in the spear's `Walk_Loop`; the thrust's leading wrist bends 83 degrees, from 72 |
|
|
72
73
|
|
|
73
74
|
**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.
|
|
74
75
|
|
|
@@ -1773,6 +1774,53 @@ All five files validate with no errors, warnings or notes, and Godot 4.7.2 impor
|
|
|
1773
1774
|
- The stock motions held in both hands are a fixed carry. A death or a roll with the sword held upright before the chest is clear of the body, not well acted.
|
|
1774
1775
|
- None of this is in `rig.py`: a new build needs `liner.py` run after it.
|
|
1775
1776
|
|
|
1777
|
+
Step 62 takes these up.
|
|
1778
|
+
|
|
1779
|
+
## 62. Mended armour, a spear slid forward, items laid down in a fall
|
|
1780
|
+
|
|
1781
|
+
Four things were left after step 61. The rig inputs are still gone, so this again works on shipped files. For the two-handed models it starts from the files as they were before step 61, which still have the stock motions' own arms.
|
|
1782
|
+
|
|
1783
|
+
**The ragged armour.** The outline was not the problem. Counted with the texture's seams welded, the cuirass on the first body has 78 runs of open edges and only six of them are real openings (the neck, the hem, the cuffs and armholes). The rest are holes torn in the plate by the generator, up to 40 cm round, and the lining showed through each as a black patch. `liner.py` now mends an item before it lines it. A closed run of open edges no longer than `MEND` (0.6 m) is a hole unless the body passes through it: the middle of a cuff is inside the arm, the middle of a hole in a breastplate is outside the chest. A hole is filled with a fan of triangles from its middle, in the texture around it; where the hole crosses a seam in the texture the fan takes one colour from its edge. Filling one hole can close another, so it is repeated until nothing is filled. The runs left open are then smoothed along their length three times, which takes the saw teeth off a hem (the leg armour's longest edge went from 2.64 m to 1.72 m round without moving). Smoothing is done once and marked in the mesh's extras, since a second pass would shrink the edge again.
|
|
1784
|
+
|
|
1785
|
+
| Model | Leg armour | Cuirass | Helm |
|
|
1786
|
+
|---|---|---|---|
|
|
1787
|
+
| First body (all four files) | 51 | 64 | 22 |
|
|
1788
|
+
| Second body | 51 | 62 | 21 |
|
|
1789
|
+
| Pixel-textured | 16 | 11 | 6 |
|
|
1790
|
+
|
|
1791
|
+
Holes filled in each item. A second run fills none and writes a file of the same size.
|
|
1792
|
+
|
|
1793
|
+
**The spear's butt.** Cloth cannot go round a shaft that passes through it, so no setting of `sway.py` could fix this. The cause was the hold: 49 cm of shaft stood behind the rear hand. `wield.py SLIDE` moves the item's mesh along its handle towards the point and leaves the hands where they are. How far matters twice over. The cape is clear from 31 cm (5.8% contact in `Spear_Jog` at 28 cm, 0% at 31). The thrust's leading wrist gets worse as the butt comes up to the hip, where the trunk's clearance pushes on it: 72 degrees with no slide, 42 at 28 cm, 83 at 31, over 100 from 33 on. The site's spear uses 31 cm.
|
|
1794
|
+
|
|
1795
|
+
| Spear, motion | Before | After |
|
|
1796
|
+
|---|---|---|
|
|
1797
|
+
| `Spear_Jog` | 5.8% | 0% |
|
|
1798
|
+
| `Walk_Loop` | 10.2% | 0% |
|
|
1799
|
+
| `Jog_Fwd_Loop` | 5.8% | 0% |
|
|
1800
|
+
| `Death01` | 9.0% | 0% |
|
|
1801
|
+
| `Hit_Chest` | 11.2% | 9.5% |
|
|
1802
|
+
| `Sprint_Loop` | 0.9% | 5.8% |
|
|
1803
|
+
|
|
1804
|
+
The share of moments and places within 2 cm of the cape's cloth, as in step 61.
|
|
1805
|
+
|
|
1806
|
+
**Stiff held motions.** `HOLD` put the item in one pose for the whole of a stock motion. Two things were added. The first is `FOLLOW`: the stock arm's own movement is read before it is replaced (where the leading hand went and which way its forearm pointed, as the chest saw them), and the item is carried with a share of how far each strays from its usual place. Half was tried first and put the spear 18 cm into the trunk in the dance; a quarter leaves 0.8 cm and is the default. The second is for a body that has tipped over. From 35 degrees off upright to 75 the item is laid down: a sword along the spine, pointing past the head, and a shaft across the chest with a hand either side. A spear along the spine was tried and the arms could not reach it (pulled in 13 to 18 cm). The dead knight now lies with the sword on him or the spear across his chest, where before he held either straight up.
|
|
1807
|
+
|
|
1808
|
+
The trunk measure reads high for the laid spear (21 cm in `Death01`, 14 in `Roll`) because the shaft rests on the chest and the forearms fold over it. In the renders it lies on the body, not through it. The greatsword's roll bends both wrists about 90 degrees for a moment.
|
|
1809
|
+
|
|
1810
|
+
**`rig.py`.** When there are items it now ends by running `liner.py` on the file it wrote, and puts what was lined in its report. `LINE=0` leaves that out. This could not be run here: the rig inputs are gone, so the call is untested against a real build.
|
|
1811
|
+
|
|
1812
|
+

|
|
1813
|
+
|
|
1814
|
+
All five files validate with no errors, warnings or notes, and Godot 4.7.2 imports each with no errors. The files grew 1% to 2%.
|
|
1815
|
+
|
|
1816
|
+
**Not done.**
|
|
1817
|
+
|
|
1818
|
+
- The spear thrust's leading wrist bends 83 degrees at its worst, from 72.
|
|
1819
|
+
- `Hit_Chest` and `Sprint_Loop` still bring the spear's rear hand and butt against the cape.
|
|
1820
|
+
- A cuff or hem is smoother but still follows the generator's edge; it is not cut straight.
|
|
1821
|
+
- The greatsword's `Roll` bends the wrists about 90 degrees, and the spear's `Dance_Loop` still ends 14 degrees from where it starts.
|
|
1822
|
+
- `rig.py`'s new last step has not been run on a real build.
|
|
1823
|
+
|
|
1776
1824
|
## What has not worked, in one place
|
|
1777
1825
|
|
|
1778
1826
|
So nobody repeats them:
|