donmccurdy / three-gltf-viewer

Drag-and-drop preview for glTF 2.0 models in WebGL using three.js.
https://gltf-viewer.donmccurdy.com/
MIT License
2.06k stars 530 forks source link

Some objects disappear in wireframe mode #358

Closed donmccurdy closed 6 months ago

donmccurdy commented 6 months ago

Testing against a (non-public) model from 3D Street, I noticed that enabling 'wireframe' mode hides some of the objects in the scene. Everything should remain visible. Possibly related to vertex normals, odd/event vertex counts, ...? Errors appear in the JS console:

GL_INVALID_OPERATION: Vertex buffer is not big enough for the draw call
donmccurdy commented 6 months ago

Fixed by updating three.js to r160.