terencemace Posted June 23, 2023 Share Posted June 23, 2023 Hello all, I'm working on a particle sim where I have a disc of swirling particles, and I want the particles to eventually clump into 5 separate "clumps". I can do this with one object, using the POP Attract node. However, I'm sure there is a more elegant way to do this with VEX. Anyone else do this type of effect? Thanks! T Quote Link to comment Share on other sites More sharing options...
animatrix Posted June 23, 2023 Share Posted June 23, 2023 Hi, You can create points for the clump centers and then perform a point cloud lookup to assign your particles to each clump. From there it's easy to create a force that pushes the particles toward the clump centers. Quote Link to comment Share on other sites More sharing options...
Librarian Posted June 23, 2023 Share Posted June 23, 2023 @terencemace something like this or? Quote Link to comment Share on other sites More sharing options...
terencemace Posted June 23, 2023 Author Share Posted June 23, 2023 Yes, thanks both of you. Great ideas. Animatrix, you’re suggesting to use pcfind? Librarian, can you share that setup? It looks promising. T Quote Link to comment Share on other sites More sharing options...
Librarian Posted June 23, 2023 Share Posted June 23, 2023 Make the int attr on those points with N tangent or what you prefer ..and make this in p-resolve velocity middle in pop solver. Nice setup like velocity field ,its basically what @animatrix suggested.Have Fun Quote Link to comment Share on other sites More sharing options...
Atom Posted June 23, 2023 Share Posted June 23, 2023 (edited) I like using pop_steer_seek instead of pop_attract because it has a braking feature when approaching a goal. If you scatter equal number of points on the spheres, you can fetch the position of those points within the simulation and supply them as a goal that the input points will seek. ap_particles_attracted_separate_spheres.hiplc Edited June 23, 2023 by Atom 2 Quote Link to comment Share on other sites More sharing options...
terencemace Posted June 23, 2023 Author Share Posted June 23, 2023 Thanks Atom! Quote Link to comment Share on other sites More sharing options...
animatrix Posted June 24, 2023 Share Posted June 24, 2023 17 hours ago, terencemace said: Yes, thanks both of you. Great ideas. Animatrix, you’re suggesting to use pcfind? Librarian, can you share that setup? It looks promising. T Yes or you can use pcopen like @Librarian did. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.