samesami Posted October 21, 2021 Share Posted October 21, 2021 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 Quote Link to comment Share on other sites More sharing options...
TheHasen Posted October 21, 2021 Share Posted October 21, 2021 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 2 2 Quote Link to comment Share on other sites More sharing options...
samesami Posted October 21, 2021 Author Share Posted October 21, 2021 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 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.