Jump to content

Merging RBDs during Simulation


m-egger

Recommended Posts

Hey! So I've got challenge for the DOP-people here. I'm currently trying to merge Objects while they are colliding for a seperate shot. This is the fun Little Setup that it's for:
 
clash_rbd.thumb.gif.83e5bb4d782ebf5b9c465c5fd25e0915.gif
 
My base setup for testing this in a secluded file is a DOP net with some packed objects in it and all I want to do for now in a SOP-solver is:
1) Unpack Them.
2) Pack Them again.
3) Have the simulation continue as without the solver.
And then I'll add some magic between 1) and 2).
 
I attached this test-file. The behaviour I get right now is:
weird.thumb.gif.a9df46c5150efee2976f023a8c34dc24.gif
[Narrow Part: Just transferring Name and then using a Attribute-Copy node to get it from the original geo]
[Wide Part: * in Transfer Attributes Parameter on Unpack/Pack node]
 
But for some reason I get really jumpy behaviour - and I kind of struggle finding out what's causing this. I've tried everything - that came to my mind - in getting the attributes from the input geo to the output geo.
I'm pretty sure there's something going on with the intrinsics that I can't really find out. And the pivot, apparently.
 
Maybe someone knows what's going on!
Thanks,
 
Martin
Edited by tortoise
Link to comment
Share on other sites

Awesome! I didn't try the combined Version of transferring all Attributes and THEN using the attcopy. So Overkill apparently works sometimes. :D

Thanks a bunch.

Now I should be able to handle the rest. I set up a System in the other SOP-solver that wasn't connected in my file to loop over all collisions, filtering out the currently colliding ones to make them merge into new ones.

weird_02.gif.f1948757aeb773f10c619886b0adf782.gif

At the Moment they're just subdived. So that's Progress at least. :D

collidemerge_v04.hipnc

 

Cheers,
Martin

Edited by tortoise
Link to comment
Share on other sites

Cool stuff!

It should work, and probably is better, to just write the name attribute when you unpack-pack. If, when you are packing the geometry, you are also writing to it some attributes that you created in-between and that DOP doesn't like, the sim might go crazy

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