@mml-io/3d-web-client-core 0.0.0-experimental-c32c620-20250626 → 0.0.0-experimental-3a2278c-20250715
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/build/camera/CameraManager.d.ts +6 -4
- package/build/character/Character.d.ts +25 -9
- package/build/character/CharacterManager.d.ts +45 -16
- package/build/character/CharacterModel.d.ts +12 -8
- package/build/character/CharacterState.d.ts +0 -10
- package/build/character/CharacterTooltip.d.ts +1 -0
- package/build/character/LocalController.d.ts +15 -14
- package/build/character/LowPolyModel.d.ts +1 -0
- package/build/character/RemoteController.d.ts +5 -5
- package/build/character/Spawning.d.ts +8 -0
- package/build/character/instancing/CharacterColourSamplingUtils.d.ts +14 -0
- package/build/character/instancing/CharacterInstances.d.ts +92 -0
- package/build/character/instancing/CharacterInstancingAnimationUtils.d.ts +7 -0
- package/build/character/instancing/CharacterInstancingUtils.d.ts +3 -0
- package/build/character/instancing/vendor/core/InstancedEntity.d.ts +191 -0
- package/build/character/instancing/vendor/core/InstancedMesh2.d.ts +361 -0
- package/build/character/instancing/vendor/core/InstancedMeshBVH.d.ts +145 -0
- package/build/character/instancing/vendor/core/feature/Capacity.d.ts +13 -0
- package/build/character/instancing/vendor/core/feature/FrustumCulling.d.ts +37 -0
- package/build/character/instancing/vendor/core/feature/Instances.d.ts +49 -0
- package/build/character/instancing/vendor/core/feature/LOD.d.ts +89 -0
- package/build/character/instancing/vendor/core/feature/Morph.d.ts +18 -0
- package/build/character/instancing/vendor/core/feature/Raycasting.d.ts +7 -0
- package/build/character/instancing/vendor/core/feature/Skeleton.d.ts +19 -0
- package/build/character/instancing/vendor/core/feature/Uniforms.d.ts +42 -0
- package/build/character/instancing/vendor/core/utils/GLInstancedBufferAttribute.d.ts +42 -0
- package/build/character/instancing/vendor/core/utils/InstancedRenderList.d.ts +25 -0
- package/build/character/instancing/vendor/core/utils/SquareDataTexture.d.ts +156 -0
- package/build/character/instancing/vendor/index.d.ts +25 -0
- package/build/character/instancing/vendor/shaders/ShaderChunk.d.ts +1 -0
- package/build/character/instancing/vendor/shaders/chunks/instanced_color_pars_vertex.d.ts +1 -0
- package/build/character/instancing/vendor/shaders/chunks/instanced_color_vertex.d.ts +1 -0
- package/build/character/instancing/vendor/shaders/chunks/instanced_material_color_pars_vertex.d.ts +1 -0
- package/build/character/instancing/vendor/shaders/chunks/instanced_material_color_vertex.d.ts +1 -0
- package/build/character/instancing/vendor/shaders/chunks/instanced_pars_vertex.d.ts +1 -0
- package/build/character/instancing/vendor/shaders/chunks/instanced_skinning_pars_vertex.d.ts +1 -0
- package/build/character/instancing/vendor/shaders/chunks/instanced_vertex.d.ts +1 -0
- package/build/character/instancing/vendor/utils/CreateFrom.d.ts +9 -0
- package/build/character/instancing/vendor/utils/SortingUtils.d.ts +16 -0
- package/build/character/loading/CharacterModelLoader.d.ts +11 -0
- package/build/character/loading/GLTFLoadingWorker.worker.d.ts +2 -0
- package/build/character/loading/GLTFLoadingWorkerBrowserCache.d.ts +8 -0
- package/build/character/loading/GLTFLoadingWorkerPool.d.ts +22 -0
- package/build/character/loading/GLTFLoadingWorkerTypes.d.ts +18 -0
- package/build/character/url-position.d.ts +7 -5
- package/build/collisions/CollisionsManager.d.ts +13 -8
- package/build/helpers/math-helpers.d.ts +3 -3
- package/build/index.d.ts +5 -2
- package/build/index.js +10449 -4062
- package/build/index.js.map +4 -4
- package/build/math/Box.d.ts +16 -0
- package/build/math/EulXYZ.d.ts +24 -0
- package/build/math/Line.d.ts +19 -0
- package/build/math/Matr4.d.ts +77 -0
- package/build/math/Quat.d.ts +57 -0
- package/build/math/Ray.d.ts +15 -0
- package/build/math/Vect3.d.ts +45 -0
- package/build/math/index.d.ts +8 -0
- package/build/math/radToDeg.d.ts +2 -0
- package/build/mml/MMLCompositionScene.d.ts +1 -1
- package/build/rendering/PostProcessingManager.d.ts +92 -0
- package/build/rendering/composer.d.ts +26 -25
- package/build/time/TimeManager.d.ts +1 -1
- package/build/tweakpane/TweakPane.d.ts +10 -5
- package/build/tweakpane/blades/{bcsFolder.d.ts → effects/bcsFolder.d.ts} +2 -2
- package/build/tweakpane/blades/effects/bloomAndGrain.d.ts +12 -0
- package/build/tweakpane/blades/{ssaoFolder.d.ts → effects/ssaoFolder.d.ts} +6 -31
- package/build/tweakpane/blades/{toneMappingFolder.d.ts → effects/toneMappingFolder.d.ts} +1 -1
- package/build/tweakpane/blades/environmentFolder.d.ts +6 -3
- package/build/tweakpane/blades/postProcessingFolder.d.ts +31 -0
- package/build/tweakpane/blades/rendererFolder.d.ts +1 -1
- package/package.json +16 -12
- package/LICENSE +0 -19
- package/build/character/CharacterModelLoader.d.ts +0 -11
- package/build/character/CharacterSpeakingIndicator.d.ts +0 -17
- package/build/tweakpane/blades/postExtrasFolder.d.ts +0 -12
@@ -0,0 +1,31 @@
|
|
1
|
+
import { FolderApi } from "tweakpane";
|
2
|
+
import { PostProcessingManager } from "../../rendering/PostProcessingManager";
|
3
|
+
export declare const postProcessingGlobalValues: {
|
4
|
+
enabled: boolean;
|
5
|
+
};
|
6
|
+
export declare class PostProcessingFolder {
|
7
|
+
private folder;
|
8
|
+
private effectToggleBindings;
|
9
|
+
private globalToggleBinding;
|
10
|
+
private benchmarkButton;
|
11
|
+
private benchmarkStatusBinding;
|
12
|
+
private benchmarkResultsFolder;
|
13
|
+
private postProcessingManager?;
|
14
|
+
private benchmarkState;
|
15
|
+
private benchmarkStatus;
|
16
|
+
private benchmarkData;
|
17
|
+
constructor(parentFolder: FolderApi, enabled: boolean | undefined, expand?: boolean);
|
18
|
+
private setupBenchmarkResults;
|
19
|
+
setupChangeEvent(postProcessingManager: PostProcessingManager): void;
|
20
|
+
private setupEffectToggles;
|
21
|
+
private getEffectDisplayName;
|
22
|
+
private updateEffectFolderVisibility;
|
23
|
+
refreshEffectStates(postProcessingManager: PostProcessingManager): void;
|
24
|
+
private startBenchmark;
|
25
|
+
recordFrameTime(): void;
|
26
|
+
private onPhaseComplete;
|
27
|
+
private storePhaseResults;
|
28
|
+
private completeBenchmark;
|
29
|
+
private updateBenchmarkDisplay;
|
30
|
+
isBenchmarkRunning(): boolean;
|
31
|
+
}
|
@@ -9,5 +9,5 @@ export declare const rendererValues: {
|
|
9
9
|
export declare class RendererFolder {
|
10
10
|
private folder;
|
11
11
|
constructor(parentFolder: FolderApi, expand?: boolean);
|
12
|
-
setupChangeEvent(renderer: WebGLRenderer, toneMappingFolder: FolderApi, toneMappingPass: EffectPass): void;
|
12
|
+
setupChangeEvent(renderer: WebGLRenderer, toneMappingFolder: FolderApi, toneMappingPass: EffectPass | any): void;
|
13
13
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mml-io/3d-web-client-core",
|
3
|
-
"version": "0.0.0-experimental-
|
3
|
+
"version": "0.0.0-experimental-3a2278c-20250715",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"/build"
|
12
12
|
],
|
13
13
|
"scripts": {
|
14
|
+
"depcheck": "depcheck --quiet",
|
14
15
|
"build": "tsx ./build.ts --build",
|
15
16
|
"iterate": "tsx ./build.ts --watch",
|
16
17
|
"type-check": "tsc --noEmit",
|
@@ -18,22 +19,25 @@
|
|
18
19
|
"lint-fix": "eslint \"./{src,test}/**/*.{js,jsx,ts,tsx}\" --fix"
|
19
20
|
},
|
20
21
|
"dependencies": {
|
21
|
-
"@
|
22
|
-
"@
|
23
|
-
"@mml-io/
|
24
|
-
"@mml-io/
|
22
|
+
"@gltf-transform/core": "^4.0.0",
|
23
|
+
"@gltf-transform/extensions": "^4.0.0",
|
24
|
+
"@mml-io/3d-web-avatar": "0.0.0-experimental-3a2278c-20250715",
|
25
|
+
"@mml-io/mml-web": "0.0.0-experimental-b41f621-20250714",
|
26
|
+
"@mml-io/mml-web-threejs": "0.0.0-experimental-b41f621-20250714",
|
27
|
+
"@mml-io/model-loader": "0.0.0-experimental-b41f621-20250714",
|
25
28
|
"@monogrid/gainmap-js": "^3.1.0",
|
26
29
|
"@tweakpane/core": "2.0.5",
|
27
30
|
"@tweakpane/plugin-essentials": "0.2.1",
|
28
|
-
"
|
31
|
+
"draco3d": "^1.5.7",
|
32
|
+
"meshoptimizer": "^0.18.1",
|
33
|
+
"postprocessing": "6.37.6",
|
34
|
+
"three": "0.178.0",
|
29
35
|
"three-mesh-bvh": "0.9.0",
|
30
36
|
"tweakpane": "4.0.5"
|
31
37
|
},
|
32
|
-
"peerDependencies": {
|
33
|
-
"three": ">= 0.163.0"
|
34
|
-
},
|
35
38
|
"devDependencies": {
|
36
|
-
"@types/
|
37
|
-
|
38
|
-
|
39
|
+
"@types/jest": "^29.5.12",
|
40
|
+
"@types/node": "^22.13.1",
|
41
|
+
"@types/three": "0.178.0"
|
42
|
+
}
|
39
43
|
}
|
package/LICENSE
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
Copyright (c) 2023 Improbable MV Limited
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
-
of this software and associated documentation files (the "Software"), to deal
|
5
|
-
in the Software without restriction, including without limitation the rights
|
6
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
-
copies of the Software, and to permit persons to whom the Software is
|
8
|
-
furnished to do so, subject to the following conditions:
|
9
|
-
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
11
|
-
copies or substantial portions of the Software.
|
12
|
-
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
-
SOFTWARE.
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { AnimationClip, Object3D } from "three";
|
2
|
-
export declare class CharacterModelLoader {
|
3
|
-
private debug;
|
4
|
-
private readonly modelLoader;
|
5
|
-
private modelCache;
|
6
|
-
private ongoingLoads;
|
7
|
-
constructor(maxCacheSize?: number, debug?: boolean);
|
8
|
-
load(fileUrl: string, fileType: "model"): Promise<Object3D | undefined>;
|
9
|
-
load(fileUrl: string, fileType: "animation"): Promise<AnimationClip | undefined>;
|
10
|
-
private loadFromUrl;
|
11
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { Camera, Object3D, Scene, Vector3 } from "three";
|
2
|
-
export declare class CharacterSpeakingIndicator {
|
3
|
-
private scene;
|
4
|
-
private vertexShader;
|
5
|
-
private fragmentShader;
|
6
|
-
private uniforms;
|
7
|
-
private geometry;
|
8
|
-
private material;
|
9
|
-
private mesh;
|
10
|
-
private currentAlpha;
|
11
|
-
private targetAlpha;
|
12
|
-
constructor(scene: Scene | Object3D);
|
13
|
-
setBillboarding(position: Vector3, camera: Camera): void;
|
14
|
-
setTime(value: number): void;
|
15
|
-
setSpeaking(value: boolean): void;
|
16
|
-
dispose(): void;
|
17
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { BloomEffect } from "postprocessing";
|
2
|
-
import { FolderApi } from "tweakpane";
|
3
|
-
import { GaussGrainEffect } from "../../rendering/post-effects/gauss-grain";
|
4
|
-
export declare const extrasValues: {
|
5
|
-
grain: number;
|
6
|
-
bloom: number;
|
7
|
-
};
|
8
|
-
export declare class PostExtrasFolder {
|
9
|
-
private folder;
|
10
|
-
constructor(parentFolder: FolderApi, expand?: boolean);
|
11
|
-
setupChangeEvent(bloomEffect: BloomEffect, gaussGrainEffect: typeof GaussGrainEffect): void;
|
12
|
-
}
|