efficent way to remove millions of particles

   1656   4   1
User Avatar
Member
4189 posts
Joined: June 2012
Offline
Is there an efficient way to remove millions of particles that are inside some geometry?

Trying a group node to select points with a bounding object but it is running single thread, which is very slow on 80 million particles. Thanks!
User Avatar
Member
1769 posts
Joined: Dec. 2006
Offline
Hey!
Use a bounding vdb volume, it does not have to be high resolution, it is much faster.
daniel bukovec | senior fx td | weta digital
qLib -- http://qlab.github.io/qLib/ [qlab.github.io]
User Avatar
Member
4189 posts
Joined: June 2012
Offline
A billizion times faster! thanks buki!
User Avatar
Member
258 posts
Joined: July 2006
Offline
instead of using the group bounding use this in a wrangle you will get some more boost

convert the shape to vdb like daniel said and connect it to the second input of wrangle

and

float in = volumesample(1,0,@P);
if(in < 0)
removepoint(geoself(),@ptnum);
Head of CG @ MPC
CG Supervisor/ Sr. FX TD /
https://gumroad.com/timvfx [gumroad.com]
www.timucinozger.com
User Avatar
Member
4189 posts
Joined: June 2012
Offline
Cool stuff tricecold! Interestingly both techniques are approx the same speed here on MacOs.
  • Quick Links