Jump to content

RBD Packed Object in dops: Overiding the s@bullet_georep possible?


Recommended Posts

I want to define individual pack primitive's geometry representation in sops with an attribwrangle and string value.

If you dive inside the rbdpackedobject there is a bulletdata node with a dropdown list (Parameter is bullet_georep). I can edit the expression on the dropdownlist and put a simple string token "convexhull" or "concave" and it updates fine.

 

I just cant seem to pass a string attribute I created to override the expression. @mystringvalue shows up in the geometry's attributes, but i cant wire my attribute in to override the string token. Am i missing something super simple here or is this the wrong place to override it?

 

Cheers

 

 

 

 

Link to comment
Share on other sites

There currently isn't a way to specify the geometry representation per packed primitive (all of the supported point attributes are listed at http://www.sidefx.com/docs/houdini13.0/nodes/dop/rbdpackedobject). A workaround would be to split the convex and concave pieces between two different RBD Packed Objects with the geometry representation parameter set accordingly.

Link to comment
Share on other sites

  • 5 years later...

This is the first result on google, so just wanted to tell that it is possible since H15: https://www.sidefx.com/docs/houdini/news/15/dynamics.html

I also haven't found a better way, but if you change the bullet_georep during the simulation you need to reset the "id" attribute for it to work properly. For example I'm emitting stuff as "convexhull", and when they reach a certain threshold I switch them to "box". At the same time as I set bullet_georep to "box", I also set id = -1 (only once, when the change happens) to make it force update. This will of course create a new set of ids on our packed prims (they will change), so be careful if you use it to identify a specific packed prim later on - either set up a new static index in another attribute or use name.

  • Like 1
Link to comment
Share on other sites

  • 2 years later...

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...