Including objects into simulation one by one

   3649   4   0
User Avatar
Member
109 posts
Joined: June 2008
Offline
Im trying to add/include objects into Rigid body simulation gradually…

In the attached scene, i have 8 spheres, which im trying to add into simulation using the nodes that were created when using RBO Fractured Object-tool. My goal was to simulate a bridge that is crumbling behind a hero (= sphere )

First i created a “name”-primitive attribute: Voronoi fracturing seems to create it, and the Dop import/RBO Fractured object nodes seems to require it.

Then i created another, “useInSim”-point attribute: my intention was to use this in DOP network, to control which objects are active in simulation.

But it doesnt work

It seems that the “useInSim” attribute is always 0 (Details view in DOP) and still the objects are included into simulation.

What is the correct way to do this? How can we add/include objects into simulation one by one?

And one more thing: when i checked the “useInSim” attribute in DOP network, it was always 0. But in the same frame, in the SOP level, it was set to 1, as expected?!?!

Attachments:
test.hipnc (222.0 KB)

User Avatar
Member
696 posts
Joined: March 2009
Offline
Here's one way to do it, although it's not perfect because I had to enable the “Use Deforming Geometry” (so that the SOP attributes get updated, as per your last question), which might not always work for your needs.
Anyway, hope it helps.

Cheers

Attachments:
test_100.hipnc (235.6 KB)

Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
109 posts
Joined: June 2008
Offline
Haaa, niiice!

A question, if i may: where does this $NAME variable comes from? The one that you are using in the partition1 rule-fiedl.
User Avatar
Member
696 posts
Joined: March 2009
Offline
You created that name attribute yourself
Right before the the copy SOP, on the left input, I just took advantage of it.

Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
109 posts
Joined: June 2008
Offline
Ah - “name” == “$NAME”
Thank you!
  • Quick Links