webgl - In Three.js, is it possible to replace a BufferGeometry's attribute arrays without creating a new geometry? -


after buffergeometry has been created , rendered @ least once, need increase size of geometry. since increasing size of attribute arrays not possible, can replace arrays new, larger ones?

something

mygeometry.attributes.position.array = newpositionarray;

i've tried this, , set .*needsupdate fields on geometry, long string of webgl errors. there going on internally in three.js prevent me operating way?

from documentation.

"you can emulate resizing pre-allocating larger buffer , keeping unneeded vertices collapsed / hidden."

https://github.com/mrdoob/three.js/wiki/updates#geometries


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -