Div Posted June 3, 2009 Share Posted June 3, 2009 (edited) Hi, I'm looking for a way to find neighbouring particles under vops, in order to make a crowd system. I've found the neighbour count vop and the neighbour vop but i can't get them working, i'm probably doing something wrong. Plus i don't know why there aren't a distance parameter to find neighbours... I can probably find another way by testing distance between the current particles and the other but i don't know how to get the other particles in the vop context... Thanks for your help. Cheers. Edited June 3, 2009 by Div Quote Link to comment Share on other sites More sharing options...
sam.h Posted June 3, 2009 Share Posted June 3, 2009 The best way I found was to use the point cloud functions in vex, found a good example here: http://www.3daet.com/pages/494/point_cloud_christmas/ Quote Link to comment Share on other sites More sharing options...
SpencerL Posted June 3, 2009 Share Posted June 3, 2009 If you are dealing with particles, cant you use a proximity POP and pass all the attributes that you need into your VOP POP? Quote Link to comment Share on other sites More sharing options...
Div Posted June 3, 2009 Author Share Posted June 3, 2009 (edited) Thanks sam.h, some impressive example, and a full of resources website, the point cloud method seems to be exaclty what i'm looking for, but i need to do it in pops as it will modify the particles' simulation and point clouds are only available in sops... And Spencer thanks too, but the proximity pop seems to give only for a particle its nearest particle's id and the distance between them, and i need to get all the particles near it. I also need to be able to get all the particles' position in order to modify their velocities according to each other for a cohesion / repulsion behaviour.... Edited June 3, 2009 by Div Quote Link to comment Share on other sites More sharing options...
Div Posted June 3, 2009 Author Share Posted June 3, 2009 (edited) sorry - duplicated post Edited June 3, 2009 by Div Quote Link to comment Share on other sites More sharing options...
brianburke Posted June 3, 2009 Share Posted June 3, 2009 (edited) Hi Div you could use a for loop to look at all the points in the system and get their distance from the current point. This is not as speedy or simple as the pointcloud method, but It'll do what you want it to do. neighborsandstuff.hip Edit: here's an example of that Edited June 4, 2009 by brianburke Quote Link to comment Share on other sites More sharing options...
sam.h Posted June 4, 2009 Share Posted June 4, 2009 Doesn't the proximity POP make groups for this? you can make a group for particles within a certain distance and then continue with your vop pop tomfoolery. from the help: Create Proximity Particle GroupsWhen this option is on, the operator creates new particle groups corresponding to each input particle, containing the particles closer than the Proximity Radius to that particle. Quote Link to comment Share on other sites More sharing options...
Div Posted June 4, 2009 Author Share Posted June 4, 2009 Thanks for your example, that's seems to be what i was looking for... I'm gonna study it. The main difficulty for me was to know how to access all the particles inside the vop network... Thanks sam, you're right i could use groups, but i think i will go for a full vop solution. i'll then make some test and see which method is speeder for calculations.... 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.