RBD bullet SOP solver simulating points off

   1524   3   2
User Avatar
Member
3 posts
Joined: 8月 2017
Offline
Hello everyone,

I have an issue regarding my cache of simulating points. I have two simulations, one influencing the second one. The first one is there to get the main motion, on the second one I just picked a few pieces and refractured them. So basically I want these more tiny pieces following the main simulation and then get activated at some point. I use the "deforming" attribute to drive the animation. However when I do a point simulation cache for the second one, the simulations points are completely off.

I attached a file to demonstrate what I want to achieve. The first set up is working but caching the geometry would be really heavy for a complex scene. Which is why I'd prefer using the second set up but using a transform pieces produce a wrong result, and I can't figure out why...

Thank you in advance for your help.

Attachments:
two_step_Fracturing_Simulation.hiplc (1.4 MB)
set_up.png (78.4 KB)

User Avatar
Member
8 posts
Joined: 6月 2015
Offline
Hey, I actually did a test scene about this topic. I'm not using deforming pieces, that will slow down the sim quite a lot comparing to animated ones.
I think is working pretty good, hope it helps.

Attachments:
pvilla-rbd_twoPassesSim-v001.hiplc (1.5 MB)

User Avatar
スタッフ
404 posts
Joined: 2月 2008
Offline
Here's one way of optimising and circumventing the transform offset you're seeing. By adding the RBD Configure before transforming the newly fractured geometry, you can simply make the pieces "animated" instead of "deforming". You just need to make sure to preserve the pieces' previous name so you can transform them accordingly after packing.
This will perform a lot better than using deforming RBDs since the internal rbd geometry doesn't need to be rebuilt on every frame.

The problem you're experiencing with deforming RBDs is that they are getting re-packed on every frame, and thus their relative pivot is changing. So when you freeze the geometry output and try and use the simulation points to transform those pieces, you are losing this change in pivot and not compensating for it. You need to transform the deforming input geometry, until it no longer is deforming (when it switches to being active), at which point the internal rbd geometry stops being updated, so you need to stop updating the geometry you're transforming also - the timeshift SOP set to min($F, 15) does this since you are switching from deforming to animated on frame 15.

Here's a fixed hipfile with both the animated method, and a solution to make it work with the deforming RBDs.

Attachments:
two_step_Fracturing_Simulation_FIX.hiplc (1.4 MB)

User Avatar
Member
3 posts
Joined: 8月 2017
Offline
Oh wow I wouldn't have found the solution on my own! Your replies were REALLY helpful!! And I can save so much space on my hard drive now . I couldn't say better than thank you SOOO MUCH!!!
  • Quick Links