@aura3d/animation 5.5.1 → 5.5.4
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/Skeleton.d.ts +13 -1
- package/dist/Skeleton.d.ts.map +1 -1
- package/dist/Skeleton.js +145 -8
- package/dist/Skeleton.js.map +1 -1
- package/package.json +2 -2
package/dist/Skeleton.d.ts
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { Bone, type BoneDescriptor } from "./Bone.js";
|
|
2
|
-
import {
|
|
2
|
+
import type { Mat4, Vec3 } from "./Keyframe.js";
|
|
3
3
|
export declare class Skeleton {
|
|
4
4
|
readonly bones: readonly Bone[];
|
|
5
|
+
private readonly localScratch;
|
|
6
|
+
private readonly worldBuffer;
|
|
7
|
+
private readonly worldViews;
|
|
8
|
+
private readonly paletteBuffer;
|
|
9
|
+
private readonly paletteViews;
|
|
10
|
+
private readonly positionBuffer;
|
|
11
|
+
private readonly positionViews;
|
|
5
12
|
constructor(bones: readonly (Bone | BoneDescriptor)[]);
|
|
13
|
+
private computeWorldBuffer;
|
|
14
|
+
/** Contiguous `boneCount * 16` column-major world matrices reused across frames. */
|
|
15
|
+
worldMatricesBuffer(): Float32Array;
|
|
6
16
|
worldMatrices(): readonly Mat4[];
|
|
17
|
+
/** Contiguous `boneCount * 16` column-major skinning palette reused across frames. */
|
|
18
|
+
matrixPaletteBuffer(): Float32Array;
|
|
7
19
|
matrixPalette(): readonly Mat4[];
|
|
8
20
|
/** World-space positions (translation component of each bone's world matrix). */
|
|
9
21
|
boneWorldPositions(): readonly Vec3[];
|
package/dist/Skeleton.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../src/Skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../src/Skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAQ,IAAI,EAAE,MAAM,eAAe,CAAC;AAiGtD,qBAAa,QAAQ;IACnB,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IAChC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IACrD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAe;IAC3C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkB;IAC7C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAe;IAC7C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAkB;IAC/C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAe;IAC9C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAkB;gBAEpC,KAAK,EAAE,SAAS,CAAC,IAAI,GAAG,cAAc,CAAC,EAAE;IA4BrD,OAAO,CAAC,kBAAkB;IAgB1B,oFAAoF;IACpF,mBAAmB,IAAI,YAAY;IAInC,aAAa,IAAI,SAAS,IAAI,EAAE;IAKhC,sFAAsF;IACtF,mBAAmB,IAAI,YAAY;IAWnC,aAAa,IAAI,SAAS,IAAI,EAAE;IAKhC,iFAAiF;IACjF,kBAAkB,IAAI,SAAS,IAAI,EAAE;IAarC;;;;;OAKG;IACH,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE;IAgB5D;;;;OAIG;IACH,oBAAoB,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,EAAE,SAAS,EAAE,SAAS,IAAI,EAAE,GAAG,IAAI;CAWxF"}
|
package/dist/Skeleton.js
CHANGED
|
@@ -1,7 +1,94 @@
|
|
|
1
1
|
import { Bone } from "./Bone.js";
|
|
2
|
-
|
|
2
|
+
function composeMat4Into(translation, rotation, scale, out, offset) {
|
|
3
|
+
let rx = rotation[0];
|
|
4
|
+
let ry = rotation[1];
|
|
5
|
+
let rz = rotation[2];
|
|
6
|
+
let rw = rotation[3];
|
|
7
|
+
const length = Math.hypot(rx, ry, rz, rw);
|
|
8
|
+
if (length <= 1e-9) {
|
|
9
|
+
rx = 0;
|
|
10
|
+
ry = 0;
|
|
11
|
+
rz = 0;
|
|
12
|
+
rw = 1;
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
const inv = 1 / length;
|
|
16
|
+
rx *= inv;
|
|
17
|
+
ry *= inv;
|
|
18
|
+
rz *= inv;
|
|
19
|
+
rw *= inv;
|
|
20
|
+
}
|
|
21
|
+
const x2 = rx + rx;
|
|
22
|
+
const y2 = ry + ry;
|
|
23
|
+
const z2 = rz + rz;
|
|
24
|
+
const xx = rx * x2;
|
|
25
|
+
const xy = rx * y2;
|
|
26
|
+
const xz = rx * z2;
|
|
27
|
+
const yy = ry * y2;
|
|
28
|
+
const yz = ry * z2;
|
|
29
|
+
const zz = rz * z2;
|
|
30
|
+
const wx = rw * x2;
|
|
31
|
+
const wy = rw * y2;
|
|
32
|
+
const wz = rw * z2;
|
|
33
|
+
const sx = scale[0];
|
|
34
|
+
const sy = scale[1];
|
|
35
|
+
const sz = scale[2];
|
|
36
|
+
out[offset] = (1 - (yy + zz)) * sx;
|
|
37
|
+
out[offset + 1] = (xy + wz) * sx;
|
|
38
|
+
out[offset + 2] = (xz - wy) * sx;
|
|
39
|
+
out[offset + 3] = 0;
|
|
40
|
+
out[offset + 4] = (xy - wz) * sy;
|
|
41
|
+
out[offset + 5] = (1 - (xx + zz)) * sy;
|
|
42
|
+
out[offset + 6] = (yz + wx) * sy;
|
|
43
|
+
out[offset + 7] = 0;
|
|
44
|
+
out[offset + 8] = (xz + wy) * sz;
|
|
45
|
+
out[offset + 9] = (yz - wx) * sz;
|
|
46
|
+
out[offset + 10] = (1 - (xx + yy)) * sz;
|
|
47
|
+
out[offset + 11] = 0;
|
|
48
|
+
out[offset + 12] = translation[0];
|
|
49
|
+
out[offset + 13] = translation[1];
|
|
50
|
+
out[offset + 14] = translation[2];
|
|
51
|
+
out[offset + 15] = 1;
|
|
52
|
+
}
|
|
53
|
+
function multiplyMat4Into(a, aOffset, b, bOffset, out, outOffset) {
|
|
54
|
+
const a0 = a[aOffset];
|
|
55
|
+
const a1 = a[aOffset + 1];
|
|
56
|
+
const a2 = a[aOffset + 2];
|
|
57
|
+
const a3 = a[aOffset + 3];
|
|
58
|
+
const a4 = a[aOffset + 4];
|
|
59
|
+
const a5 = a[aOffset + 5];
|
|
60
|
+
const a6 = a[aOffset + 6];
|
|
61
|
+
const a7 = a[aOffset + 7];
|
|
62
|
+
const a8 = a[aOffset + 8];
|
|
63
|
+
const a9 = a[aOffset + 9];
|
|
64
|
+
const a10 = a[aOffset + 10];
|
|
65
|
+
const a11 = a[aOffset + 11];
|
|
66
|
+
const a12 = a[aOffset + 12];
|
|
67
|
+
const a13 = a[aOffset + 13];
|
|
68
|
+
const a14 = a[aOffset + 14];
|
|
69
|
+
const a15 = a[aOffset + 15];
|
|
70
|
+
for (let col = 0; col < 4; col += 1) {
|
|
71
|
+
const bc = bOffset + col * 4;
|
|
72
|
+
const b0 = b[bc];
|
|
73
|
+
const b1 = b[bc + 1];
|
|
74
|
+
const b2 = b[bc + 2];
|
|
75
|
+
const b3 = b[bc + 3];
|
|
76
|
+
const oc = outOffset + col * 4;
|
|
77
|
+
out[oc] = a0 * b0 + a4 * b1 + a8 * b2 + a12 * b3;
|
|
78
|
+
out[oc + 1] = a1 * b0 + a5 * b1 + a9 * b2 + a13 * b3;
|
|
79
|
+
out[oc + 2] = a2 * b0 + a6 * b1 + a10 * b2 + a14 * b3;
|
|
80
|
+
out[oc + 3] = a3 * b0 + a7 * b1 + a11 * b2 + a15 * b3;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
3
83
|
export class Skeleton {
|
|
4
84
|
bones;
|
|
85
|
+
localScratch = new Float32Array(16);
|
|
86
|
+
worldBuffer;
|
|
87
|
+
worldViews;
|
|
88
|
+
paletteBuffer;
|
|
89
|
+
paletteViews;
|
|
90
|
+
positionBuffer;
|
|
91
|
+
positionViews;
|
|
5
92
|
constructor(bones) {
|
|
6
93
|
if (bones.length === 0) {
|
|
7
94
|
throw new Error("Skeleton requires at least one bone.");
|
|
@@ -13,23 +100,73 @@ export class Skeleton {
|
|
|
13
100
|
throw new Error(`Bone ${this.bones[index].name} has invalid parent index ${parent}.`);
|
|
14
101
|
}
|
|
15
102
|
}
|
|
103
|
+
const count = this.bones.length;
|
|
104
|
+
this.worldBuffer = new Float32Array(count * 16);
|
|
105
|
+
this.paletteBuffer = new Float32Array(count * 16);
|
|
106
|
+
this.positionBuffer = new Float32Array(count * 3);
|
|
107
|
+
const wViews = new Array(count);
|
|
108
|
+
const pViews = new Array(count);
|
|
109
|
+
const posViews = new Array(count);
|
|
110
|
+
for (let index = 0; index < count; index += 1) {
|
|
111
|
+
wViews[index] = this.worldBuffer.subarray(index * 16, (index + 1) * 16);
|
|
112
|
+
pViews[index] = this.paletteBuffer.subarray(index * 16, (index + 1) * 16);
|
|
113
|
+
posViews[index] = this.positionBuffer.subarray(index * 3, (index + 1) * 3);
|
|
114
|
+
}
|
|
115
|
+
this.worldViews = wViews;
|
|
116
|
+
this.paletteViews = pViews;
|
|
117
|
+
this.positionViews = posViews;
|
|
118
|
+
}
|
|
119
|
+
computeWorldBuffer() {
|
|
120
|
+
const out = this.worldBuffer;
|
|
121
|
+
const local = this.localScratch;
|
|
122
|
+
for (let index = 0; index < this.bones.length; index += 1) {
|
|
123
|
+
const bone = this.bones[index];
|
|
124
|
+
const dstOffset = index * 16;
|
|
125
|
+
if (bone.parentIndex >= 0) {
|
|
126
|
+
composeMat4Into(bone.translation, bone.rotation, bone.scale, local, 0);
|
|
127
|
+
multiplyMat4Into(out, bone.parentIndex * 16, local, 0, out, dstOffset);
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
composeMat4Into(bone.translation, bone.rotation, bone.scale, out, dstOffset);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return out;
|
|
134
|
+
}
|
|
135
|
+
/** Contiguous `boneCount * 16` column-major world matrices reused across frames. */
|
|
136
|
+
worldMatricesBuffer() {
|
|
137
|
+
return this.computeWorldBuffer();
|
|
16
138
|
}
|
|
17
139
|
worldMatrices() {
|
|
18
|
-
|
|
140
|
+
this.computeWorldBuffer();
|
|
141
|
+
return this.worldViews;
|
|
142
|
+
}
|
|
143
|
+
/** Contiguous `boneCount * 16` column-major skinning palette reused across frames. */
|
|
144
|
+
matrixPaletteBuffer() {
|
|
145
|
+
const worlds = this.computeWorldBuffer();
|
|
146
|
+
const out = this.paletteBuffer;
|
|
19
147
|
for (let index = 0; index < this.bones.length; index += 1) {
|
|
20
148
|
const bone = this.bones[index];
|
|
21
|
-
const
|
|
22
|
-
|
|
149
|
+
const offset = index * 16;
|
|
150
|
+
multiplyMat4Into(worlds, offset, bone.inverseBindMatrix, 0, out, offset);
|
|
23
151
|
}
|
|
24
|
-
return
|
|
152
|
+
return out;
|
|
25
153
|
}
|
|
26
154
|
matrixPalette() {
|
|
27
|
-
|
|
28
|
-
return this.
|
|
155
|
+
this.matrixPaletteBuffer();
|
|
156
|
+
return this.paletteViews;
|
|
29
157
|
}
|
|
30
158
|
/** World-space positions (translation component of each bone's world matrix). */
|
|
31
159
|
boneWorldPositions() {
|
|
32
|
-
|
|
160
|
+
const worlds = this.computeWorldBuffer();
|
|
161
|
+
const pos = this.positionBuffer;
|
|
162
|
+
for (let index = 0; index < this.bones.length; index += 1) {
|
|
163
|
+
const wOff = index * 16;
|
|
164
|
+
const pOff = index * 3;
|
|
165
|
+
pos[pOff] = worlds[wOff + 12];
|
|
166
|
+
pos[pOff + 1] = worlds[wOff + 13];
|
|
167
|
+
pos[pOff + 2] = worlds[wOff + 14];
|
|
168
|
+
}
|
|
169
|
+
return this.positionViews;
|
|
33
170
|
}
|
|
34
171
|
/**
|
|
35
172
|
* Ordered descendant chain from a bone (by name or index), following the first child at each
|
package/dist/Skeleton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../src/Skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAuB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../src/Skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAuB,MAAM,WAAW,CAAC;AAGtD,SAAS,eAAe,CACtB,WAAiB,EACjB,QAAc,EACd,KAAW,EACX,GAAiB,EACjB,MAAc;IAEd,IAAI,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACrB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1C,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;QACnB,EAAE,GAAG,CAAC,CAAC;QACP,EAAE,GAAG,CAAC,CAAC;QACP,EAAE,GAAG,CAAC,CAAC;QACP,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;SAAM,CAAC;QACN,MAAM,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC;QACvB,EAAE,IAAI,GAAG,CAAC;QACV,EAAE,IAAI,GAAG,CAAC;QACV,EAAE,IAAI,GAAG,CAAC;QACV,EAAE,IAAI,GAAG,CAAC;IACZ,CAAC;IACD,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACnB,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACnB,MAAM,EAAE,GAAG,EAAE,G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,IAAI,CAAC,EAAE,CAAC;YAChD,MAAM,SAAS,GAAG,YAAY,CAAC,CAAC,CAAE,CAAC;YACnC,MAAM,SAAS,GAAG,SAAS,CAAC,CAAC,GAAG,CAAC,CAAE,CAAC;YACpC,MAAM,GAAG,GAAG,SAAS,CAAC,CAAC,CAAE,CAAC;YAC1B,IAAI,CAAC,KAAK,CAAC,SAAS,CAAE,CAAC,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7G,CAAC;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aura3d/animation",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aura3d/math": "5.5.
|
|
27
|
+
"@aura3d/math": "5.5.4"
|
|
28
28
|
},
|
|
29
29
|
"description": "Deterministic animation clips, mixers, root motion, skeleton palettes, blend trees, state machines, and scene/ECS animation bridges for Aura3D.",
|
|
30
30
|
"keywords": [
|