pissang / clay-viewer

3D model viewer with high quality rendering and glTF2.0/GLB export
https://pissang.github.io/clay-viewer/editor/
BSD 3-Clause "New" or "Revised" License
771 stars 97 forks source link

EmaSimpleSkin.gltf is not displayed #12

Closed cx20 closed 6 years ago

cx20 commented 6 years ago

I tried to display the following model in QMV.js. https://github.com/cx20/jsdo-static-contents/tree/master/models/gltf/2.0/EmaSimpleSkin_blender/glTF emasimpleskin

However, it does not appear to be displayed. http://jsdo.it/cx20/SpgU

I tried with each browser, the following warning was displayed on the console.

Chrome:

GL ERROR :GL_INVALID_OPERATION : glDrawElements: range out of bounds for buffer

Firefox:

QMV.js:14017:21
WebGL warning: drawElements: Bound element array buffer is too small for given count and offset.
pissang commented 6 years ago

Thanks again for the case report. Never thought the indices can be ubyte format because it's not supported by WebGL. Fixed in https://github.com/pissang/qtek/commit/0493899de6a4887444e6d1a00f866cd3a7ee95ef

machi 2017-12-02 01-04-35

cx20 commented 6 years ago

I confirmed that it will be displayed in the latest version. http://jsdo.it/cx20/SpgU image