xml3d / xml3d.js

The WebGL/JS implementation of XML3D
Other
75 stars 25 forks source link

Mesh's buffer size does not update properly #141

Open stlemme opened 9 years ago

stlemme commented 9 years ago

When updating the buffers of a mesh (i.e. position, normal, texcoord, etc.) and their length changes then the content is updated with the wrong buffer size. This affects meshes as well as assetmeshes.

An example showcasing this issue is available at http://stlemme.github.io/xml3d-experimental/buffersize-bug/terrain-stitching-test.html

When updating the index buffer of a mesh only, it does work properly.