@nodetool-ai/timeline 0.8.17 → 0.8.19
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/.nodetool-build-stamp +1 -1
- package/dist/animation/custom.d.ts.map +1 -1
- package/dist/animation/custom.js +35 -0
- package/dist/animation/custom.js.map +1 -1
- package/dist/animation/sample.d.ts +14 -0
- package/dist/animation/sample.d.ts.map +1 -1
- package/dist/animation/sample.js +22 -1
- package/dist/animation/sample.js.map +1 -1
- package/dist/animation/types.d.ts +8 -1
- package/dist/animation/types.d.ts.map +1 -1
- package/dist/animation/types.js +31 -3
- package/dist/animation/types.js.map +1 -1
- package/dist/authoredStyles.d.ts +7 -1
- package/dist/authoredStyles.d.ts.map +1 -1
- package/dist/authoredStyles.js +6 -1
- package/dist/authoredStyles.js.map +1 -1
- package/dist/finish-storyboard.d.ts.map +1 -1
- package/dist/finish-storyboard.js +6 -1
- package/dist/finish-storyboard.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/keyframes.d.ts +12 -2
- package/dist/keyframes.d.ts.map +1 -1
- package/dist/keyframes.js +24 -1
- package/dist/keyframes.js.map +1 -1
- package/dist/model3d.d.ts +132 -8
- package/dist/model3d.d.ts.map +1 -1
- package/dist/model3d.js +230 -7
- package/dist/model3d.js.map +1 -1
- package/dist/model3dBake.d.ts +41 -11
- package/dist/model3dBake.d.ts.map +1 -1
- package/dist/model3dBake.js +58 -21
- package/dist/model3dBake.js.map +1 -1
- package/dist/model3dBlockout.d.ts +62 -0
- package/dist/model3dBlockout.d.ts.map +1 -0
- package/dist/model3dBlockout.js +59 -0
- package/dist/model3dBlockout.js.map +1 -0
- package/dist/model3dCameraDescription.d.ts +27 -0
- package/dist/model3dCameraDescription.d.ts.map +1 -0
- package/dist/model3dCameraDescription.js +171 -0
- package/dist/model3dCameraDescription.js.map +1 -0
- package/dist/model3dCameraKeys.d.ts +47 -0
- package/dist/model3dCameraKeys.d.ts.map +1 -0
- package/dist/model3dCameraKeys.js +156 -0
- package/dist/model3dCameraKeys.js.map +1 -0
- package/dist/model3dCameraMoves.d.ts +97 -0
- package/dist/model3dCameraMoves.d.ts.map +1 -0
- package/dist/model3dCameraMoves.js +329 -0
- package/dist/model3dCameraMoves.js.map +1 -0
- package/dist/model3dReference.d.ts +75 -0
- package/dist/model3dReference.d.ts.map +1 -0
- package/dist/model3dReference.js +100 -0
- package/dist/model3dReference.js.map +1 -0
- package/dist/ops/apply.d.ts.map +1 -1
- package/dist/ops/apply.js +168 -2
- package/dist/ops/apply.js.map +1 -1
- package/dist/ops/op.d.ts +35 -2
- package/dist/ops/op.d.ts.map +1 -1
- package/dist/ops/op.js +2 -0
- package/dist/ops/op.js.map +1 -1
- package/dist/ops/parse.d.ts.map +1 -1
- package/dist/ops/parse.js +8 -0
- package/dist/ops/parse.js.map +1 -1
- package/dist/ops/types.d.ts +22 -0
- package/dist/ops/types.d.ts.map +1 -1
- package/dist/render/index.d.ts +1 -0
- package/dist/render/index.d.ts.map +1 -1
- package/dist/render/index.js +1 -0
- package/dist/render/index.js.map +1 -1
- package/dist/render/model3dReferenceSamples.d.ts +25 -0
- package/dist/render/model3dReferenceSamples.d.ts.map +1 -0
- package/dist/render/model3dReferenceSamples.js +25 -0
- package/dist/render/model3dReferenceSamples.js.map +1 -0
- package/dist/render/sceneModel.d.ts +1 -1
- package/dist/render/sceneModel.d.ts.map +1 -1
- package/dist/render/sceneModel.js +10 -5
- package/dist/render/sceneModel.js.map +1 -1
- package/dist/scene.d.ts +1 -0
- package/dist/scene.d.ts.map +1 -1
- package/dist/scene.js +1 -0
- package/dist/scene.js.map +1 -1
- package/dist/shotLink.d.ts +35 -0
- package/dist/shotLink.d.ts.map +1 -1
- package/dist/shotLink.js +100 -0
- package/dist/shotLink.js.map +1 -1
- package/dist/testing/ops.d.ts.map +1 -1
- package/dist/testing/ops.js +49 -2
- package/dist/testing/ops.js.map +1 -1
- package/dist/types.d.ts +30 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +5 -5
package/dist/model3d.js
CHANGED
|
@@ -1,39 +1,262 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The camera a `model3d` clip is drawn with: its authored pose folded with the
|
|
3
|
-
*
|
|
3
|
+
* animated camera channels (D4), plus the pure camera math every host shares.
|
|
4
4
|
*
|
|
5
5
|
* Every host that renders a 3D layer — the browser session pool, the headless
|
|
6
6
|
* Chromium one the agent frame preview drives, and the Blender bake — needs the
|
|
7
7
|
* same number, so the fold lives here and not in any of them. Pure, and out of
|
|
8
8
|
* `render/` so both the root export and the render surface can reach it.
|
|
9
9
|
*/
|
|
10
|
+
/** The channels at identity: a camera that no animation moves. */
|
|
11
|
+
export const IDENTITY_MODEL3D_CAMERA_CHANNELS = Object.freeze({
|
|
12
|
+
cameraAzimuth: 0,
|
|
13
|
+
cameraElevation: 0,
|
|
14
|
+
cameraZoom: 1,
|
|
15
|
+
cameraFov: 0,
|
|
16
|
+
cameraPosX: 0,
|
|
17
|
+
cameraPosY: 0,
|
|
18
|
+
cameraPosZ: 0,
|
|
19
|
+
cameraTargetX: 0,
|
|
20
|
+
cameraTargetY: 0,
|
|
21
|
+
cameraTargetZ: 0,
|
|
22
|
+
cameraRoll: 0
|
|
23
|
+
});
|
|
24
|
+
/** The channels an `orbit` camera reads. */
|
|
25
|
+
export const MODEL3D_ORBIT_CAMERA_PROPERTIES = [
|
|
26
|
+
"cameraAzimuth",
|
|
27
|
+
"cameraElevation",
|
|
28
|
+
"cameraZoom",
|
|
29
|
+
"cameraFov"
|
|
30
|
+
];
|
|
31
|
+
/** The channels a `free` camera reads. `cameraFov` is its lens. */
|
|
32
|
+
export const MODEL3D_FREE_CAMERA_PROPERTIES = [
|
|
33
|
+
"cameraPosX",
|
|
34
|
+
"cameraPosY",
|
|
35
|
+
"cameraPosZ",
|
|
36
|
+
"cameraTargetX",
|
|
37
|
+
"cameraTargetY",
|
|
38
|
+
"cameraTargetZ",
|
|
39
|
+
"cameraRoll",
|
|
40
|
+
"cameraFov"
|
|
41
|
+
];
|
|
10
42
|
/**
|
|
11
|
-
*
|
|
12
|
-
* user: the keyframe inspector and the animatable-property docs.
|
|
43
|
+
* Every camera channel as a runtime list, for the surfaces that offer them to
|
|
44
|
+
* a user: the keyframe inspector and the animatable-property docs.
|
|
13
45
|
*/
|
|
14
46
|
export const MODEL3D_CAMERA_PROPERTIES = [
|
|
15
47
|
"cameraAzimuth",
|
|
16
48
|
"cameraElevation",
|
|
17
49
|
"cameraZoom",
|
|
18
|
-
"cameraFov"
|
|
50
|
+
"cameraFov",
|
|
51
|
+
"cameraPosX",
|
|
52
|
+
"cameraPosY",
|
|
53
|
+
"cameraPosZ",
|
|
54
|
+
"cameraTargetX",
|
|
55
|
+
"cameraTargetY",
|
|
56
|
+
"cameraTargetZ",
|
|
57
|
+
"cameraRoll"
|
|
19
58
|
];
|
|
59
|
+
/** The channels a camera in `mode` reads. `scene` reads none. */
|
|
60
|
+
export function model3dCameraPropertiesFor(mode) {
|
|
61
|
+
if (mode === "free")
|
|
62
|
+
return MODEL3D_FREE_CAMERA_PROPERTIES;
|
|
63
|
+
if (mode === "orbit")
|
|
64
|
+
return MODEL3D_ORBIT_CAMERA_PROPERTIES;
|
|
65
|
+
return [];
|
|
66
|
+
}
|
|
67
|
+
/** Where a free camera sits when the clip stores no `position`. */
|
|
68
|
+
export const DEFAULT_FREE_CAMERA_POSITION = Object.freeze([0, 1.6, 5]);
|
|
69
|
+
/** Where a free camera looks when the clip stores no `target`. */
|
|
70
|
+
export const DEFAULT_FREE_CAMERA_TARGET = Object.freeze([
|
|
71
|
+
0, 1, 0
|
|
72
|
+
]);
|
|
73
|
+
/**
|
|
74
|
+
* The free pose a camera describes, with the defaults filled in: `position`
|
|
75
|
+
* `[0, 1.6, 5]`, `target` `[0, 1, 0]`, `rollDeg` 0. It reads the same fields in
|
|
76
|
+
* every mode, so call it on a camera that is in `free` mode.
|
|
77
|
+
*/
|
|
78
|
+
export function model3dFreeCameraPose(camera) {
|
|
79
|
+
return {
|
|
80
|
+
position: [...(camera.position ?? DEFAULT_FREE_CAMERA_POSITION)],
|
|
81
|
+
target: [...(camera.target ?? DEFAULT_FREE_CAMERA_TARGET)],
|
|
82
|
+
rollDeg: camera.rollDeg ?? 0,
|
|
83
|
+
fovDeg: camera.fovDeg
|
|
84
|
+
};
|
|
85
|
+
}
|
|
20
86
|
/**
|
|
21
87
|
* Fold the sampled camera channels onto the clip's authored camera. Additive
|
|
22
88
|
* channels add and `cameraZoom` multiplies, exactly as `ANIMATED_PROPERTY_FOLD`
|
|
23
89
|
* declares — an animation moves the camera from wherever the clip parks it,
|
|
24
90
|
* so re-posing the clip keeps the move.
|
|
25
91
|
*
|
|
26
|
-
* `
|
|
27
|
-
*
|
|
92
|
+
* `free` mode adds the position, target and roll channels onto the authored
|
|
93
|
+
* `position`, `target` and `rollDeg`, and returns all three filled in. The
|
|
94
|
+
* other modes leave those three fields as stored. Every mode keeps the terms it
|
|
95
|
+
* does not use, because a mode switch must not lose the pose.
|
|
28
96
|
*/
|
|
29
97
|
export function resolveModel3DCamera(style, anim) {
|
|
30
98
|
const camera = style.camera;
|
|
31
|
-
|
|
99
|
+
const resolved = {
|
|
32
100
|
...camera,
|
|
33
101
|
azimuthDeg: camera.azimuthDeg + anim.cameraAzimuth,
|
|
34
102
|
elevationDeg: camera.elevationDeg + anim.cameraElevation,
|
|
35
103
|
fovDeg: camera.fovDeg + anim.cameraFov,
|
|
36
104
|
zoom: camera.zoom * anim.cameraZoom
|
|
37
105
|
};
|
|
106
|
+
if (camera.mode !== "free")
|
|
107
|
+
return resolved;
|
|
108
|
+
const pose = model3dFreeCameraPose(camera);
|
|
109
|
+
resolved.position = [
|
|
110
|
+
pose.position[0] + anim.cameraPosX,
|
|
111
|
+
pose.position[1] + anim.cameraPosY,
|
|
112
|
+
pose.position[2] + anim.cameraPosZ
|
|
113
|
+
];
|
|
114
|
+
resolved.target = [
|
|
115
|
+
pose.target[0] + anim.cameraTargetX,
|
|
116
|
+
pose.target[1] + anim.cameraTargetY,
|
|
117
|
+
pose.target[2] + anim.cameraTargetZ
|
|
118
|
+
];
|
|
119
|
+
resolved.rollDeg = pose.rollDeg + anim.cameraRoll;
|
|
120
|
+
return resolved;
|
|
121
|
+
}
|
|
122
|
+
const DEG = Math.PI / 180;
|
|
123
|
+
function sub(a, b) {
|
|
124
|
+
return [a[0] - b[0], a[1] - b[1], a[2] - b[2]];
|
|
125
|
+
}
|
|
126
|
+
function cross(a, b) {
|
|
127
|
+
return [
|
|
128
|
+
a[1] * b[2] - a[2] * b[1],
|
|
129
|
+
a[2] * b[0] - a[0] * b[2],
|
|
130
|
+
a[0] * b[1] - a[1] * b[0]
|
|
131
|
+
];
|
|
132
|
+
}
|
|
133
|
+
function length(v) {
|
|
134
|
+
return Math.hypot(v[0], v[1], v[2]);
|
|
135
|
+
}
|
|
136
|
+
function scaled(v, s) {
|
|
137
|
+
return [v[0] * s, v[1] * s, v[2] * s];
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* The axes of a free camera at `position` looking at `target`, rolled by
|
|
141
|
+
* `rollDeg`.
|
|
142
|
+
*
|
|
143
|
+
* With no roll, `right` is horizontal and `up` leans toward world +Y. A
|
|
144
|
+
* positive roll turns the camera counter-clockwise around its view axis as
|
|
145
|
+
* seen from behind it, so the horizon turns clockwise in the picture:
|
|
146
|
+
* `up = cos(roll) * up0 - sin(roll) * right0`. This is `lookAt` followed by
|
|
147
|
+
* `rotateZ(roll)` in three.js.
|
|
148
|
+
*
|
|
149
|
+
* A camera with `position` equal to `target` looks down -Z. A camera looking
|
|
150
|
+
* straight up or down has no horizontal right, so it takes world +X.
|
|
151
|
+
*/
|
|
152
|
+
export function model3dFreeCameraBasis(position, target, rollDeg = 0) {
|
|
153
|
+
const toTarget = sub(target, position);
|
|
154
|
+
const distance = length(toTarget);
|
|
155
|
+
const forward = distance > 1e-9 ? scaled(toTarget, 1 / distance) : [0, 0, -1];
|
|
156
|
+
const flat = cross(forward, [0, 1, 0]);
|
|
157
|
+
const flatLength = length(flat);
|
|
158
|
+
const right0 = flatLength > 1e-6 ? scaled(flat, 1 / flatLength) : [1, 0, 0];
|
|
159
|
+
const up0 = cross(right0, forward);
|
|
160
|
+
const cos = Math.cos(rollDeg * DEG);
|
|
161
|
+
const sin = Math.sin(rollDeg * DEG);
|
|
162
|
+
return {
|
|
163
|
+
forward,
|
|
164
|
+
right: [
|
|
165
|
+
cos * right0[0] + sin * up0[0],
|
|
166
|
+
cos * right0[1] + sin * up0[1],
|
|
167
|
+
cos * right0[2] + sin * up0[2]
|
|
168
|
+
],
|
|
169
|
+
up: [
|
|
170
|
+
cos * up0[0] - sin * right0[0],
|
|
171
|
+
cos * up0[1] - sin * right0[1],
|
|
172
|
+
cos * up0[2] - sin * right0[2]
|
|
173
|
+
]
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
/** The sensor height the lens conversions assume: a full-frame 36 x 24 mm. */
|
|
177
|
+
export const MODEL3D_SENSOR_HEIGHT_MM = 24;
|
|
178
|
+
/**
|
|
179
|
+
* The vertical field of view, in degrees, of a lens `focalLengthMm` long on a
|
|
180
|
+
* 24 mm tall sensor: `2 * atan(12 / f)`. A 50 mm lens is about 27 degrees.
|
|
181
|
+
*/
|
|
182
|
+
export function focalLengthMmToFovDeg(focalLengthMm) {
|
|
183
|
+
const half = MODEL3D_SENSOR_HEIGHT_MM / 2;
|
|
184
|
+
return (2 * Math.atan(half / Math.max(focalLengthMm, 1e-6))) / DEG;
|
|
185
|
+
}
|
|
186
|
+
/** The inverse of {@link focalLengthMmToFovDeg}: `12 / tan(fov / 2)`. */
|
|
187
|
+
export function fovDegToFocalLengthMm(fovDeg) {
|
|
188
|
+
const half = MODEL3D_SENSOR_HEIGHT_MM / 2;
|
|
189
|
+
const clamped = Math.min(Math.max(fovDeg, 1e-6), 179.999);
|
|
190
|
+
return half / Math.tan((clamped * DEG) / 2);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* The distance that fits a bounding sphere of `radius` into a camera with the
|
|
194
|
+
* given vertical fov and aspect, with `zoom` applied (above 1 moves closer).
|
|
195
|
+
*
|
|
196
|
+
* The same math as `computeFraming` in
|
|
197
|
+
* `packages/video-nodes/src/nodes/model3d/render3d-core.ts` and
|
|
198
|
+
* `compute_framing` in `packages/blender-nodes/blender_ops/framing.py`. The
|
|
199
|
+
* render core keeps its own copy because its headless page bundle must not
|
|
200
|
+
* pull this package in, and `packages/video-nodes/tests/model3d-render.test.ts`
|
|
201
|
+
* pins the two to each other.
|
|
202
|
+
*/
|
|
203
|
+
export function computeModel3DOrbitFraming(radius, fovDeg, aspect, zoom) {
|
|
204
|
+
const safeRadius = Math.max(radius, 1e-6);
|
|
205
|
+
const vFov = Math.max(fovDeg, 1) * DEG;
|
|
206
|
+
const hFov = 2 * Math.atan(Math.tan(vFov / 2) * Math.max(aspect, 1e-6));
|
|
207
|
+
const fitV = safeRadius / Math.sin(vFov / 2);
|
|
208
|
+
const fitH = safeRadius / Math.sin(hFov / 2);
|
|
209
|
+
const distance = Math.max(fitV, fitH) / Math.max(zoom, 1e-3);
|
|
210
|
+
return {
|
|
211
|
+
distance,
|
|
212
|
+
near: Math.max(distance - safeRadius * 4, distance / 100, 1e-4),
|
|
213
|
+
far: distance + safeRadius * 10
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* The offset from the look-at point to an orbit camera `distance` away.
|
|
218
|
+
* Azimuth 0 sits on +Z and looks down -Z, and a growing azimuth moves the
|
|
219
|
+
* camera toward +X. The same math as `orbitOffset` in the render core.
|
|
220
|
+
*/
|
|
221
|
+
export function model3dOrbitOffset(azimuthDeg, elevationDeg, distance) {
|
|
222
|
+
const az = azimuthDeg * DEG;
|
|
223
|
+
const el = Math.min(Math.max(elevationDeg, -89.9), 89.9) * DEG;
|
|
224
|
+
return [
|
|
225
|
+
distance * Math.cos(el) * Math.sin(az),
|
|
226
|
+
distance * Math.sin(el),
|
|
227
|
+
distance * Math.cos(el) * Math.cos(az)
|
|
228
|
+
];
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* The `free` camera that draws the picture an `orbit` camera draws.
|
|
232
|
+
*
|
|
233
|
+
* The orbit terms stay on the result, so switching back to `orbit` restores
|
|
234
|
+
* the old pose. `fit` has to describe the model the clip renders: the bounding
|
|
235
|
+
* sphere of its rest pose and the aspect of the picture. Pass a camera already
|
|
236
|
+
* folded by {@link resolveModel3DCamera} to convert the animated pose at one
|
|
237
|
+
* instant. A camera that is not in `orbit` mode is returned as a copy.
|
|
238
|
+
*/
|
|
239
|
+
export function orbitCameraToFree(camera, fit) {
|
|
240
|
+
if (camera.mode !== "orbit")
|
|
241
|
+
return { ...camera };
|
|
242
|
+
const offsetToTarget = camera.targetOffset ?? [0, 0, 0];
|
|
243
|
+
const target = [
|
|
244
|
+
fit.center[0] + offsetToTarget[0],
|
|
245
|
+
fit.center[1] + offsetToTarget[1],
|
|
246
|
+
fit.center[2] + offsetToTarget[2]
|
|
247
|
+
];
|
|
248
|
+
const framing = computeModel3DOrbitFraming(fit.radius, camera.fovDeg, fit.aspect, camera.zoom);
|
|
249
|
+
const offset = model3dOrbitOffset(camera.azimuthDeg, camera.elevationDeg, framing.distance);
|
|
250
|
+
return {
|
|
251
|
+
...camera,
|
|
252
|
+
mode: "free",
|
|
253
|
+
position: [
|
|
254
|
+
target[0] + offset[0],
|
|
255
|
+
target[1] + offset[1],
|
|
256
|
+
target[2] + offset[2]
|
|
257
|
+
],
|
|
258
|
+
target,
|
|
259
|
+
rollDeg: 0
|
|
260
|
+
};
|
|
38
261
|
}
|
|
39
262
|
//# sourceMappingURL=model3d.js.map
|
package/dist/model3d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model3d.js","sourceRoot":"","sources":["../src/model3d.ts"],"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E,MAAM;QACZ,QAAQ,EAAE;YACR,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;YACrB,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;YACrB,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;SACtB;QACD,MAAM;QACN,OAAO,EAAE,CAAC;KACX,CAAC;AACJ,CAAC"}
|
package/dist/model3dBake.d.ts
CHANGED
|
@@ -25,13 +25,13 @@ export interface Model3DBakeRenderSettings {
|
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* One frame's camera as the Blender job takes it: `CameraParams` from
|
|
28
|
-
* `@nodetool-ai/blender-nodes`, plus the
|
|
29
|
-
*
|
|
30
|
-
* because this package is pure TypeScript and knows nothing about a runner;
|
|
28
|
+
* `@nodetool-ai/blender-nodes`, plus the fields `ClipModel3DCamera` carries
|
|
29
|
+
* that the DTO did not have, the free camera's pose among them. Declared here
|
|
30
|
+
* rather than imported because this package is pure TypeScript and knows nothing about a runner;
|
|
31
31
|
* the two shapes are checked against each other where they meet.
|
|
32
32
|
*/
|
|
33
33
|
export interface Model3DBakeCameraParams {
|
|
34
|
-
camera_mode: "auto" | "scene" | "orbit";
|
|
34
|
+
camera_mode: "auto" | "scene" | "orbit" | "free";
|
|
35
35
|
azimuth: number;
|
|
36
36
|
elevation: number;
|
|
37
37
|
fov: number;
|
|
@@ -48,11 +48,22 @@ export interface Model3DBakeCameraParams {
|
|
|
48
48
|
scene_camera_name?: string;
|
|
49
49
|
/** Look-at offset from the bounding-sphere center, world units. */
|
|
50
50
|
target_offset?: [number, number, number];
|
|
51
|
+
/** `free` mode: the camera eye, glTF world units (Y up). */
|
|
52
|
+
position?: [number, number, number];
|
|
53
|
+
/** `free` mode: the look-at point, glTF world units (Y up). */
|
|
54
|
+
target?: [number, number, number];
|
|
55
|
+
/** `free` mode: roll in degrees. Positive turns the horizon clockwise. */
|
|
56
|
+
roll?: number;
|
|
51
57
|
}
|
|
52
58
|
/**
|
|
53
|
-
* The clip's camera as one frame of the bake job. `orbit` and `
|
|
54
|
-
*
|
|
59
|
+
* The clip's camera as one frame of the bake job. `orbit`, `scene` and `free`
|
|
60
|
+
* are the modes a clip has; the job's `auto` is not reachable from a clip,
|
|
55
61
|
* which is what makes the reverse mapping total.
|
|
62
|
+
*
|
|
63
|
+
* A `free` camera always sends `position`, `target` and `roll`, with the
|
|
64
|
+
* defaults of {@link model3dFreeCameraPose} filled in, so the Blender op never
|
|
65
|
+
* has to know them. The other modes send those fields only when the clip
|
|
66
|
+
* stores them.
|
|
56
67
|
*/
|
|
57
68
|
export declare function model3dBakeCameraParams(camera: ClipModel3DCamera, style: ClipModel3DStyle, render: Model3DBakeRenderSettings): Model3DBakeCameraParams;
|
|
58
69
|
/**
|
|
@@ -62,19 +73,38 @@ export declare function model3dBakeCameraParams(camera: ClipModel3DCamera, style
|
|
|
62
73
|
* request, not to the camera, so they are not read back.
|
|
63
74
|
*/
|
|
64
75
|
export declare function clipModel3DCameraFromBakeParams(params: Model3DBakeCameraParams): ClipModel3DCamera;
|
|
76
|
+
/**
|
|
77
|
+
* FNV-1a over the payload, twice with different offsets, as 16 hex digits.
|
|
78
|
+
*
|
|
79
|
+
* Not a cryptographic digest, and deliberately not one: the browser preview,
|
|
80
|
+
* the browser export and the server validator all compare this value, they
|
|
81
|
+
* compare it synchronously once per layer per frame, and `node:crypto` does
|
|
82
|
+
* not exist in a bundle while Web Crypto only digests asynchronously. What
|
|
83
|
+
* the value has to be is identical on every host for the same input, which a
|
|
84
|
+
* pure-arithmetic hash over a canonically ordered payload is.
|
|
85
|
+
*/
|
|
86
|
+
export declare function model3dPictureDigest(payload: string): string;
|
|
87
|
+
/**
|
|
88
|
+
* Everything about a clip and its sequence that a render of the clip's span
|
|
89
|
+
* depends on, apart from the style, which each caller narrows first. The
|
|
90
|
+
* Blender bake and the Blockout reference both hash this record, so a field
|
|
91
|
+
* added here makes both stale.
|
|
92
|
+
*/
|
|
93
|
+
export declare function model3dPictureInputs(clip: TimelineClip, sequence: Model3DBakeSequence, style: Partial<ClipModel3DStyle>): Record<string, unknown>;
|
|
65
94
|
/**
|
|
66
95
|
* The hash a `model3d` clip's bake is stored under, and checked against.
|
|
67
96
|
*
|
|
68
97
|
* It names every input the baked picture depends on (§D6): the style without
|
|
69
|
-
* `bake`
|
|
70
|
-
* the `orbit` preset among them), the trim window, the duration,
|
|
71
|
-
* the time remap, and the sequence's fps and size. A change to any
|
|
72
|
-
* makes the bake stale and the live 3D layer draws again.
|
|
98
|
+
* `bake` and `reference`, the glTF asset, the clip's animations (the camera
|
|
99
|
+
* curves and the `orbit` preset among them), the trim window, the duration,
|
|
100
|
+
* the speed, the time remap, and the sequence's fps and size. A change to any
|
|
101
|
+
* of them makes the bake stale and the live 3D layer draws again.
|
|
73
102
|
*
|
|
74
103
|
* Everything else about the clip is deliberately absent: start, track,
|
|
75
104
|
* transform, opacity, effects, mask and matte apply to the baked layer the
|
|
76
105
|
* way they apply to any video clip, so a change to one of them does not need
|
|
77
|
-
* a re-render.
|
|
106
|
+
* a re-render. `reference` is a render of the clip, not an input to one, so
|
|
107
|
+
* storing a Blockout reference leaves a bake current.
|
|
78
108
|
*/
|
|
79
109
|
export declare function computeModel3DBakeHash(clip: TimelineClip, sequence: Model3DBakeSequence): string;
|
|
80
110
|
//# sourceMappingURL=model3dBake.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model3dBake.d.ts","sourceRoot":"","sources":["../src/model3dBake.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"model3dBake.d.ts","sourceRoot":"","sources":["../src/model3dBake.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACb,MAAM,YAAY,CAAC;AAEpB,mDAAmD;AACnD,MAAM,WAAW,mBAAmB;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MAAM,EAAE,iBAAiB,EACzB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,yBAAyB,GAChC,uBAAuB,CAmCzB;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,uBAAuB,GAC9B,iBAAiB,CAqBnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAc5D;AAID;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,mBAAmB,EAC7B,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAC/B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAezB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,mBAAmB,GAC5B,MAAM,CAOR"}
|
package/dist/model3dBake.js
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* `computeModel3DBakeSamples` in `render/`, because it samples the clip's
|
|
9
9
|
* animation curves and those are resolved by the scene model.
|
|
10
10
|
*/
|
|
11
|
+
import { model3dFreeCameraPose } from "./model3d.js";
|
|
11
12
|
import { stableSerialize } from "./stableSerialize.js";
|
|
12
13
|
/**
|
|
13
14
|
* What Blender clears to when the style is transparent. The value is never
|
|
@@ -16,9 +17,14 @@ import { stableSerialize } from "./stableSerialize.js";
|
|
|
16
17
|
*/
|
|
17
18
|
const TRANSPARENT_BACKGROUND_COLOR = "#000000";
|
|
18
19
|
/**
|
|
19
|
-
* The clip's camera as one frame of the bake job. `orbit` and `
|
|
20
|
-
*
|
|
20
|
+
* The clip's camera as one frame of the bake job. `orbit`, `scene` and `free`
|
|
21
|
+
* are the modes a clip has; the job's `auto` is not reachable from a clip,
|
|
21
22
|
* which is what makes the reverse mapping total.
|
|
23
|
+
*
|
|
24
|
+
* A `free` camera always sends `position`, `target` and `roll`, with the
|
|
25
|
+
* defaults of {@link model3dFreeCameraPose} filled in, so the Blender op never
|
|
26
|
+
* has to know them. The other modes send those fields only when the clip
|
|
27
|
+
* stores them.
|
|
22
28
|
*/
|
|
23
29
|
export function model3dBakeCameraParams(camera, style, render) {
|
|
24
30
|
const params = {
|
|
@@ -44,6 +50,19 @@ export function model3dBakeCameraParams(camera, style, render) {
|
|
|
44
50
|
if (camera.targetOffset !== undefined) {
|
|
45
51
|
params.target_offset = [...camera.targetOffset];
|
|
46
52
|
}
|
|
53
|
+
if (camera.mode === "free") {
|
|
54
|
+
const pose = model3dFreeCameraPose(camera);
|
|
55
|
+
params.position = pose.position;
|
|
56
|
+
params.target = pose.target;
|
|
57
|
+
params.roll = pose.rollDeg;
|
|
58
|
+
return params;
|
|
59
|
+
}
|
|
60
|
+
if (camera.position !== undefined)
|
|
61
|
+
params.position = [...camera.position];
|
|
62
|
+
if (camera.target !== undefined)
|
|
63
|
+
params.target = [...camera.target];
|
|
64
|
+
if (camera.rollDeg !== undefined)
|
|
65
|
+
params.roll = camera.rollDeg;
|
|
47
66
|
return params;
|
|
48
67
|
}
|
|
49
68
|
/**
|
|
@@ -54,7 +73,9 @@ export function model3dBakeCameraParams(camera, style, render) {
|
|
|
54
73
|
*/
|
|
55
74
|
export function clipModel3DCameraFromBakeParams(params) {
|
|
56
75
|
const camera = {
|
|
57
|
-
mode: params.camera_mode === "scene"
|
|
76
|
+
mode: params.camera_mode === "scene" || params.camera_mode === "free"
|
|
77
|
+
? params.camera_mode
|
|
78
|
+
: "orbit",
|
|
58
79
|
azimuthDeg: params.azimuth,
|
|
59
80
|
elevationDeg: params.elevation,
|
|
60
81
|
fovDeg: params.fov,
|
|
@@ -66,6 +87,12 @@ export function clipModel3DCameraFromBakeParams(params) {
|
|
|
66
87
|
if (params.target_offset !== undefined) {
|
|
67
88
|
camera.targetOffset = [...params.target_offset];
|
|
68
89
|
}
|
|
90
|
+
if (params.position !== undefined)
|
|
91
|
+
camera.position = [...params.position];
|
|
92
|
+
if (params.target !== undefined)
|
|
93
|
+
camera.target = [...params.target];
|
|
94
|
+
if (params.roll !== undefined)
|
|
95
|
+
camera.rollDeg = params.roll;
|
|
69
96
|
return camera;
|
|
70
97
|
}
|
|
71
98
|
/**
|
|
@@ -78,7 +105,7 @@ export function clipModel3DCameraFromBakeParams(params) {
|
|
|
78
105
|
* the value has to be is identical on every host for the same input, which a
|
|
79
106
|
* pure-arithmetic hash over a canonically ordered payload is.
|
|
80
107
|
*/
|
|
81
|
-
function
|
|
108
|
+
export function model3dPictureDigest(payload) {
|
|
82
109
|
const hash = (seed) => {
|
|
83
110
|
let acc = seed >>> 0;
|
|
84
111
|
for (let i = 0; i < payload.length; i += 1) {
|
|
@@ -93,22 +120,13 @@ function digest(payload) {
|
|
|
93
120
|
}
|
|
94
121
|
const MODEL3D_BAKE_HASH_VERSION_PREFIX = "model3d-bake-v1:";
|
|
95
122
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* the `orbit` preset among them), the trim window, the duration, the speed,
|
|
101
|
-
* the time remap, and the sequence's fps and size. A change to any of them
|
|
102
|
-
* makes the bake stale and the live 3D layer draws again.
|
|
103
|
-
*
|
|
104
|
-
* Everything else about the clip is deliberately absent: start, track,
|
|
105
|
-
* transform, opacity, effects, mask and matte apply to the baked layer the
|
|
106
|
-
* way they apply to any video clip, so a change to one of them does not need
|
|
107
|
-
* a re-render.
|
|
123
|
+
* Everything about a clip and its sequence that a render of the clip's span
|
|
124
|
+
* depends on, apart from the style, which each caller narrows first. The
|
|
125
|
+
* Blender bake and the Blockout reference both hash this record, so a field
|
|
126
|
+
* added here makes both stale.
|
|
108
127
|
*/
|
|
109
|
-
export function
|
|
110
|
-
|
|
111
|
-
const payload = `${MODEL3D_BAKE_HASH_VERSION_PREFIX}${stableSerialize({
|
|
128
|
+
export function model3dPictureInputs(clip, sequence, style) {
|
|
129
|
+
return {
|
|
112
130
|
assetId: clip.currentAssetId,
|
|
113
131
|
style,
|
|
114
132
|
animations: clip.animations,
|
|
@@ -121,7 +139,26 @@ export function computeModel3DBakeHash(clip, sequence) {
|
|
|
121
139
|
fps: sequence.fps,
|
|
122
140
|
width: sequence.width,
|
|
123
141
|
height: sequence.height
|
|
124
|
-
}
|
|
125
|
-
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* The hash a `model3d` clip's bake is stored under, and checked against.
|
|
146
|
+
*
|
|
147
|
+
* It names every input the baked picture depends on (§D6): the style without
|
|
148
|
+
* `bake` and `reference`, the glTF asset, the clip's animations (the camera
|
|
149
|
+
* curves and the `orbit` preset among them), the trim window, the duration,
|
|
150
|
+
* the speed, the time remap, and the sequence's fps and size. A change to any
|
|
151
|
+
* of them makes the bake stale and the live 3D layer draws again.
|
|
152
|
+
*
|
|
153
|
+
* Everything else about the clip is deliberately absent: start, track,
|
|
154
|
+
* transform, opacity, effects, mask and matte apply to the baked layer the
|
|
155
|
+
* way they apply to any video clip, so a change to one of them does not need
|
|
156
|
+
* a re-render. `reference` is a render of the clip, not an input to one, so
|
|
157
|
+
* storing a Blockout reference leaves a bake current.
|
|
158
|
+
*/
|
|
159
|
+
export function computeModel3DBakeHash(clip, sequence) {
|
|
160
|
+
const { bake: _bake, reference: _reference, ...style } = clip.model3dStyle ?? {};
|
|
161
|
+
const payload = `${MODEL3D_BAKE_HASH_VERSION_PREFIX}${stableSerialize(model3dPictureInputs(clip, sequence, style))}`;
|
|
162
|
+
return model3dPictureDigest(payload);
|
|
126
163
|
}
|
|
127
164
|
//# sourceMappingURL=model3dBake.js.map
|
package/dist/model3dBake.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model3dBake.js","sourceRoot":"","sources":["../src/model3dBake.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"model3dBake.js","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C,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAC/C,CAAC;AACJ,CAAC;AAED,MAAM,gCAAgC,GAAG,kBAAkB,CAAC;AAE5D;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAClC,IAAkB,EAClB,QAA6B,EAC7B,KAAgC;IAEhC,OAAO;QACL,OAAO,EAAE,IAAI,CAAC,cAAc;QAC5B,KAAK;QACL,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,eAAe,EAAE,IAAI,CAAC,eAAe;QACrC,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,MAAM,EAAE,QAAQ,CAAC,MAAM;KACxB,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,sBAAsB,CACpC,IAAkB,EAClB,QAA6B;IAE7B,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GACpD,IAAI,CAAC,YAAY,IAAI,EAAE,CAAC;IAC1B,MAAM,OAAO,GAAG,GAAG,gCAAgC,GAAG,eAAe,CACnE,oBAAoB,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,CAC5C,EAAE,CAAC;IACJ,OAAO,oBAAoB,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a shot's blockout reaches the video model that renders a take of it.
|
|
3
|
+
*
|
|
4
|
+
* A model that takes reference video is sent the blockout's reference render.
|
|
5
|
+
* Any other model is sent no reference, and the camera move is written into
|
|
6
|
+
* the prompt instead. The choice is made from the model's declared tasks,
|
|
7
|
+
* never from its name.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* The model tasks that take a reference video. `reference_to_video` is the one
|
|
11
|
+
* task in the model catalog whose provider call carries reference videos
|
|
12
|
+
* (`BaseProvider.referenceToVideo`). `motion_control` is a chat composer mode
|
|
13
|
+
* with no model task and no provider call behind it, so no model can declare
|
|
14
|
+
* it and it is not listed.
|
|
15
|
+
*/
|
|
16
|
+
export declare const BLOCKOUT_REFERENCE_VIDEO_TASKS: readonly ["reference_to_video"];
|
|
17
|
+
/**
|
|
18
|
+
* Whether a video model takes a reference video, from the `supported_tasks`
|
|
19
|
+
* the catalog reports for it. A model that declares no tasks does not: the
|
|
20
|
+
* model picker treats `reference_to_video` as a task a model must declare.
|
|
21
|
+
*/
|
|
22
|
+
export declare function modelTakesReferenceVideo(supportedTasks: readonly string[] | null | undefined): boolean;
|
|
23
|
+
/** What the model is told about the reference video it is sent. */
|
|
24
|
+
export declare const BLOCKOUT_REFERENCE_INSTRUCTION: string;
|
|
25
|
+
/** Shown to the user when the selected model takes no reference video. */
|
|
26
|
+
export declare const BLOCKOUT_PROMPT_ONLY_NOTE: string;
|
|
27
|
+
export interface BlockoutGenerationInput {
|
|
28
|
+
/** The shot's composed prompt, before any blockout wording. */
|
|
29
|
+
prompt: string;
|
|
30
|
+
/** `supported_tasks` of the selected video model. */
|
|
31
|
+
supportedTasks: readonly string[] | null | undefined;
|
|
32
|
+
/** The blockout clip's current reference video asset. */
|
|
33
|
+
referenceAssetId: string;
|
|
34
|
+
/** `describeModel3DCameraMove` of the blockout clip. */
|
|
35
|
+
cameraMove: string;
|
|
36
|
+
}
|
|
37
|
+
/** A `reference_videos` entry of the `generate_media` command. */
|
|
38
|
+
export interface BlockoutReferenceVideo {
|
|
39
|
+
type: "video";
|
|
40
|
+
asset_id: string;
|
|
41
|
+
}
|
|
42
|
+
export type BlockoutGenerationPlan = {
|
|
43
|
+
route: "reference_video";
|
|
44
|
+
prompt: string;
|
|
45
|
+
capability: "reference_to_video";
|
|
46
|
+
referenceVideos: BlockoutReferenceVideo[];
|
|
47
|
+
} | {
|
|
48
|
+
route: "prompt_only";
|
|
49
|
+
prompt: string;
|
|
50
|
+
/** {@link BLOCKOUT_PROMPT_ONLY_NOTE}, for the surface to show. */
|
|
51
|
+
note: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Decide what a take generated from a blockout sends.
|
|
55
|
+
*
|
|
56
|
+
* `reference_video`: the reference asset rides in `referenceVideos`, with its
|
|
57
|
+
* full asset id, and the prompt gains {@link BLOCKOUT_REFERENCE_INSTRUCTION}
|
|
58
|
+
* and the camera sentence. `prompt_only`: nothing is attached and the prompt
|
|
59
|
+
* gains the camera sentence alone.
|
|
60
|
+
*/
|
|
61
|
+
export declare function planBlockoutGeneration(input: BlockoutGenerationInput): BlockoutGenerationPlan;
|
|
62
|
+
//# sourceMappingURL=model3dBlockout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model3dBlockout.d.ts","sourceRoot":"","sources":["../src/model3dBlockout.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,YAAI,oBAAoB,CAAU,CAAC;AAE9E;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,cAAc,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,GACnD,OAAO,CAMT;AAED,mEAAmE;AACnE,eAAO,MAAM,8BAA8B,QAGR,CAAC;AAEpC,0EAA0E;AAC1E,eAAO,MAAM,yBAAyB,QAEgC,CAAC;AAEvE,MAAM,WAAW,uBAAuB;IACtC,+DAA+D;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,cAAc,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD,yDAAyD;IACzD,gBAAgB,EAAE,MAAM,CAAC;IACzB,wDAAwD;IACxD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,kEAAkE;AAClE,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,sBAAsB,GAC9B;IACE,KAAK,EAAE,iBAAiB,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,oBAAoB,CAAC;IACjC,eAAe,EAAE,sBAAsB,EAAE,CAAC;CAC3C,GACD;IACE,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEN;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,uBAAuB,GAC7B,sBAAsB,CAqBxB"}
|