Skip to content

Loading GLB not possible after Xeokit version upgrade #1985

@magmerionKwa

Description

@magmerionKwa

Describe the bug
In our project we are using the GLTFLoaderPlugin to load GLB inside the viewer. The loader whas working fine until we upgraded Xeokit to the lastest version (2.6.65 -> 2.6.90). After the upgrade we started having errors when loading GLB with the GLTFLoaderPlugin. Here the following error : "Error: assert failed: gltf".

Here a quick example of how we load the GLB :

const glbLoader = new GLTFLoaderPlugin(viewer);
try {
    await glbLoader.load({
    id: 'myModel',
    src: './models/GLB_KO.glb',
    edges: false,
    globalizeObjectIds: true,
    colorTextureEnabled: true,
    backfaces: false,
}

To Reproduce
Steps to reproduce the behavior:

  1. Load a viewer
  2. Init the GLTFLoaderPlugin
  3. Load a GLB
  4. KO -> when displaying the GLB we have an error in the console

Expected behavior
We should be able to display the GLB in the viewer

Screenshots

Image

Additional context
Here an exemple of a failing GLB from our side :

GLB_KO.zip

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions