nCloth: glueStrength vs. glueStrengthScale

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  07 July 2013
nCloth: glueStrength vs. glueStrengthScale

Hey guys!

I'm having trouble wrapping my head around the difference between glueStrength and glueStrengthScale.
The documentation mentions that glueStrengthScale adjusts the distance that the constraint needs to separate before it breaks.
But if it's distance-based, then what's the need for the regular glueStrength?

How do these parameters affect each other and what are the exact conditions for a constraint to break?

I'm using vertex colors a lot to make constraints rip/break over time and I usually have to iterate quite a bit on the painting and work with exponential curves on the glueStrength to get close to what I want.
Is there a setup that allows for precise control of when a constraint breaks - without having to manually place hundrets of them?

Working with 3dsmax 2012 & maya 2014 on Win 7 64bit
  07 July 2013
The scale is just a multiplier of the glue strength value. It is simply so you can put the glue strength in a range where it is easier to edit.

The regular glue strength is distance based... the difference in position between the desired constrained position and the position after other constraints (like stretch resistance) have pulled on the point. This difference is a simple measure of strain.

With stress based snapping it is hard to predict the exact moment of failure, and it depends on a lot of factors, such as substeps and stretch resistance. If instead you want exactly predictable breaking you could use an animated map on contraint strength where it suddently goes to zero where you want it to snap. ( you could also map glue strength as an animated map, but it is not really necessary to use glue strength at all if you are manually animated the strength to zero when you want it to snap ).

Last edited by Duncan : 07 July 2013 at 08:24 PM.
  07 July 2013
Thanks for sheding some light on this, Duncan!

I haven't considered using an animated map so far. I'll give that a shot.
Can I key the constraint vertex color set or what's the best to do this?

Also, can I think of the glue strength in terms of world units then?
Like: breakDistance = glueStrength * glueStrengthScale * glueStrengthMap

I did a test with identically painted glueStrengthMaps. In one I animated glueStrength from 50 down to 0 in the other I did it with glueStrengthScale.
In the case with animated glueStrength, all constraints broke almost exactly when glueStrength turned very low. In the glueStrengthScale case, the broke at different times, depending on their glueStrengthMap color.

I feel like one is behaving differently from the other, which is why I'm asking.
Working with 3dsmax 2012 & maya 2014 on Win 7 64bit
  07 July 2013
One is a multiplier, so if you animate the scale the effective glue strength will change at a different rate than if you animate the glue strength directly.

effectiveGlueStrength = glueStrength * glueStrengthScale

However the initial intent was that one would not animate glue strength but set it to the value where the natural stress on the cloth would tear based on forces.

I don't think you can key the per vertex values. Instead you could try mapping with something like a ramp texture then animating that. One could also use an animated image sequence on a file texture.
  07 July 2013
Thanks again, Duncan!

I ended up animating glueStrengthScale. It's still a bit tricky, but more predictable than glueStrength and quicker to iterate on that an animated texture.

Working with 3dsmax 2012 & maya 2014 on Win 7 64bit
  07 July 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 03:59 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.