xeolabs / xeogl

A WebGL-based 3D engine for technical visualization. Not actively maintained.
http://xeogl.org
Other
1.15k stars 264 forks source link

Failed to load AlphaBlendModeTest.gltf #244

Open cx20 opened 6 years ago

cx20 commented 6 years ago

I tried to display a new test model AlphaBlendModeTest.gltf with the latest version of xeogl. However, it seems that an error occurs when loading the model.

xeogl + AlphaBlendModeTest.gltf result:

glTFModel.js:708 
Uncaught RangeError: byte length of Uint16Array should be a multiple of 2
    at typedArrayConstructByArrayBuffer (<anonymous>)
    at new Uint16Array (/gltf-test/examples/xeogl/native)
    at loadBufferView (glTFModel.js:708)
    at loadBufferViews (glTFModel.js:691)
    at glTFModel.js:578
    at glTFModel.js:602
    at glTFModel.js:621
    at XMLHttpRequest.request.onreadystatechange (glTFModel.js:676)

The expected display results are as follows. image