javascript - Transforming Geometry to BufferGeometry -


as understand it, geometry stores javascript object structure of vertices , faces , buffergeometry stores raw gl data via float32arrays, etc.

is there way turn standard geometry buffergeometry, lot more memory compact less objects? example if create new spheregeometry, there way transform buffergeometry?

you in luck.

var buffergeometry = new three.buffergeometry().fromgeometry( geometry ); 

edit: updated three.js r.76


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -