babylonjs-editor 5.5.1-alpha.0 → 5.5.1-alpha.2

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.
@@ -6,6 +6,7 @@ export type VisibleInInspectorDecoratorObject = {
6
6
  };
7
7
  export type VisibleInInspectorDecoratorConfiguration = {
8
8
  type: string;
9
+ group?: string;
9
10
  description?: string;
10
11
  min?: number;
11
12
  max?: number;
@@ -8,4 +8,3 @@ export declare function configureImportedTexture<T extends Texture | CubeTexture
8
8
  export declare function configureEmbeddedTexture(texture: Texture, absolutePath: string): Promise<void | boolean>;
9
9
  export declare function cleanTexture(texture: Texture, filename: string): void;
10
10
  export declare function loadImportedMaterial(scene: Scene, absolutePath: string): Promise<Material | null>;
11
- export declare function cleanImportedGltf(result: ISceneLoaderAsyncResult): void;
@@ -132,6 +132,8 @@ export declare class EditorPreview extends Component<IEditorPreviewProps, IEdito
132
132
  setCameraPreviewActive(camera: Camera | null): void;
133
133
  private _onGotIconsRef;
134
134
  private _onGotCanvasRef;
135
+ private _twgsl;
136
+ private _glslang;
135
137
  private _createWebgpuEngine;
136
138
  /** @internal */
137
139
  _handleMouseLeave(): void;
@@ -19,6 +19,7 @@ export declare class RagdollEditorInspector extends Component<IRagdollEditorInsp
19
19
  constructor(props: IRagdollEditorInspectorProps);
20
20
  render(): ReactNode;
21
21
  private _getRagdollInspector;
22
+ private _handleApplyMixamoTemplate;
22
23
  private _handleApplyOrStopRagdollPreview;
23
24
  private _getConfigurationListInspector;
24
25
  private _handleAddConfiguration;
@@ -1,5 +1,5 @@
1
1
  import { Component, ReactNode } from "react";
2
- import { Engine, Scene, ArcRotateCamera, Ragdoll, GroundMesh, TransformNode } from "babylonjs";
2
+ import { Engine, Scene, ArcRotateCamera, Ragdoll, GroundMesh, TransformNode, AssetContainer } from "babylonjs";
3
3
  import { Editor } from "../../main";
4
4
  import { RagdollEditor } from "./editor";
5
5
  export interface IRagdollEditorPreviewProps {
@@ -15,6 +15,7 @@ export declare class RagdollEditorPreview extends Component<IRagdollEditorPrevie
15
15
  camera: ArcRotateCamera;
16
16
  ground: GroundMesh;
17
17
  scalingNode: TransformNode;
18
+ container: AssetContainer | null;
18
19
  ragdoll: Ragdoll | null;
19
20
  private _light;
20
21
  private _viewer;
@@ -0,0 +1,14 @@
1
+ import { ISceneLoaderAsyncResult, AssetContainer } from "babylonjs";
2
+ /**
3
+ * Converts everything the glTF loader created under its "__root__" node to the left handed system Babylon.js uses.
4
+ *
5
+ * In a left handed scene, the glTF loader keeps all the data as authored (right handed) and compensates using a
6
+ * negative scaling (and a rotation) on the "__root__" node. This works for rendering, but every tool relying on the
7
+ * world matrices having a positive determinant (ragdolls, physics, etc.) breaks.
8
+ *
9
+ * The mirror of the root is baked into the data instead: the geometries are mirrored and every transform, skeleton
10
+ * and animation is conjugated by the mirror. The world transforms and the rendering of the loaded hierarchy are
11
+ * exactly preserved, but the root doesn't have a negative scaling anymore.
12
+ * @param result defines the result of the scene loader containing the loaded glTF.
13
+ */
14
+ export declare function convertGltfToLeftHanded(result: ISceneLoaderAsyncResult | AssetContainer): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-editor",
3
- "version": "5.5.1-alpha.0",
3
+ "version": "5.5.1-alpha.2",
4
4
  "description": "Babylon.js Editor is a Web Application helping artists to work with Babylon.js",
5
5
  "productName": "Babylon.js Editor",
6
6
  "main": "build/src/index.js",
@@ -37,7 +37,7 @@
37
37
  "postcss-import": "16.1.0",
38
38
  "tailwindcss": "3.4.4",
39
39
  "typescript": "7.0.2",
40
- "vitest": "4.1.0"
40
+ "vitest": "4.1.11"
41
41
  },
42
42
  "dependencies": {
43
43
  "@adobe/spz": "0.2.2",