@spatial-elements/core 1.0.0-beta.5 → 1.0.0-beta.7
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/catalog/CarouselDeviceCamera.d.ts +12 -0
- package/dist/catalog/CarouselDeviceCamera.d.ts.map +1 -0
- package/dist/catalog/CarouselDeviceCamera.js +44 -0
- package/dist/catalog/CarouselDeviceCamera.js.map +1 -0
- package/dist/catalog/CarouselGlassCompositor.d.ts +7 -2
- package/dist/catalog/CarouselGlassCompositor.d.ts.map +1 -1
- package/dist/catalog/CarouselGlassCompositor.js +85 -24
- package/dist/catalog/CarouselGlassCompositor.js.map +1 -1
- package/dist/catalog/CarouselGround.d.ts +21 -0
- package/dist/catalog/CarouselGround.d.ts.map +1 -0
- package/dist/catalog/CarouselGround.js +107 -0
- package/dist/catalog/CarouselGround.js.map +1 -0
- package/dist/catalog/CatalogDepthBlur.d.ts +26 -0
- package/dist/catalog/CatalogDepthBlur.d.ts.map +1 -0
- package/dist/catalog/CatalogDepthBlur.js +87 -0
- package/dist/catalog/CatalogDepthBlur.js.map +1 -0
- package/dist/catalog/CatalogModelOutline.d.ts +31 -0
- package/dist/catalog/CatalogModelOutline.d.ts.map +1 -0
- package/dist/catalog/CatalogModelOutline.js +127 -0
- package/dist/catalog/CatalogModelOutline.js.map +1 -0
- package/dist/catalog/CatalogSpatialElementLayer.d.ts +44 -2
- package/dist/catalog/CatalogSpatialElementLayer.d.ts.map +1 -1
- package/dist/catalog/CatalogSpatialElementLayer.js +293 -88
- package/dist/catalog/CatalogSpatialElementLayer.js.map +1 -1
- package/dist/catalog/CatalogTransition.d.ts.map +1 -1
- package/dist/catalog/CatalogTransition.js +62 -4
- package/dist/catalog/CatalogTransition.js.map +1 -1
- package/dist/catalog/SpatialGeometryCapture.d.ts +9 -0
- package/dist/catalog/SpatialGeometryCapture.d.ts.map +1 -1
- package/dist/catalog/SpatialGeometryCapture.js +11 -1
- package/dist/catalog/SpatialGeometryCapture.js.map +1 -1
- package/dist/catalog/cardModelFit.d.ts +7 -0
- package/dist/catalog/cardModelFit.d.ts.map +1 -0
- package/dist/catalog/cardModelFit.js +16 -0
- package/dist/catalog/cardModelFit.js.map +1 -0
- package/dist/catalog/cardProjection.d.ts +8 -0
- package/dist/catalog/cardProjection.d.ts.map +1 -0
- package/dist/catalog/cardProjection.js +51 -0
- package/dist/catalog/cardProjection.js.map +1 -0
- package/dist/catalog/carouselMotion.d.ts +35 -0
- package/dist/catalog/carouselMotion.d.ts.map +1 -1
- package/dist/catalog/carouselMotion.js +85 -4
- package/dist/catalog/carouselMotion.js.map +1 -1
- package/dist/catalog/carouselProximity.d.ts +11 -0
- package/dist/catalog/carouselProximity.d.ts.map +1 -0
- package/dist/catalog/carouselProximity.js +13 -0
- package/dist/catalog/carouselProximity.js.map +1 -0
- package/dist/catalog/carouselSupport.d.ts +4 -0
- package/dist/catalog/carouselSupport.d.ts.map +1 -0
- package/dist/catalog/carouselSupport.js +30 -0
- package/dist/catalog/carouselSupport.js.map +1 -0
- package/dist/catalog/catalogPose.d.ts +36 -6
- package/dist/catalog/catalogPose.d.ts.map +1 -1
- package/dist/catalog/catalogPose.js +79 -23
- package/dist/catalog/catalogPose.js.map +1 -1
- package/dist/catalog/deviceYaw.d.ts +21 -0
- package/dist/catalog/deviceYaw.d.ts.map +1 -0
- package/dist/catalog/deviceYaw.js +87 -0
- package/dist/catalog/deviceYaw.js.map +1 -0
- package/dist/catalog/listDeviceOrientation.d.ts +15 -0
- package/dist/catalog/listDeviceOrientation.d.ts.map +1 -0
- package/dist/catalog/listDeviceOrientation.js +245 -0
- package/dist/catalog/listDeviceOrientation.js.map +1 -0
- package/dist/stage/DeviceGeometryMotion.d.ts +13 -0
- package/dist/stage/DeviceGeometryMotion.d.ts.map +1 -0
- package/dist/stage/DeviceGeometryMotion.js +37 -0
- package/dist/stage/DeviceGeometryMotion.js.map +1 -0
- package/dist/stage/LiquidGlassPanel.d.ts +2 -0
- package/dist/stage/LiquidGlassPanel.d.ts.map +1 -1
- package/dist/stage/LiquidGlassPanel.js +8 -1
- package/dist/stage/LiquidGlassPanel.js.map +1 -1
- package/dist/stage/MinimapController.d.ts +1 -0
- package/dist/stage/MinimapController.d.ts.map +1 -1
- package/dist/stage/MinimapController.js +7 -0
- package/dist/stage/MinimapController.js.map +1 -1
- package/dist/stage/PanelPresentationController.d.ts.map +1 -1
- package/dist/stage/PanelPresentationController.js +19 -7
- package/dist/stage/PanelPresentationController.js.map +1 -1
- package/dist/stage/StageExperience.d.ts +56 -0
- package/dist/stage/StageExperience.d.ts.map +1 -1
- package/dist/stage/StageExperience.js +53 -17
- package/dist/stage/StageExperience.js.map +1 -1
- package/dist/stage/StageRenderPipeline.d.ts.map +1 -1
- package/dist/stage/StageRenderPipeline.js +14 -63
- package/dist/stage/StageRenderPipeline.js.map +1 -1
- package/dist/stage/interactionOutline.d.ts +14 -0
- package/dist/stage/interactionOutline.d.ts.map +1 -0
- package/dist/stage/interactionOutline.js +81 -0
- package/dist/stage/interactionOutline.js.map +1 -0
- package/dist/stage/panelContext.d.ts +2 -0
- package/dist/stage/panelContext.d.ts.map +1 -1
- package/dist/stage/panelContext.js.map +1 -1
- package/dist/stage/stageTypes.d.ts +1 -0
- package/dist/stage/stageTypes.d.ts.map +1 -1
- package/dist/stage/stageTypes.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CatalogDepthBlur.js","sourceRoot":"","sources":["../../src/catalog/CatalogDepthBlur.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAIpE,2FAA2F;AAC3F,MAAM,OAAO,gBAAgB;IACpB,O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AW;gBAAE,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;;gBAChD,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YACpC,QAAQ,CAAC,aAAa,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;YAC/C,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACtC,CAAC;IACF,CAAC;IACD,OAAO;QACN,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC;QACxB,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;QACvB,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC;IAC1B,CAAC;CACD","sourcesContent":["import * as THREE from 'three/webgpu';\nimport { texture, uniform } from 'three/tsl';\nimport { gaussianBlur } from 'three/addons/tsl/display/GaussianBlurNode.js';\nimport { gaussianTargets } from '../stage/renderTargetInventory.js';\n\nexport interface BlurRect { left: number; top: number; width: number; height: number }\n\n/** One bounded scratch image for all defocused models and panels, reused between draws. */\nexport class CatalogDepthBlur {\n\tprivate capture?: THREE.RenderTarget;\n\tprivate effect?: ReturnType<typeof gaussianBlur>;\n\tprivate material?: THREE.NodeMaterial;\n\tprivate quad?: THREE.QuadMesh;\n\tprivate readonly camera = new THREE.PerspectiveCamera();\n\tprivate readonly direction = uniform(new THREE.Vector2());\n\tprivate passes = 0;\n\tgetRenderTargets() { return this.capture ? [this.capture, ...gaussianTargets(this.effect!)] : []; }\n\tgetStats() { return { passes: this.passes, targets: this.getRenderTargets().length, size: this.capture?.width ?? 0 }; }\n\n\trender(renderer: THREE.WebGPURenderer, camera: THREE.PerspectiveCamera,\n\t\tbounds: BlurRect, radius: number, draw: (camera: THREE.PerspectiveCamera) => void,\n\t\tclip: BlurRect = { left: 0, top: 0, width: innerWidth, height: innerHeight }) {\n\t\tif (radius < 0.05) { draw(camera); return; }\n\t\tconst padding = Math.ceil(radius * 3 + 2);\n\t\tconst left = Math.max(0, clip.left, Math.floor(bounds.left - padding));\n\t\tconst top = Math.max(0, clip.top, Math.floor(bounds.top - padding));\n\t\tconst right = Math.min(innerWidth, clip.left + clip.width, Math.ceil(bounds.left + bounds.width + padding));\n\t\tconst bottom = Math.min(innerHeight, clip.top + clip.height, Math.ceil(bounds.top + bounds.height + padding));\n\t\tconst width = right - left, height = bottom - top;\n\t\tif (width <= 0 || height <= 0) return;\n\t\tif (!this.capture) {\n\t\t\tthis.capture = new THREE.RenderTarget(512, 512, { type: THREE.HalfFloatType });\n\t\t\tthis.effect = gaussianBlur(texture(this.capture.texture), this.direction, 2,\n\t\t\t\t{ resolutionScale: 0.5, premultipliedAlpha: false });\n\t\t\t// Several actors reuse the scratch image within one stage frame.\n\t\t\tthis.effect.updateBeforeType = THREE.NodeUpdateType.RENDER;\n\t\t\tthis.material = new THREE.NodeMaterial();\n\t\t\tthis.material.fragmentNode = this.effect;\n\t\t\tthis.material.transparent = true;\n\t\t\t// Captures and Gaussian samples are already premultiplied; do not multiply alpha twice.\n\t\t\tthis.material.blending = THREE.CustomBlending;\n\t\t\tthis.material.blendSrc = this.material.blendSrcAlpha = THREE.OneFactor;\n\t\t\tthis.material.blendDst = this.material.blendDstAlpha = THREE.OneMinusSrcAlphaFactor;\n\t\t\tthis.material.depthTest = false;\n\t\t\tthis.material.depthWrite = false;\n\t\t\tthis.material.toneMapped = false;\n\t\t\tthis.quad = new THREE.QuadMesh(this.material);\n\t\t}\n\t\tconst destination = renderer.getRenderTarget();\n\t\tconst viewport = destination ? destination.viewport.clone() : renderer.getViewport(new THREE.Vector4());\n\t\tconst clearColor = renderer.getClearColor(new THREE.Color());\n\t\tconst clearAlpha = renderer.getClearAlpha();\n\t\tconst scissorTest = renderer.getScissorTest();\n\t\tthis.camera.copy(camera);\n\t\tthis.camera.setViewOffset(innerWidth, innerHeight, left, top, width, height);\n\t\t// The half-resolution Gaussian uses a kernel standard deviation of 7/3 texels.\n\t\tthis.direction.value.set(radius * 256 / width / (7 / 3), radius * 256 / height / (7 / 3));\n\t\ttry {\n\t\t\trenderer.setRenderTarget(this.capture);\n\t\t\trenderer.setScissorTest(false);\n\t\t\trenderer.setClearColor(0x000000, 0);\n\t\t\trenderer.clear();\n\t\t\tdraw(this.camera);\n\t\t\trenderer.setRenderTarget(destination);\n\t\t\tconst scaleX = viewport.z / innerWidth, scaleY = viewport.w / innerHeight;\n\t\t\tconst output = new THREE.Vector4(viewport.x + left * scaleX, viewport.y + top * scaleY, width * scaleX, height * scaleY);\n\t\t\tif (destination) destination.viewport.copy(output);\n\t\t\telse renderer.setViewport(output);\n\t\t\tthis.quad!.render(renderer);\n\t\t\tthis.passes++;\n\t\t} finally {\n\t\t\trenderer.setRenderTarget(destination);\n\t\t\tif (destination) destination.viewport.copy(viewport);\n\t\t\telse renderer.setViewport(viewport);\n\t\t\trenderer.setClearColor(clearColor, clearAlpha);\n\t\t\trenderer.setScissorTest(scissorTest);\n\t\t}\n\t}\n\tdispose() {\n\t\tthis.capture?.dispose();\n\t\tthis.effect?.dispose();\n\t\tthis.material?.dispose();\n\t}\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import type { StageInteractionTheme } from '../stage/stageTypes.js';
|
|
3
|
+
import type { BlurRect } from './CatalogDepthBlur.js';
|
|
4
|
+
/** A shared, cropped silhouette target. Idle hover fades reuse its last mask. */
|
|
5
|
+
export declare class CatalogModelOutline {
|
|
6
|
+
private readonly scene;
|
|
7
|
+
private readonly camera;
|
|
8
|
+
private readonly controls;
|
|
9
|
+
private readonly modelMatrix;
|
|
10
|
+
private readonly cameraMatrix;
|
|
11
|
+
private readonly projection;
|
|
12
|
+
private masks;
|
|
13
|
+
private source?;
|
|
14
|
+
private capture?;
|
|
15
|
+
private maskMaterial?;
|
|
16
|
+
private material?;
|
|
17
|
+
private quad?;
|
|
18
|
+
private captures;
|
|
19
|
+
private passes;
|
|
20
|
+
getRenderTargets(): THREE.RenderTarget<THREE.Texture<unknown, THREE.TextureEventMap>, THREE.RenderTargetEventMap>[];
|
|
21
|
+
getStats(): {
|
|
22
|
+
captures: number;
|
|
23
|
+
passes: number;
|
|
24
|
+
targets: number;
|
|
25
|
+
size: number;
|
|
26
|
+
};
|
|
27
|
+
render(renderer: THREE.WebGPURenderer, camera: THREE.PerspectiveCamera, model: THREE.Object3D, bounds: BlurRect, clip: BlurRect, opacity: number, theme: StageInteractionTheme): void;
|
|
28
|
+
release(model: THREE.Object3D): void;
|
|
29
|
+
dispose(): void;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=CatalogModelOutline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CatalogModelOutline.d.ts","sourceRoot":"","sources":["../../src/catalog/CatalogModelOutline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAItC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,iFAAiF;AACjF,qBAAa,mBAAmB;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqB;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiC;IACxD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2B;IACpD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAuB;IACnD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAuB;IACpD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAClD,OAAO,CAAC,KAAK,CAAiD;IAC9D,OAAO,CAAC,MAAM,CAAC,CAAiB;IAChC,OAAO,CAAC,OAAO,CAAC,CAAqB;IACrC,OAAO,CAAC,YAAY,CAAC,CAA0B;IAC/C,OAAO,CAAC,QAAQ,CAAC,CAA8B;IAC/C,OAAO,CAAC,IAAI,CAAC,CAAiB;IAC9B,OAAO,CAAC,QAAQ,CAAK;IACrB,OAAO,CAAC,MAAM,CAAK;IACnB,gBAAgB;IAChB,QAAQ;;;;;;IAER,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,CAAC,iBAAiB,EACrE,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EACvD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,qBAAqB;IAqF9C,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,QAAQ;IAM7B,OAAO;CAQP"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { texture } from 'three/tsl';
|
|
3
|
+
import { createOutlineOpacity, createOutlineUniforms, isOutlineMesh } from '../stage/interactionOutline.js';
|
|
4
|
+
import { isMesh } from '../stage/stageSceneUtils.js';
|
|
5
|
+
/** A shared, cropped silhouette target. Idle hover fades reuse its last mask. */
|
|
6
|
+
export class CatalogModelOutline {
|
|
7
|
+
scene = new THREE.Scene();
|
|
8
|
+
camera = new THREE.PerspectiveCamera();
|
|
9
|
+
controls = createOutlineUniforms();
|
|
10
|
+
modelMatrix = new THREE.Matrix4();
|
|
11
|
+
cameraMatrix = new THREE.Matrix4();
|
|
12
|
+
projection = new THREE.Matrix4();
|
|
13
|
+
masks = new WeakMap();
|
|
14
|
+
source;
|
|
15
|
+
capture;
|
|
16
|
+
maskMaterial;
|
|
17
|
+
material;
|
|
18
|
+
quad;
|
|
19
|
+
captures = 0;
|
|
20
|
+
passes = 0;
|
|
21
|
+
getRenderTargets() { return this.capture ? [this.capture] : []; }
|
|
22
|
+
getStats() { return { captures: this.captures, passes: this.passes, targets: this.getRenderTargets().length, size: this.capture?.width ?? 0 }; }
|
|
23
|
+
render(renderer, camera, model, bounds, clip, opacity, theme) {
|
|
24
|
+
if (opacity <= 0.001)
|
|
25
|
+
return;
|
|
26
|
+
const padding = Math.ceil(theme.outlineThickness * Math.max(1, theme.outlineGlowThickness) + 2);
|
|
27
|
+
const left = Math.max(0, clip.left, Math.floor(bounds.left - padding));
|
|
28
|
+
const top = Math.max(0, clip.top, Math.floor(bounds.top - padding));
|
|
29
|
+
const right = Math.min(innerWidth, clip.left + clip.width, Math.ceil(bounds.left + bounds.width + padding));
|
|
30
|
+
const bottom = Math.min(innerHeight, clip.top + clip.height, Math.ceil(bounds.top + bounds.height + padding));
|
|
31
|
+
const width = right - left, height = bottom - top;
|
|
32
|
+
if (width <= 0 || height <= 0)
|
|
33
|
+
return;
|
|
34
|
+
if (!this.capture) {
|
|
35
|
+
this.capture = new THREE.RenderTarget(512, 512, { depthBuffer: true, samples: 4 });
|
|
36
|
+
this.capture.texture.generateMipmaps = false;
|
|
37
|
+
this.maskMaterial = new THREE.MeshBasicMaterial({ color: 0xffffff, side: THREE.DoubleSide, toneMapped: false });
|
|
38
|
+
this.material = new THREE.MeshBasicNodeMaterial({ transparent: true, depthTest: false, depthWrite: false, toneMapped: false });
|
|
39
|
+
this.material.colorNode = this.controls.color;
|
|
40
|
+
this.material.opacityNode = createOutlineOpacity(texture(this.capture.texture), this.controls);
|
|
41
|
+
this.quad = new THREE.QuadMesh(this.material);
|
|
42
|
+
}
|
|
43
|
+
let mask = this.masks.get(model);
|
|
44
|
+
if (!mask) {
|
|
45
|
+
mask = model.clone(true);
|
|
46
|
+
mask.traverse(child => {
|
|
47
|
+
if (!isMesh(child))
|
|
48
|
+
return;
|
|
49
|
+
child.visible &&= isOutlineMesh(child, theme);
|
|
50
|
+
child.material = this.maskMaterial;
|
|
51
|
+
});
|
|
52
|
+
mask.matrixAutoUpdate = false;
|
|
53
|
+
this.masks.set(model, mask);
|
|
54
|
+
}
|
|
55
|
+
model.updateWorldMatrix(true, false);
|
|
56
|
+
mask.matrix.copy(model.matrixWorld);
|
|
57
|
+
mask.matrixWorldNeedsUpdate = true;
|
|
58
|
+
this.camera.copy(camera);
|
|
59
|
+
// Crop the actual projection, including custom transition camera matrices.
|
|
60
|
+
this.camera.projectionMatrix.copy(new THREE.Matrix4().set(innerWidth / width, 0, 0, (innerWidth - 2 * left - width) / width, 0, innerHeight / height, 0, (2 * top + height - innerHeight) / height, 0, 0, 1, 0, 0, 0, 0, 1).multiply(camera.projectionMatrix));
|
|
61
|
+
this.camera.projectionMatrixInverse.copy(this.camera.projectionMatrix).invert();
|
|
62
|
+
const changed = this.source !== model || !this.modelMatrix.equals(model.matrixWorld) ||
|
|
63
|
+
!this.cameraMatrix.equals(camera.matrixWorld) || !this.projection.equals(this.camera.projectionMatrix);
|
|
64
|
+
if (this.source !== model) {
|
|
65
|
+
this.scene.clear();
|
|
66
|
+
this.scene.add(mask);
|
|
67
|
+
this.source = model;
|
|
68
|
+
}
|
|
69
|
+
this.controls.color.value.set(theme.outlineColor);
|
|
70
|
+
this.controls.strength.value = theme.outlineOpacity;
|
|
71
|
+
this.controls.glow.value = theme.outlineGlow;
|
|
72
|
+
this.controls.opacityScale.value = opacity;
|
|
73
|
+
this.controls.texel.value.set(theme.outlineThickness / width, theme.outlineThickness / height);
|
|
74
|
+
this.controls.glowTexel.value.copy(this.controls.texel.value).multiplyScalar(theme.outlineGlowThickness);
|
|
75
|
+
const destination = renderer.getRenderTarget();
|
|
76
|
+
const viewport = destination ? destination.viewport.clone() : renderer.getViewport(new THREE.Vector4());
|
|
77
|
+
const clearColor = renderer.getClearColor(new THREE.Color()), clearAlpha = renderer.getClearAlpha();
|
|
78
|
+
const scissorTest = renderer.getScissorTest();
|
|
79
|
+
try {
|
|
80
|
+
renderer.setScissorTest(false);
|
|
81
|
+
if (changed) {
|
|
82
|
+
renderer.setRenderTarget(this.capture);
|
|
83
|
+
renderer.setClearColor(0x000000, 0);
|
|
84
|
+
renderer.clear();
|
|
85
|
+
renderer.render(this.scene, this.camera);
|
|
86
|
+
this.modelMatrix.copy(model.matrixWorld);
|
|
87
|
+
this.cameraMatrix.copy(camera.matrixWorld);
|
|
88
|
+
this.projection.copy(this.camera.projectionMatrix);
|
|
89
|
+
this.captures++;
|
|
90
|
+
}
|
|
91
|
+
renderer.setRenderTarget(destination);
|
|
92
|
+
const scaleX = viewport.z / innerWidth, scaleY = viewport.w / innerHeight;
|
|
93
|
+
const output = new THREE.Vector4(viewport.x + left * scaleX, viewport.y + top * scaleY, width * scaleX, height * scaleY);
|
|
94
|
+
if (destination)
|
|
95
|
+
destination.viewport.copy(output);
|
|
96
|
+
else
|
|
97
|
+
renderer.setViewport(output);
|
|
98
|
+
this.quad.render(renderer);
|
|
99
|
+
this.passes++;
|
|
100
|
+
}
|
|
101
|
+
finally {
|
|
102
|
+
renderer.setRenderTarget(destination);
|
|
103
|
+
if (destination)
|
|
104
|
+
destination.viewport.copy(viewport);
|
|
105
|
+
else
|
|
106
|
+
renderer.setViewport(viewport);
|
|
107
|
+
renderer.setClearColor(clearColor, clearAlpha);
|
|
108
|
+
renderer.setScissorTest(scissorTest);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
release(model) {
|
|
112
|
+
this.masks.delete(model);
|
|
113
|
+
if (this.source !== model)
|
|
114
|
+
return;
|
|
115
|
+
this.source = undefined;
|
|
116
|
+
this.scene.clear();
|
|
117
|
+
}
|
|
118
|
+
dispose() {
|
|
119
|
+
this.scene.clear();
|
|
120
|
+
this.source = undefined;
|
|
121
|
+
this.masks = new WeakMap();
|
|
122
|
+
this.capture?.dispose();
|
|
123
|
+
this.maskMaterial?.dispose();
|
|
124
|
+
this.material?.dispose();
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=CatalogModelOutline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CatalogModelOutline.js","sourceRoot":"","sources":["../../src/catalog/CatalogModelOutline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,a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CAAC;gBAAS,CAAC;YACV,QAAQ,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;YACtC,IAAI,WAAW;gBAAE,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;;gBAChD,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YACpC,QAAQ,CAAC,aAAa,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;YAC/C,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACtC,CAAC;IACF,CAAC;IACD,OAAO,CAAC,KAAqB;QAC5B,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK;YAAE,OAAO;QAClC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QACxB,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACpB,CAAC;IACD,OAAO;QACN,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,OAAO,EAAE,CAAC;QAC3B,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC;QACxB,IAAI,CAAC,YAAY,EAAE,OAAO,EAAE,CAAC;QAC7B,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC;IAC1B,CAAC;CACD","sourcesContent":["import * as THREE from 'three/webgpu';\nimport { texture } from 'three/tsl';\nimport { createOutlineOpacity, createOutlineUniforms, isOutlineMesh } from '../stage/interactionOutline.js';\nimport { isMesh } from '../stage/stageSceneUtils.js';\nimport type { StageInteractionTheme } from '../stage/stageTypes.js';\nimport type { BlurRect } from './CatalogDepthBlur.js';\n\n/** A shared, cropped silhouette target. Idle hover fades reuse its last mask. */\nexport class CatalogModelOutline {\n\tprivate readonly scene = new THREE.Scene();\n\tprivate readonly camera = new THREE.PerspectiveCamera();\n\tprivate readonly controls = createOutlineUniforms();\n\tprivate readonly modelMatrix = new THREE.Matrix4();\n\tprivate readonly cameraMatrix = new THREE.Matrix4();\n\tprivate readonly projection = new THREE.Matrix4();\n\tprivate masks = new WeakMap<THREE.Object3D, THREE.Object3D>();\n\tprivate source?: THREE.Object3D;\n\tprivate capture?: THREE.RenderTarget;\n\tprivate maskMaterial?: THREE.MeshBasicMaterial;\n\tprivate material?: THREE.MeshBasicNodeMaterial;\n\tprivate quad?: THREE.QuadMesh;\n\tprivate captures = 0;\n\tprivate passes = 0;\n\tgetRenderTargets() { return this.capture ? [this.capture] : []; }\n\tgetStats() { return { captures: this.captures, passes: this.passes, targets: this.getRenderTargets().length, size: this.capture?.width ?? 0 }; }\n\n\trender(renderer: THREE.WebGPURenderer, camera: THREE.PerspectiveCamera,\n\t\tmodel: THREE.Object3D, bounds: BlurRect, clip: BlurRect,\n\t\topacity: number, theme: StageInteractionTheme) {\n\t\tif (opacity <= 0.001) return;\n\t\tconst padding = Math.ceil(theme.outlineThickness * Math.max(1, theme.outlineGlowThickness) + 2);\n\t\tconst left = Math.max(0, clip.left, Math.floor(bounds.left - padding));\n\t\tconst top = Math.max(0, clip.top, Math.floor(bounds.top - padding));\n\t\tconst right = Math.min(innerWidth, clip.left + clip.width, Math.ceil(bounds.left + bounds.width + padding));\n\t\tconst bottom = Math.min(innerHeight, clip.top + clip.height, Math.ceil(bounds.top + bounds.height + padding));\n\t\tconst width = right - left, height = bottom - top;\n\t\tif (width <= 0 || height <= 0) return;\n\t\tif (!this.capture) {\n\t\t\tthis.capture = new THREE.RenderTarget(512, 512, { depthBuffer: true, samples: 4 });\n\t\t\tthis.capture.texture.generateMipmaps = false;\n\t\t\tthis.maskMaterial = new THREE.MeshBasicMaterial({ color: 0xffffff, side: THREE.DoubleSide, toneMapped: false });\n\t\t\tthis.material = new THREE.MeshBasicNodeMaterial({ transparent: true, depthTest: false, depthWrite: false, toneMapped: false });\n\t\t\tthis.material.colorNode = this.controls.color;\n\t\t\tthis.material.opacityNode = createOutlineOpacity(texture(this.capture.texture), this.controls);\n\t\t\tthis.quad = new THREE.QuadMesh(this.material);\n\t\t}\n\t\tlet mask = this.masks.get(model);\n\t\tif (!mask) {\n\t\t\tmask = model.clone(true);\n\t\t\tmask.traverse(child => {\n\t\t\t\tif (!isMesh(child)) return;\n\t\t\t\tchild.visible &&= isOutlineMesh(child, theme);\n\t\t\t\tchild.material = this.maskMaterial!;\n\t\t\t});\n\t\t\tmask.matrixAutoUpdate = false;\n\t\t\tthis.masks.set(model, mask);\n\t\t}\n\t\tmodel.updateWorldMatrix(true, false);\n\t\tmask.matrix.copy(model.matrixWorld);\n\t\tmask.matrixWorldNeedsUpdate = true;\n\t\tthis.camera.copy(camera);\n\t\t// Crop the actual projection, including custom transition camera matrices.\n\t\tthis.camera.projectionMatrix.copy(new THREE.Matrix4().set(\n\t\t\tinnerWidth / width, 0, 0, (innerWidth - 2 * left - width) / width,\n\t\t\t0, innerHeight / height, 0, (2 * top + height - innerHeight) / height,\n\t\t\t0, 0, 1, 0,\n\t\t\t0, 0, 0, 1\n\t\t).multiply(camera.projectionMatrix));\n\t\tthis.camera.projectionMatrixInverse.copy(this.camera.projectionMatrix).invert();\n\t\tconst changed = this.source !== model || !this.modelMatrix.equals(model.matrixWorld) ||\n\t\t\t!this.cameraMatrix.equals(camera.matrixWorld) || !this.projection.equals(this.camera.projectionMatrix);\n\t\tif (this.source !== model) {\n\t\t\tthis.scene.clear();\n\t\t\tthis.scene.add(mask);\n\t\t\tthis.source = model;\n\t\t}\n\t\tthis.controls.color.value.set(theme.outlineColor);\n\t\tthis.controls.strength.value = theme.outlineOpacity;\n\t\tthis.controls.glow.value = theme.outlineGlow;\n\t\tthis.controls.opacityScale.value = opacity;\n\t\tthis.controls.texel.value.set(theme.outlineThickness / width, theme.outlineThickness / height);\n\t\tthis.controls.glowTexel.value.copy(this.controls.texel.value).multiplyScalar(theme.outlineGlowThickness);\n\t\tconst destination = renderer.getRenderTarget();\n\t\tconst viewport = destination ? destination.viewport.clone() : renderer.getViewport(new THREE.Vector4());\n\t\tconst clearColor = renderer.getClearColor(new THREE.Color()), clearAlpha = renderer.getClearAlpha();\n\t\tconst scissorTest = renderer.getScissorTest();\n\t\ttry {\n\t\t\trenderer.setScissorTest(false);\n\t\t\tif (changed) {\n\t\t\t\trenderer.setRenderTarget(this.capture);\n\t\t\t\trenderer.setClearColor(0x000000, 0);\n\t\t\t\trenderer.clear();\n\t\t\t\trenderer.render(this.scene, this.camera);\n\t\t\t\tthis.modelMatrix.copy(model.matrixWorld);\n\t\t\t\tthis.cameraMatrix.copy(camera.matrixWorld);\n\t\t\t\tthis.projection.copy(this.camera.projectionMatrix);\n\t\t\t\tthis.captures++;\n\t\t\t}\n\t\t\trenderer.setRenderTarget(destination);\n\t\t\tconst scaleX = viewport.z / innerWidth, scaleY = viewport.w / innerHeight;\n\t\t\tconst output = new THREE.Vector4(viewport.x + left * scaleX, viewport.y + top * scaleY, width * scaleX, height * scaleY);\n\t\t\tif (destination) destination.viewport.copy(output);\n\t\t\telse renderer.setViewport(output);\n\t\t\tthis.quad!.render(renderer);\n\t\t\tthis.passes++;\n\t\t} finally {\n\t\t\trenderer.setRenderTarget(destination);\n\t\t\tif (destination) destination.viewport.copy(viewport);\n\t\t\telse renderer.setViewport(viewport);\n\t\t\trenderer.setClearColor(clearColor, clearAlpha);\n\t\t\trenderer.setScissorTest(scissorTest);\n\t\t}\n\t}\n\trelease(model: THREE.Object3D) {\n\t\tthis.masks.delete(model);\n\t\tif (this.source !== model) return;\n\t\tthis.source = undefined;\n\t\tthis.scene.clear();\n\t}\n\tdispose() {\n\t\tthis.scene.clear();\n\t\tthis.source = undefined;\n\t\tthis.masks = new WeakMap();\n\t\tthis.capture?.dispose();\n\t\tthis.maskMaterial?.dispose();\n\t\tthis.material?.dispose();\n\t}\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { StageInteractionTheme } from '../stage/stageTypes.js';
|
|
1
2
|
import type { SpatialElementProjection } from './SpatialGeometryCapture.js';
|
|
2
3
|
import type { SpatialElementRefinement } from '../stage/SpatialElementRefinement.js';
|
|
3
4
|
import * as THREE from 'three/webgpu';
|
|
@@ -20,11 +21,17 @@ export declare function getSpatialElementHandoffProjection(sourceClip: THREE.Mat
|
|
|
20
21
|
export declare class CatalogSpatialElementLayer {
|
|
21
22
|
private readonly assets;
|
|
22
23
|
private readonly invalidate;
|
|
24
|
+
private readonly interactionTheme;
|
|
23
25
|
getRenderTargets(): THREE.RenderTarget<THREE.Texture<unknown, THREE.TextureEventMap>, THREE.RenderTargetEventMap>[];
|
|
24
26
|
private readonly scene;
|
|
25
27
|
private passes;
|
|
26
28
|
getStats(): {
|
|
27
29
|
instances: number;
|
|
30
|
+
deviceCamera: {
|
|
31
|
+
pitch: number;
|
|
32
|
+
yaw: number;
|
|
33
|
+
roll: number;
|
|
34
|
+
};
|
|
28
35
|
detachedInstances: number;
|
|
29
36
|
visible: number;
|
|
30
37
|
passes: number;
|
|
@@ -34,8 +41,23 @@ export declare class CatalogSpatialElementLayer {
|
|
|
34
41
|
passes: number;
|
|
35
42
|
resizes: number;
|
|
36
43
|
};
|
|
44
|
+
ground: {
|
|
45
|
+
silhouettes: number;
|
|
46
|
+
};
|
|
47
|
+
depthBlur: {
|
|
48
|
+
passes: number;
|
|
49
|
+
targets: number;
|
|
50
|
+
size: number;
|
|
51
|
+
};
|
|
52
|
+
outline: {
|
|
53
|
+
captures: number;
|
|
54
|
+
passes: number;
|
|
55
|
+
targets: number;
|
|
56
|
+
size: number;
|
|
57
|
+
};
|
|
37
58
|
actors: {
|
|
38
59
|
spatialElementId: string;
|
|
60
|
+
projectedCenter: THREE.Vector3Tuple;
|
|
39
61
|
band: "front" | "rear" | undefined;
|
|
40
62
|
clip: {
|
|
41
63
|
left: number;
|
|
@@ -46,14 +68,32 @@ export declare class CatalogSpatialElementLayer {
|
|
|
46
68
|
opacity: number;
|
|
47
69
|
materialOpacity: number;
|
|
48
70
|
depthWrite: boolean;
|
|
71
|
+
modelScale: number;
|
|
72
|
+
modelDepth: number;
|
|
73
|
+
blur: number;
|
|
74
|
+
hover: number;
|
|
75
|
+
proximityTilt: {
|
|
76
|
+
x: number;
|
|
77
|
+
y: number;
|
|
78
|
+
};
|
|
79
|
+
deviceTilt: {
|
|
80
|
+
yaw: number;
|
|
81
|
+
pitch: number;
|
|
82
|
+
roll: number;
|
|
83
|
+
};
|
|
49
84
|
}[];
|
|
50
85
|
};
|
|
86
|
+
private readonly depthBlur;
|
|
87
|
+
private readonly outline;
|
|
51
88
|
private readonly glass;
|
|
89
|
+
private readonly ground;
|
|
52
90
|
private readonly geometryFade;
|
|
53
91
|
private readonly handoffScene;
|
|
54
92
|
private readonly camera;
|
|
55
93
|
private readonly carouselCamera;
|
|
56
|
-
private readonly
|
|
94
|
+
private readonly carouselUiCamera;
|
|
95
|
+
private readonly carouselDeviceCamera;
|
|
96
|
+
private carouselSelection?;
|
|
57
97
|
private readonly handoffCamera;
|
|
58
98
|
private readonly actors;
|
|
59
99
|
private readonly requests;
|
|
@@ -62,6 +102,7 @@ export declare class CatalogSpatialElementLayer {
|
|
|
62
102
|
private readonly loadingKeys;
|
|
63
103
|
private readonly failedKeys;
|
|
64
104
|
private readonly motion;
|
|
105
|
+
private readonly unsubscribeDeviceYaw;
|
|
65
106
|
private readonly pointer;
|
|
66
107
|
private handoff?;
|
|
67
108
|
private handoffPoint?;
|
|
@@ -80,11 +121,12 @@ export declare class CatalogSpatialElementLayer {
|
|
|
80
121
|
private detachedInstances;
|
|
81
122
|
private readonly pointerMove;
|
|
82
123
|
private readonly pointerDown;
|
|
124
|
+
private readonly pointerUp;
|
|
83
125
|
private readonly pointerLeave;
|
|
84
126
|
private readonly resize;
|
|
85
127
|
private readonly motionChange;
|
|
86
128
|
setPageBackground(value: string): void;
|
|
87
|
-
constructor(assets: SpatialElementAssetManager, invalidate: () => void);
|
|
129
|
+
constructor(assets: SpatialElementAssetManager, invalidate: () => void, interactionTheme?: () => StageInteractionTheme);
|
|
88
130
|
setSpatialElements(brandId: string, spatialElements: SpatialListItem[]): Promise<void>;
|
|
89
131
|
private loadVisibleSpatialElements;
|
|
90
132
|
update(renderer: THREE.WebGPURenderer, environment: THREE.Texture | null, now: number): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogSpatialElementLayer.d.ts","sourceRoot":"","sources":["../../src/catalog/CatalogSpatialElementLayer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CatalogSpatialElementLayer.d.ts","sourceRoot":"","sources":["../../src/catalog/CatalogSpatialElementLayer.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAErF,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAgBnE,OAAO,EAAE,0BAA0B,EAAoC,MAAM,wCAAwC,CAAC;AAiFtH,oGAAoG;AACpG,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,iBAI5F;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CACjD,UAAU,EAAE,KAAK,CAAC,OAAO,EACzB,UAAU,EAAE,KAAK,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,KAAK,CAAC,OAAO,EACzB,WAAW,EAAE,KAAK,CAAC,OAAO,EAC1B,KAAK,EAAE;IACN,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC;IAC3B,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC;IAC5B,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC;IAC3B,YAA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