Jump to content

Creating RBD constraints after frame one based off proximity to surface


eebling

Recommended Posts

Hi, I have been searching for a solution to this RBD problem for a few days now and can't seem to get this to work fully. I attached a scene file with some descriptions inside to help explain. The basic notion here is to dynamically create spring constraints when some packed rbd cubes get close enough to a collision sphere that is at the origin. 

 I can't seem to get the constraints to work unless they are created/exist on frame one. I create them inside a sopnet in the dopnet and use a sop solver to get them into the constraint network setup. Haven't tried creating constraints like this before so might be totally wrong in this approach. This setup works as long as all constraints are there on frame one, and then in the sop solver I set a high strength if the cube is close enough to the sphere, which semi locks the cube to the contact point on the sphere, which is what I want.

 However if you change the search radius on the wrangle node in the sopnet so that only the closest cubes to the sphere have constraints on frame one, then only those constraints ever evaluate. 

  Any help sorting this out would be appreciated. I couldn't find anything in other posts to help with this. Most posts I saw were about dynamically deleting constraints and not creating them after the sim is going.

 

Thanks


E

 

RBD_CONSTRAINT_TESTING_CLEAN_V2.hip

Edited by eebling
didnt finish typing it.!
Link to comment
Share on other sites

3 minutes ago, eebling said:

One of those would probably have the right stuff in the setup. Is there a hip file that comes along with the video somewhere.?

Looks like there is a link on his vimeo page. will have to see what's inside.

 

 

Link to comment
Share on other sites

6 minutes ago, fencer said:

Yes there is the hip

Hmm, so far the attached scene file only has the beginning "water" part of the video that is posted, the multiple spheres being launched into the flip fluid. I don't see anything in the file that are the letters or the rbd sticks towards the end of the video. Should have guessed since the scene file was called "water_rbd_tests" that it would be the water part. I'll keep looking.

 

Thanks

 

Link to comment
Share on other sites

1 minute ago, eebling said:

Hmm, so far the attached scene file only has the beginning "water" part of the video that is posted, the multiple spheres being launched into the flip fluid. I don't see anything in the file that are the letters or the rbd sticks towards the end of the video. Should have guessed since the scene file was called "water_rbd_tests" that it would be the water part. I'll keep looking.

 

Thanks

 

Disable fluid and switch, what you need in sopsolver.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...