Jump to content

ForceFullSceneLoadingForIncremental and geometry data


matdav
 Share

Recommended Posts

Hi,
i'm using incremental scene loading and I have a problem trying to force full loading using the flag SceneLoader.ForceFullSceneLoadingForIncremental = true.
I think the problem could be in the mesh Parse method. At line 2463 of babylon.mesh.ts file I see:
 

// Geometry
mesh.isUnIndexed = !!parsedMesh.isUnIndexed;
mesh.hasVertexAlpha = parsedMesh.hasVertexAlpha;

if (parsedMesh.delayLoadingFile) {
    mesh.delayLoadState = Engine.DELAYLOADSTATE_NOTLOADED;
    ...
    ...
    
    mesh._delayLoadingFunction = Geometry._ImportGeometry;

    if (SceneLoader.ForceFullSceneLoadingForIncremental) {
        mesh._checkDelayState();
    }
} else {
  Geometry._ImportGeometry(parsedMesh, mesh); // no call to mesh._checkDelayState here
}

In my case mesh do not have delayLoadingFile but geometry have it. In the else brach at line 2520 the mesh._checkDelayState() is not called and so data are not loaded.

Thanks,
Matteo

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...