measure different group Particle distance?

   3054   5   1
User Avatar
Member
8 posts
Joined: May 2013
Offline
Hope you guys have a good day!

Recently, I got some issues for measure distance in new POP network.

so I have group A particle and group B particle. They are moving together. In the group A, I got 50 particles and in the group B I got 10.

I tried the “distance” in the VEX, which is not work, because the group number is different. I tried search in here, found maybe point cloud search can work, But I built my own, which still not work.

Anyone can give me some idea about this? I will appreciate for that!!

Thank you guys ~

Attachments:
simple_dis_measure.hip (284.2 KB)

User Avatar
Member
8 posts
Joined: May 2013
Offline
no body?
User Avatar
Member
260 posts
Joined: July 2006
Offline
I bump this also, I may need to affect several groups attributes based on distance in DOPS. anyone ?
Head of CG @ MPC
CG Supervisor/ Sr. FX TD /
https://gumroad.com/timvfx [gumroad.com]
www.timucinozger.com
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
Do you wanna use this for crowd simulations , right ?
for example you wanna use each particle as agent , then they shouldn't hit together .

If yes , It's not logical to measure distance between each particles ,to do that you should measure distance for each particle with other particles on each frame and this is so hard and slow !!!

In the Crowd system softwares and tools such as Massive or Miarmy , they use another method for doing that ,Vision and Sound.

In the Houdini I think you should use Point Cloud :?
Let me to make a simple example for you ,Of course if I can :roll:
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
Of course implement Vision method in the Houdini with standard nodes and VEX nodes is very hard and really slow for too many agents.
you should do that with HDK (C++).

But if you like to know more about Vision method ,I made a Tutorial about Vision method for cmiVFX , But it's just for learning and I use this for only one agent :idea:

https://cmivfx.com/store/488-houdini+ai+vision+system [cmivfx.com]
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
8 posts
Joined: May 2013
Offline
Joker386
Do you wanna use this for crowd simulations , right ?
for example you wanna use each particle as agent , then they shouldn't hit together .

If yes , It's not logical to measure distance between each particles ,to do that you should measure distance for each particle with other particles on each frame and this is so hard and slow !!!

In the Crowd system softwares and tools such as Massive or Miarmy , they use another method for doing that ,Vision and Sound.

In the Houdini I think you should use Point Cloud :?
Let me to make a simple example for you ,Of course if I can :roll:



Hey Joker,

sorry for the late reply. yeah, the purpose for that group search distance is for make a flock system in particle system.

I tried to use PC open funcation, then use PC iterate function to search the group B information. but I must did something wrong ,the result for the pc open was not the one I want. if you know how to build the pc open, please please please help me with that.

But I tried to figure out in another way, in the pop dop solver, I can ask pop wrangle to looked at the sop information. so I turned the A group to a SDF information and ask B particle to measure the SDF data, if inside of volume A sphere, then ask B do something else.

This is a cheating way, but can work well, the radius of A volume sphere can control how much distance I can do the search.


I would like to know if anyone has a correct way (like how to do pc open in VEX) for this search.
  • Quick Links