@lovelace_lol/embody 0.0.8 → 0.0.9
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/dist/index.d.ts +1 -1
- package/dist/index.js +2049 -1466
- package/dist/index.js.map +1 -1
- package/dist/three/annotations/DPthreeCameraController.d.ts +1 -0
- package/dist/three/authoring.d.ts +95 -0
- package/dist/three/authoringTypes.d.ts +576 -0
- package/dist/three/character.d.ts +243 -0
- package/dist/three/characterHost.d.ts +48 -0
- package/dist/three/clipBindings.d.ts +6 -0
- package/dist/three/index.d.ts +28 -4
- package/dist/three/nativePlayback.d.ts +121 -0
- package/dist/three/playbackRendering.d.ts +14 -0
- package/dist/three.js +1982 -334
- package/dist/three.js.map +1 -1
- package/dist/wasm/compatibility.d.ts +14 -0
- package/dist/wasm/embody_wasm.d.ts +144 -199
- package/dist/wasm/embody_wasm.js +410 -576
- package/dist/wasm/embody_wasm_bg.wasm +0 -0
- package/dist/wasm/embody_wasm_bg.wasm.d.ts +71 -87
- package/dist/wasm/index.d.ts +7 -2
- package/dist/wasm.js +59 -2
- package/dist/wasm.js.map +1 -1
- package/package.json +5 -4
- package/dist/three/gaze.d.ts +0 -122
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovelace_lol/embody",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Renderer-agnostic character animation runtime for facial AUs, visemes, and bone-driven motion",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,10 +39,11 @@
|
|
|
39
39
|
"typecheck": "tsc --noEmit",
|
|
40
40
|
"test": "npm run rust:test && npm run typecheck && npm run test:annotations",
|
|
41
41
|
"test:service-worker": "node --test scripts/test/character-asset-service-worker.test.mjs",
|
|
42
|
+
"test:controls": "node --test scripts/test/live-control-ownership.test.mjs scripts/test/timed-control-transitions.test.mjs scripts/test/body-section-morph-contract.test.mjs scripts/test/humanoid-specification-contract.test.mjs",
|
|
42
43
|
"test:scene": "node --test scripts/test/character-scene.test.mjs",
|
|
43
|
-
"test:exports": "node scripts/smoke/package-exports.mjs && node scripts/smoke/body-controls.mjs && node scripts/smoke/semantic-pose.mjs && node scripts/smoke/morph-authoring.mjs && node scripts/smoke/mesh-profile.mjs && node scripts/smoke/inherited-starts.mjs && node scripts/smoke/bilateral-channels.mjs && node scripts/smoke/viseme-state.mjs && node scripts/smoke/reference-pose.mjs && node scripts/smoke/clip-interpolation.mjs && node scripts/smoke/
|
|
44
|
+
"test:exports": "node scripts/smoke/package-exports.mjs && node scripts/smoke/body-controls.mjs && node scripts/smoke/semantic-pose.mjs && node scripts/smoke/morph-authoring.mjs && node scripts/smoke/mesh-profile.mjs && node scripts/smoke/inherited-starts.mjs && node scripts/smoke/bilateral-channels.mjs && node scripts/smoke/viseme-state.mjs && node scripts/smoke/reference-pose.mjs && node scripts/smoke/clip-interpolation.mjs && node scripts/smoke/playback-contract.mjs && node scripts/smoke/native-playback.mjs && node scripts/smoke/character-playback.mjs && node scripts/smoke/package-declarations.mjs",
|
|
44
45
|
"test:pack": "node scripts/smoke/package-contents.mjs",
|
|
45
|
-
"test:package": "npm run check:dist && npm run test:exports && npm run test:scene && npm run test:pack && npm run test:annotations",
|
|
46
|
+
"test:package": "npm run check:dist && npm run test:exports && npm run test:controls && npm run test:scene && npm run test:pack && npm run test:annotations",
|
|
46
47
|
"check:dist": "node scripts/ci/check-built-package.mjs",
|
|
47
48
|
"check:generated": "node scripts/ci/check-no-tracked-generated.mjs",
|
|
48
49
|
"extract:humanoid-skeleton-template": "node scripts/extract-humanoid-skeleton-template.cjs",
|
|
@@ -91,5 +92,5 @@
|
|
|
91
92
|
"author": "Jonathan Sutton Fields",
|
|
92
93
|
"license": "MIT",
|
|
93
94
|
"packageManager": "npm@10.9.2",
|
|
94
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "cd64e636e2cfc7a945bb03a71261df3a6b56d612"
|
|
95
96
|
}
|
package/dist/three/gaze.d.ts
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import type { Object3D } from 'three';
|
|
2
|
-
import type { ThreeModelReferencePose } from './reference-pose';
|
|
3
|
-
type Point = {
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
z: number;
|
|
7
|
-
};
|
|
8
|
-
type Rotation = Point & {
|
|
9
|
-
w: number;
|
|
10
|
-
};
|
|
11
|
-
type Target = {
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
z?: number;
|
|
15
|
-
};
|
|
16
|
-
type Flags = {
|
|
17
|
-
eyesEnabled?: boolean;
|
|
18
|
-
headEnabled?: boolean;
|
|
19
|
-
};
|
|
20
|
-
export type ThreeGazeFocusOptions = {
|
|
21
|
-
/** Reuse the import reference when constructing the constraint during playback. */
|
|
22
|
-
referencePose?: ThreeModelReferencePose;
|
|
23
|
-
};
|
|
24
|
-
export type ThreeGazeFocusRequest = Flags & {
|
|
25
|
-
worldTarget: Point;
|
|
26
|
-
/** Aggregate FACS bearing normalized against full head + eye capacities. */
|
|
27
|
-
target: Target;
|
|
28
|
-
headTarget?: Target;
|
|
29
|
-
eyeIntensity?: number;
|
|
30
|
-
headIntensity?: number;
|
|
31
|
-
};
|
|
32
|
-
export type ThreeGazeFocusControls = {
|
|
33
|
-
eyeYaw?: number;
|
|
34
|
-
eyePitch?: number;
|
|
35
|
-
headYaw?: number;
|
|
36
|
-
headPitch?: number;
|
|
37
|
-
headRoll?: number;
|
|
38
|
-
/** Animation-sampled contributions in [0, 1], overriding request values. */
|
|
39
|
-
eyeIntensity?: number;
|
|
40
|
-
headIntensity?: number;
|
|
41
|
-
};
|
|
42
|
-
export type ThreeGazeFocusDiagnostic = {
|
|
43
|
-
target: Point;
|
|
44
|
-
eyes: Array<{
|
|
45
|
-
name: string;
|
|
46
|
-
origin: Point;
|
|
47
|
-
direction: Point;
|
|
48
|
-
errorDegrees: number;
|
|
49
|
-
limited: boolean;
|
|
50
|
-
}>;
|
|
51
|
-
headLimited: boolean;
|
|
52
|
-
missingHead: boolean;
|
|
53
|
-
missingEyes: boolean;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* A renderer constraint, driven by Animation's existing motor controls. It owns
|
|
57
|
-
* no clock, camera, target-selection policy, or event loop. Call restore before
|
|
58
|
-
* evaluating the mixer (and before changing bindings), then apply afterwards.
|
|
59
|
-
* Keeping the evaluated base pose separate prevents corrections feeding back
|
|
60
|
-
* through Three's unchanged-property optimization on paused/constant clips.
|
|
61
|
-
*
|
|
62
|
-
* Optional profile.gazeCalibration.{head,leftEye,rightEye}.opticalAxis supplies
|
|
63
|
-
* a bone-local optical direction. Otherwise signed yaw/pitch bindings determine
|
|
64
|
-
* it: CC4's eye rz/negative-rx axes yield -Y; head ry/negative-rx yield +Z.
|
|
65
|
-
*/
|
|
66
|
-
export declare class ThreeGazeFocus {
|
|
67
|
-
private model;
|
|
68
|
-
private profile;
|
|
69
|
-
private head?;
|
|
70
|
-
private eyes;
|
|
71
|
-
private saved;
|
|
72
|
-
private references;
|
|
73
|
-
private limits;
|
|
74
|
-
constructor(model: Object3D, profile: any, options?: ThreeGazeFocusOptions);
|
|
75
|
-
private name;
|
|
76
|
-
private binding;
|
|
77
|
-
private capacity;
|
|
78
|
-
private joint;
|
|
79
|
-
restore(): void;
|
|
80
|
-
private controlLimits;
|
|
81
|
-
private angles;
|
|
82
|
-
private ratio;
|
|
83
|
-
private degrees;
|
|
84
|
-
private direction;
|
|
85
|
-
private ray;
|
|
86
|
-
/** Seed motor clips from the rendered bearing when enabling pose constraints. */
|
|
87
|
-
readControlState(options?: Flags & {
|
|
88
|
-
worldTarget?: Point;
|
|
89
|
-
headIntensity?: number;
|
|
90
|
-
eyeIntensity?: number;
|
|
91
|
-
headBaseQuaternion?: Rotation;
|
|
92
|
-
eyeBaseQuaternions?: Record<string, Rotation>;
|
|
93
|
-
}): {
|
|
94
|
-
target: {
|
|
95
|
-
x: number;
|
|
96
|
-
y: number;
|
|
97
|
-
z: number;
|
|
98
|
-
} | undefined;
|
|
99
|
-
eyeTarget: {
|
|
100
|
-
x: number;
|
|
101
|
-
y: number;
|
|
102
|
-
z: number;
|
|
103
|
-
};
|
|
104
|
-
headTarget: {
|
|
105
|
-
x: number;
|
|
106
|
-
y: number;
|
|
107
|
-
z: number;
|
|
108
|
-
};
|
|
109
|
-
headRoll: number;
|
|
110
|
-
headSeedLimited: boolean;
|
|
111
|
-
eyeSeedLimited: boolean;
|
|
112
|
-
};
|
|
113
|
-
private origin;
|
|
114
|
-
private rotation;
|
|
115
|
-
private referenceParent;
|
|
116
|
-
private jointPose;
|
|
117
|
-
private solveJoint;
|
|
118
|
-
private contributedPose;
|
|
119
|
-
private solve;
|
|
120
|
-
apply(request: ThreeGazeFocusRequest, controls: ThreeGazeFocusControls): ThreeGazeFocusDiagnostic;
|
|
121
|
-
}
|
|
122
|
-
export {};
|