storysplat-viewer 0.1.2 → 0.1.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/esm/index.js CHANGED
@@ -75185,9 +75185,8 @@ async function loadSplatAsset(scene, data, onProgress // Updated signature
75185
75185
  const invertY = (_c = data.invertYScale) !== null && _c !== void 0 ? _c : false;
75186
75186
  console.log(`StorySplat Viewer: Loading splat asset from ${modelUrl}`);
75187
75187
  try {
75188
- // Ensure the SceneLoader has the necessary plugin for .splat if it's custom
75189
- // This might involve registering the plugin elsewhere in the application setup
75190
- // For example: SceneLoader.RegisterPlugin(new SplatLoaderPlugin());
75188
+ // Debug: Check what loaders are registered
75189
+ console.log("StorySplat Viewer: Available SceneLoader plugins:", Object.keys(SceneLoader._RegisteredPlugins || {}));
75191
75190
  const result = await SceneLoader.ImportMeshAsync("", // meshNames - empty string loads all
75192
75191
  modelUrl, // rootUrl - the full URL
75193
75192
  "", // sceneFilename - empty when using full URL
@@ -161177,7 +161176,9 @@ class Viewer {
161177
161176
  }
161178
161177
 
161179
161178
  // Register all built-in loaders when the module loads
161179
+ console.log("StorySplat Viewer: Registering BabylonJS built-in loaders...");
161180
161180
  registerBuiltInLoaders();
161181
+ console.log("StorySplat Viewer: BabylonJS loaders registered successfully.");
161181
161182
  /**
161182
161183
  * Initializes the StorySplat Viewer within a given HTML element.
161183
161184
  *