-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Model throws console warning and does not load #9237
Comments
It seems the problem is caused by the uint8 indices in this model. I'm not sure where the fix would belong, but you can work around the issue by switching to uint16 indices. After loading the model into https://gltf.report/, run the following in the script panel in the sidebar... for (const mesh of document.getRoot().listMeshes()) {
for (const prim of mesh.listPrimitives()) {
const indices = prim.getIndices();
if (indices) {
indices.setArray(new Uint16Array(indices.getArray()));
}
}
} ... then re-export from the right-hand panel. |
I suppose we could add a simple step to loaders.gl post processing that converts indices. I'd prefer that to trying to chase down support for 8 bit indices across the frameworks:
|
@ibgreen skipping support for uint8 indices, and doing the conversion in loaders.gl, sounds very reasonable to me. The graphics drivers under WebGL and WebGPU are likely converting uint8 indices to uint16 or uint32 behind the scenes anyway: |
Thank you! |
Description
Hi,
I have a model which I tried loading into the latest version of deck.gl however it does not load and I get this warning. This model did work in deck.gl version 8.
I understand this may be a Luma.gl and the issue may not be fixed, but do you know what I can do to the model to get it to load?
I was using the model on a Scenegraph layer being added to a Mapbox overlay.
"[.WebGL-00007A84000E4D00] GL_INVALID_OPERATION: Insufficient buffer size."
Locker.zip
Flavors
Expected Behavior
The model to load
Steps to Reproduce
Load file into DeckGl which is attached.
Environment
Logs
[.WebGL-00007A84000E4D00] GL_INVALID_OPERATION: Insufficient buffer size.
The text was updated successfully, but these errors were encountered: