levi
Hello,
One thing that could be super useful is a weightPP attribute for the resolve point collision node, to give priority over which points move to accommodate other points.  This could allow for smaller/lighter objects to re-position themselves around larger/heavier objects.  I've found that using the radiusPP attribute can lead to larger objects getting pushed around more, since they are teamed up on by more numberous smaller points.

Or if there's a way to rig something up like this using existing nodes, please let me know 🙂
Reply 0 0
pshipkov
Good point. Will do.
Locking too.
Maybe priority by radius.
Reply 0 0
pshipkov
Actually this is already in place.
Check the attached file and turn-on/off the "mutual" option.
When "mutual" is on - the points with smaller radius value get pushed around by the ones with bigger radius.
It takes more steps for full resolve.
If you want to pin points completely - use the input components functionality.
Reply 0 0
levi
I was never quite sure what the mutual option was doing 😃.  Your example file may have gotten lost in the upload, but maybe I can offer this as a test case:

Here's a simple setup with points instanced along a curve, using a resolve point collision node to spread them out.   With a low point count it works well.
resolvePointCollisionSetup_v001.jpg
When the point count increases to the point where they are pushing each other in more extremes we get this:
resolvePointCollisionExample_v001.jpg 
With mutual off, the larger points float to the surface.  Even with mutual on they still tend to (iterations @ 512) - I'm guessing because their radiusPP isn't larger by enough of a magnitude to make up for the number of points influencing them.  Maybe for situations like these, a weight attribute could still be useful? 

I also tried using the input components to pin the larger shapes, which certainly prevents them from moving.  The downside is that the other points also ignore them so they are readily penetrated.

Anyway, thats my 2 cents.  Thanks as always!
Reply 0 0
pshipkov
Send me your file. I will use it as a test case to tweak the system further.
Reply 0 0
levi
You''re my hero!  Scene is attached - unfortunately it's a slice of a larger system I'm working on, so there's bunch of nodes in there that don't have a super obvious purpose.
Reply 0 0
pshipkov
Here is the result of the new option "radiusAffectsMass".
resolvePointCollisions.png 

Reply 0 0
pshipkov
Let me know if you need this sooner than later and i can provide you a custom build.
Reply 0 0
levi
so fast!  Do you even sleep??
This looks like exactly the result I was trying for.  A custom build would be amazing if I could trouble you for that.
Reply 0 0
pshipkov
I type fast ...
What is your Maya version and operating system ?
Reply 0 0
levi
the test machine I'm on is windows 10, maya 2017, but our studio is windows 7, maya 2018.  Any chance you could do a build for both?
Reply 0 0
pshipkov
http://www.petershipkov.com/temp/SOuP.zip

There are couple of new things as well that are intended for the upcoming release, they should be pretty stable already.
Reply 0 0
levi
will this .mll run in both maya 2017 and 2018? 
and Thank you!  This update is an unexpected godsend to the project we're working on.  Do you have a patreon or anything like that?  I'd love to buy you a beer / coffee or whatever.  Seriously, thank-you.
Reply 0 0
pshipkov
I can provide you another one for 2017 if you need one.

You are welcome.
Glad to hear we made positive difference here.
No need for a beer - you are a customer, that's more than enough.
Thanks.
Reply 0 0
Reply