Jump to content
samesami

Variable Surface Tension

Recommended Posts

Screenshot_15.thumb.jpg.0585b82cb6d026b51d97d6168e16474a.jpg

Can somebody please help me with this surface tension problem. I  have a scene and i want a different surface tension to apply to different group as show above. I want the group 1 to have higher surface tension  and group 3 to have a lower surface tension but my setup is not working .

SurfaceTension.hipnc

Share this post


Link to post
Share on other sites

I think the problem is that the groups and attributes you define for each bounding box carry over to the next frame. For example with your setup, once a particle was inside group1 it will always have the 'mygroup1=1' attribute from that point on even if it is not in the bounding box of group1 anymore. That means that the field used to scale the surface tension with is not limited to its bounding box. So once particles reach f.e. group3 their surface tension is still under the influence of the surface tension node from group1, since the according field hangs still around even after it leaves group1. (you can see this from your scalar visualisation nodes. They dont have the specified colors but their colors mix once they overlap with another colored field.)

Made some minor changes to your hipfile. Pretty much only had to copy & your popgroup nodes into a sopsolver and delete the incoming 'mygroup1,2 and 3' attributes so they can be calculated from scratch and dont cary over to the next bounding box.

SurfaceTension_recovered.hipnc

  • Like 2
  • Thanks 2

Share this post


Link to post
Share on other sites
1 hour ago, TheHasen said:

I think the problem is that the groups and attributes you define for each bounding box carry over to the next frame. For example with your setup, once a particle was inside group1 it will always have the 'mygroup1=1' attribute from that point on even if it is not in the bounding box of group1 anymore. That means that the field used to scale the surface tension with is not limited to its bounding box. So once particles reach f.e. group3 their surface tension is still under the influence of the surface tension node from group1, since the according field hangs still around even after it leaves group1. (you can see this from your scalar visualisation nodes. They dont have the specified colors but their colors mix once they overlap with another colored field.)

Made some minor changes to your hipfile. Pretty much only had to copy & your popgroup nodes into a sopsolver and delete the incoming 'mygroup1,2 and 3' attributes so they can be calculated from scratch and dont cary over to the next bounding box.

SurfaceTension_recovered.hipnc

Thank you, that's exactly what i was looking for

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×