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."
Comments
Post a Comment