@lovelace_lol/embody 0.0.11 → 0.0.13
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/README.md +37 -40
- package/dist/index.js +1760 -118
- package/dist/index.js.map +1 -1
- package/dist/three/authoring.d.ts +3 -3
- package/dist/three/authoringTypes.d.ts +0 -91
- package/dist/three/character.d.ts +2 -8
- package/dist/three/characterHost.d.ts +33 -5
- package/dist/three/characterTexturePalette.d.ts +6 -0
- package/dist/three/editor/SkeletonOverlay.d.ts +128 -0
- package/dist/three/editor/morphVertexPreview.d.ts +35 -0
- package/dist/three/index.d.ts +2 -0
- package/dist/three/modelMorphLayout.d.ts +13 -0
- package/dist/three/scene.d.ts +5 -0
- package/dist/three/sceneInkBackground.d.ts +11 -0
- package/dist/three/sceneInkBackgroundStyle.d.ts +5 -0
- package/dist/three.js +1760 -118
- package/dist/three.js.map +1 -1
- package/dist/wasm/README.md +37 -40
- package/dist/wasm/auDescriptors.d.ts +35 -0
- package/dist/wasm/embody_wasm.d.ts +52 -96
- package/dist/wasm/embody_wasm.js +12 -147
- package/dist/wasm/embody_wasm_bg.wasm +0 -0
- package/dist/wasm/embody_wasm_bg.wasm.d.ts +48 -56
- package/dist/wasm/index.d.ts +2 -0
- package/dist/wasm.js +288 -1
- package/dist/wasm.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -294,7 +294,7 @@ step/linear clip conversion, and remaining import work.
|
|
|
294
294
|
|
|
295
295
|
`humanoid.getSpecification` exposes all 55 VRM 1.0 anatomical roles and their
|
|
296
296
|
parent/required rules. CC4 maps all 55 to distinct authored bones and supplies
|
|
297
|
-
|
|
297
|
+
authored AU mappings for fingers, wrists, shoulders, feet, whole body motion, the
|
|
298
298
|
spine, head, eyes and jaw. `profile.setHumanoidRoleBinding` edits or clears a role and
|
|
299
299
|
retargets its existing actuators. The runtime keeps the same bone/morph evaluator;
|
|
300
300
|
other rigs must author their own calibrated axes/ranges and optional muscle
|
|
@@ -525,42 +525,39 @@ the package; CI checks and publishes that same build.
|
|
|
525
525
|
|
|
526
526
|
MIT. See [LICENSE](LICENSE) and [AUTHORS.md](AUTHORS.md).
|
|
527
527
|
|
|
528
|
-
###
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
`
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
`
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
`evaluate_semantic_body_bone_frame()` returns exact Body-owned properties including
|
|
565
|
-
neutral values, allowing an explicit semantic pose/reset to replace old raw bone
|
|
566
|
-
edits without touching unrelated properties.
|
|
528
|
+
### AU controls and authored animation
|
|
529
|
+
|
|
530
|
+
Character controls come from the character's saved `auInfo`/`actionInfo`,
|
|
531
|
+
`auToBones`, `auToMorphs`, `compositeRotations` and `continuumPairs`. There is
|
|
532
|
+
no named body-control catalog or fixed control count. `engine.getAUDescriptors()`
|
|
533
|
+
and initialized `getAUDescriptors(profile, modelDescriptor?)` return per-AU
|
|
534
|
+
metadata and resolved output support, including labels, signed pair IDs,
|
|
535
|
+
bilateral sides, saved morph strength and resolved bone/morph names.
|
|
536
|
+
|
|
537
|
+
Use `setAU`/`transitionAU`, `setContinuum`, `getAUBalance` and
|
|
538
|
+
`setAUMixWeight` for live controls. `buildClip`/`playSnippet` compile numeric
|
|
539
|
+
AU curves through the same saved bone/morph evaluator; `balanceMap` and
|
|
540
|
+
`mixWeights` are per-AU compilation options. Compilation preserves live state.
|
|
541
|
+
Native playback owns interpolation, pause, resume, cancellation and blending.
|
|
542
|
+
Reset an authored control by setting its mapped AU values to zero. Hosts select
|
|
543
|
+
which mapped AU IDs to reset; unrelated face state and saved mix strengths remain
|
|
544
|
+
under their existing owners.
|
|
545
|
+
|
|
546
|
+
Named semantic pose/animation APIs and profile `bodyControls` are retired.
|
|
547
|
+
Persisted named records must be decoded at the storage boundary to numeric AU
|
|
548
|
+
values/curves, using their original profile mappings. `LEGACY_BODY_CONTROL_AUS`
|
|
549
|
+
is a deprecated reader-only historical identity snapshot for old CC4 records;
|
|
550
|
+
it is never consulted for current controls, actuation or profile compilation.
|
|
551
|
+
Unknown legacy names must be reported rather than silently omitted.
|
|
552
|
+
|
|
553
|
+
### Character-derived studio background
|
|
554
|
+
|
|
555
|
+
The Three `createCharacterHost` paints its container with soft gradients sampled
|
|
556
|
+
from the selected model's material and texture colors. The studio uses the
|
|
557
|
+
original visible ink strengths (24/12%, 22/10%, 18%) over a gunmetal base.
|
|
558
|
+
Embody owns palette extraction and updates after successful character replacement;
|
|
559
|
+
late extraction cannot repaint a newer selection or a disposed host. Disposal
|
|
560
|
+
restores the container's original inline background. Explicit saved backgrounds,
|
|
561
|
+
including `null` transparency, non-studio scene types and external scenes retain
|
|
562
|
+
their authored appearance. Polymer forwards the host; applications do not sample
|
|
563
|
+
textures or construct a second scene background.
|