visgl / deck.gl

WebGL2 powered visualization framework
https://deck.gl
MIT License
12.29k stars 2.09k forks source link

[Bug] ScenegraphLayer: load quantized glb #9213

Open skemaikin opened 1 month ago

skemaikin commented 1 month ago

Description

I have a quantized model in glb-file. ScenegraphLayer from deck.gl v 9.0.33 cannot load quantized glb-file. But deck.gl v 8.8.2 do it without any problems. Simple app that demonstrates the problem: glb-loader

Flavors

Expected Behavior

loading quantized glb

Steps to Reproduce

  1. unpack archive
  2. npm install
  3. npm start
  4. localhost:3001

Environment

Logs

deck: update of ScenegraphLayer({id: 'test'}): size: 3 Error: size: 3
    at getVertexFormatFromAttribute (vertex-format-from-attribute.js:69:1)
    at getAttributeBuffersFromGeometry (gpu-geometry.js:86:1)
    at makeGPUGeometry (gpu-geometry.js:48:1)
    at Model.setGeometry (model.js:293:1)
    at new Model (model.js:153:1)
    at createGLTFModel (create-gltf-model.js:96:1)
    at GLTFInstantiator.createPrimitive (gltf-instantiator.js:95:1)
    at gltf-instantiator.js:80:1
    at Array.map (<anonymous>)
    at GLTFInstantiator.createMesh (gltf-instantiator.js:80:1)
skemaikin commented 2 weeks ago

the problem is still actual ( quantized glb non-quantized glb