Jump to content

RBD Glue Constraint Mysteries....


eebling

Recommended Posts

Well, I went out into the RBD Constraint Forest Unprepared, and now I am lost in the woods. Any help would be appreciated. I'm trying to do something that should be fairly simple, and most likely is, but I don't have the combination to the Houdini lock to get the setup to work.

In the example file I have an rbd box that has 10 faces per side that have been made into unique faces. They have glue constraints holding them together and are a rbdPacked object in my dopnet. There is a low rez smoke sim that pushes this rbd box into a collision sphere that is above it, and when the geometry collides with the sphere, some of the glue constraints start to break. All I wish to do is apply either a gravity force or a popForce to these rbd pieces that have lost their Glue constraint. I want the main chunk of the rbd box that still has a bunch of pieces glued together to keep on moving with no gravity or popforce.

 I might be trying to go about this the complete "wrong" way since I have very little experience with Glue constraints, But I see data in the geometry spreadsheet while in the dop net called ConstraintGeometry and this has a primitive group called "broken" which contains the glue constraints that have been broken due to collision. I would think I would want to try finding out which rbd piece that broken constraint belongs to and then use that to create an "applyGravity" group of rbd pieces so that I can do what I want to do. I just don't know how to do this in dops. 

Is this something that needs to be done in a sopSolver or geometry wrangle or....? I'm not to familiar with how to read data from the ConstraintGeometry and apply it to the Geometry data. When I middle click over my rbdsolver, it shows the main rbdpackedobj1 with Geometry and then CosntraintGeometry below it. They are like separate entities and I'm not sure the best way to get access to both in one node, if this is even the way to do it.? For example if I change a geometry wrangle to point to "ConstraintGeometry" instead of the default "Geometry", I can then read and manipulate data on the ConstraintGeometry, but then don't have access to the main rbd "Geometry" that I am use to normally working with. 

 Like everything in Houdini, there are probably dozens of ways to go about this, I tried about 20 yesterday, without ever getting one to fully work. I ran out of search phrase ideas to try throwing at google after about the 6th hour of searching. Maybe using some of those copyData and applyData nodes would get the ConstraintGeometry data onto the Geometry stream so they can both be read in one wrangle or maybe that too is a completely wrong direction to take. I don't want to speculate any further since you could try things for a week and not get it to work if it just isn't the right approach. I love Houdini for its vastness and unbelievable tool set, but man, it can destroy you if you don't know how to do what you want to do, and can't articulate it well enough for a search string.!

 

Thanks for any help.

 

rbd_constraints_v01.hip

Link to comment
Share on other sites

Here is your scene with some stuff added.

Primitives switch to red when they enter in the group "isbroken" which means that the popforce affects them. The volume velocities affect just the primitives that aren't in the group.  

The group is created in the sopnet inside the Dop network. Here the wrangle checks if the constraints are broken or not every frame. If the constraint is broken then the primitive is in the group "isbroken". The result of this is loaded in DOP through the SOP solver

 

rbd_constraints_test00.hip

 

  • Thanks 2
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...