Jump to content
LukeLetellier

Wire Sim with Changing Point Count Source

Recommended Posts

I'd like to perform a dynamics simulation on a wire that I'm growing in length via SOPs, but the wire solver doesn't appear to be built to take in a changing-point-count polywire as an input, as everything goes haphazard very quickly. Is there a known work-around to this? 

 

Thanks,

Luke

Share this post


Link to post
Share on other sites

I've messed around with this occasionally, never got it working. Would love to know if there's an answer too!

 

 

Share this post


Link to post
Share on other sites
33 minutes ago, mestela said:

I've messed around with this occasionally, never got it working. Would love to know if there's an answer too!

 

 

Oh gosh, if you don't know, then I don't think anybody does! :D

  • Haha 1

Share this post


Link to post
Share on other sites

ha, hardly, i randomly push buttons and hassle others who actually know stuff, i have no deep insights into anything. :)

Share this post


Link to post
Share on other sites

Don't change the point count :) . You can do something like this, but in your case timeshift your curve to the last frame and match the animation with the carve instead: growingWire.hipnc

You could probably sim the wire with grains+constraints as well, might be a bit more forgiving with changing pointcounts given that it's just particles.

  • Like 1

Share this post


Link to post
Share on other sites
2 hours ago, Skybar said:

Don't change the point count :) . You can do something like this, but in your case timeshift your curve to the last frame and match the animation with the carve instead: growingWire.hipnc

You could probably sim the wire with grains+constraints as well, might be a bit more forgiving with changing pointcounts given that it's just particles.

Thanks for the file!

The latter option of a sim with grains & constraints sounds like the best possibility for what I'm after (something akin to a spider-man web-sling effect), but would still present a similar challenge. In my original setup (attached), a pop emitter shoots out initial particles, a wrangle draws wires from each emitted particle to their sourceptnum, the wire is resampled as it gets longer, and the result is fed into a DOP wire solver. But, with multiple wires being resampled simultaneously, the point numbers change, and the solver is no longer sure where one polywire end and the other begins. I'm guessing I'd run into a similar issue with PBD.

WireSim_Letellier.hipnc

Share this post


Link to post
Share on other sites

In that file, set the Resample to maximum segments instead of length. Then gives you a constant point count and it works.

  • Like 1

Share this post


Link to post
Share on other sites
4 hours ago, Skybar said:

In that file, set the Resample to maximum segments instead of length. Then gives you a constant point count and it works.

Thank you! After a few more adjustments, this is working great.

Edited by LukeLetellier

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×