2
votes

I have a PointCloud with a large number ( 200K+ ) of particles. This PointCloud is constructed using THREE.BufferGeometry, with each vertices position set using Float32Array( numParticles * 3 ).

I would like to animate the x,y positions of randomly selected clusters of particles every n number of seconds. This process needs to be as efficient as possible — so looping though all the particles in the update() and selecting random clusters to animate, is too computationally expensive.

Is there a better way to achieve something like this in Three.js ?

@WestLangley Brillant, I didn't find that questions. Thanks!Foreign Object
@WestLangley, ( I know this should probably be another question, but..) I have that setup, but where do I access the vertices positions, before it was geometry.attributes.position.array - do I just use geometry.attributes.position.array.subarray ?Foreign Object
I have not tried this, actually. I was just trying to point you in the right direction... Also see github.com/mrdoob/three.js/pull/5042. If you can figure it out and post your own answer, that would be great!WestLangley
No worries, thanks for the help!Foreign Object