Jump to content

SceneLoader.ImportMesh on gltf file is stuck on progress state


HoloLite
 Share

Recommended Posts

Here is the sample code I use:

BABYLON.SceneLoader.ImportMesh("sample", "assets/gltf/sample/", "scene.gltf", this.scene, (newMeshes: BABYLON.AbstractMesh[]) => {
            // file loaded - do something here
        },
        () => { // Progress callback
            console.log('progress...');
        },
        (scene: BABYLON.Scene) => { // Error callback
            console.log('error');
            alert('error');
        }
        );

I am getting only the progress callback. No error callback but no completion either.

The same code with .babylon file works just fine. I wonder if I am missing anything here. The doc mentioned that the ImportMesh call also works on gltf file.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...