yuko Posted April 13, 2018 Share Posted April 13, 2018 Hi all! I'm doing a rope sim with wire solver. And I wanna interact wire with RBD sim. I did each sim at the same time in the same DOP network. But it was not doing well. problems are... 1.Why the wire goes through the cube? 2.Why the cube breaks before the wire hits? Any solutions? Thanks. WireBullet_test.hip Quote Link to comment Share on other sites More sharing options...
StepbyStepVFX Posted April 13, 2018 Share Posted April 13, 2018 (edited) This is a collider issue. That can be solved, but in the end, the wire can be influenced by the RBD, but RBD don’t really work with the wiresolver back... Maybe that can work for your setup, but otherwise, you will have to cheat, by making two different simulations or find a workaround (with a SOP solver ?). Check this video where Jeff Wagner explains why it’s not working properly (around 1h42...). Sorry for the bad news... Edited April 13, 2018 by StepbyStepVFX Quote Link to comment Share on other sites More sharing options...
yuko Posted April 13, 2018 Author Share Posted April 13, 2018 Hi, JO. Thank you for your early reply. hmm...I can't image a way to cheat yet, but I'll search that as possible. And I'll check the video too. Thanks! Quote Link to comment Share on other sites More sharing options...
StepbyStepVFX Posted April 13, 2018 Share Posted April 13, 2018 3 hours ago, yuko said: Hi, JO. Thank you for your early reply. hmm...I can't image a way to cheat yet, but I'll search that as possible. And I'll check the video too. Thanks! What do you want to achieve ? you want the wire to destroy the object, right ? I would simulate the wire first, without collider, then "thicken" it (with polywire or anything else), cache that animation, and use it in a second sim as a collider to destroy the fractured object (you'll probably have to fracture the wire itself to create proper convex fragments). And if you want better realism, you iterate with a second pass : you use the cached animation of the object fractured by the wire as a collider for a new wire simulation, to get a better interaction. So in short : wire sim first (alone, just one wire solver), RBD sim in second using a cached polywire from the first sim (so just RBD solver and static solver), and a second wire sim (just wire solver and static solver). Quote Link to comment Share on other sites More sharing options...
yuko Posted April 13, 2018 Author Share Posted April 13, 2018 18 minutes ago, StepbyStepVFX said: What do you want to achieve ? you want the wire to destroy the object, right ? I would simulate the wire first, without collider, then "thicken" it (with polywire or anything else), cache that animation, and use it in a second sim as a collider to destroy the fractured object (you'll probably have to fracture the wire itself to create proper convex fragments). And if you want better realism, you iterate with a second pass : you use the cached animation of the object fractured by the wire as a collider for a new wire simulation, to get a better interaction. So in short : wire sim first (alone, just one wire solver), RBD sim in second using a cached polywire from the first sim (so just RBD solver and static solver), and a second wire sim (just wire solver and static solver). Yeah, you're right and I'm just taking the process that you said. I don't know why but wire (second sim) didn't collide with the fractured object. I have to see the video you posted before carefully.(because I'm not good at hearing English...) Thanks a lot, JO!! Quote Link to comment Share on other sites More sharing options...
Andrea Posted April 15, 2018 Share Posted April 15, 2018 It is possible to make them collide in the same dop network, or at least to make the wire affect the packed geometry simulation. For the collision from RBD to wire I haven't found a stable solution yet that can work with complex geometry. I've tried recreate your scene with just the wire hitting a thin fragmented wall and looks like some collisions happen after 30-40 frames the wire pass through the wall. Anyway wire can collide with RBD non packed objects. Packed RBD I don't think can collide directly with wires. So you have just to add an intermediate step. First I've disabled the direct collisions between wire and packedgeo. Then I've added two RBD objects one for the wire and one for the rbdpackedobject. You can add here the collision geometry you prefer. For example: in the rbdobject1 I've make it editable, and inside in defaulgeo I've imported the wireobject and copied/packed to every point one sphere. At the DOP network level of the rbdobject1 put "deforming object" ON and "active object" OFF, so it updates every frame. Everything else you can modify it as you prefer. Same thing with the RBD object of the wire. The only difference is that here there are the usual problems with the collision geometry of fragmented objects. Inside its defaultobject I've used collision source for generate a VDB volume, and I think it's the most accurate. Just an idea, maybe someone here on the forum have a better solution. COLLISION GEOMETRY OF THE WIRE: ONE WAY COLLISION: MUTUAL COLLISION: 1 Quote Link to comment Share on other sites More sharing options...
yuko Posted April 16, 2018 Author Share Posted April 16, 2018 Thank you for the reply, Andrea. I think I could understand your idea, but I haven't tried that in my scene. If possible, would you post your hip file? Thanks. Quote Link to comment Share on other sites More sharing options...
Andrea Posted April 16, 2018 Share Posted April 16, 2018 (edited) Sure. Should be in yellow the things I've modified from your scene WireBullet_test_withRBD.hip Edited April 16, 2018 by Andrea Quote Link to comment Share on other sites More sharing options...
yuko Posted April 16, 2018 Author Share Posted April 16, 2018 22 minutes ago, Andrea said: Sure. Should be in yellow the things I've modified from your scene WireBullet_test_withRBD.hip Thank you so much! I can't see the file now, but I'll check the scene soon! Quote Link to comment Share on other sites More sharing options...
Andrea Posted April 17, 2018 Share Posted April 17, 2018 23 hours ago, yuko said: Thank you so much! I can't see the file now, but I'll check the scene soon! ok! Let me know if you have any questions Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.