Jump to content

Confining RBD simulation inside volume


Doum

Recommended Posts

I'm still at the beginning of learning houdini. I just builded a brickwall and did a basic simulation

I'm searching a way to limit the rbd to simulate only what I can see in the camera. I think I need way to check if a rbd object is still inside a geo or outside and use the active node to make the one outside inactive?

First do you think it will optimise the simulation time, if not Is there a better way to decrease simulation time by not simulating what we are not seeing in the camera...

Thanks in advance for your input.

Doum

Edited by Doum
Link to comment
Share on other sites

one option is to use the active value node and group objects by expressions. Just use and dopoption expression in the object position, and set a threshold for that. If I´m not mistaken, to get the object centroid you must add its pivot to its translation

Link to comment
Share on other sites

I can think of two issues with this method:

1) If the camera is moving, some object might be deactivated in the beginning of the shot so when they finally get framed by the camera and become active their behavior might be inaccurate.

2) Some objects that were outside the FOV might enter it as a result of a chain reaction, supposing all the objects are being simulated all the time. Again, if they are disabled for being out of the FOV they might never appear in camera.

To solve the initial problem I'd suggest a first pass using a SOP solver to detect if an object will ever be on camera and storing that as an attribute. Then use that attribute in a DOPs sim to activate the objects that will ever be framed in the shot all the time. Does it make sense?

Cheers

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