Jump to content

Cloth constraint sim time


Dispel

Recommended Posts

So I have a static object, which I constrained a cloth object to, using the new FEM cloth solver stuff. I've been using the shelf tools..

As soon as I constrain one object to another, my sim time goes through the roof. Like from 30 seconds a frame to 60+ minutes per frame.

Having watched the SideFX cloth masterclass, it never seemed like the constraints affected performance much. Any ideas for me here?

Link to comment
Share on other sites

What is supposed to be the major difference between using a cloth-stitch-constraint and cloth-attach-constraint?

I'll try a stitch constraint instead. I was using the "cloth attach" shelf button, unawares that stitching might yield better performance.

Link to comment
Share on other sites

also, when I use the stitch cloth tool, I get an error complaining about "invalid literal for int() with base 10: "

"Traceback (most recent call last):
  File "dop_stitchconstraint", line 5, in <module>
  File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.21/houdini/python2.7libs\dopclothtoolutils.py", line 906, in createClothStitchConstraint
    constrainedPTgroup)
  File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.21/houdini/python2.7libs\dopsbdtoolutils.py", line 477, in generateSBDAttachmentGoalPTGroup
    constrainedPTgroup):
  File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.21/houdini/python2.7libs\dopsbdtoolutils.py", line 64, in selectedPointNumbers
    return [ int(pt) for pt in pts.split(" ") ]
ValueError: invalid literal for int() with base 10: ''

Link to comment
Share on other sites

The internal difference is the 'goal surface' node in the Stitch Cloth uses points and the Attach to Body 'goal surface' uses primitives groups it appears. I'm not sure which tool is the "cloth attach" shelf tool though, that one isn't in the Cloth shelf here.

What is supposed to be the major difference between using a cloth-stitch-constraint and cloth-attach-constraint?

I'll try a stitch constraint instead. I was using the "cloth attach" shelf button, unawares that stitching might yield better performance.

The Stitch Cloth shelf tool is working on OsX 13.0.248. Might be worth logging a bug with SideFX.

also, when I use the stitch cloth tool, I get an error complaining about "invalid literal for int() with base 10: "

"Traceback (most recent call last):
File "dop_stitchconstraint", line 5, in <module>
File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.21/houdini/python2.7libs\dopclothtoolutils.py", line 906, in createClothStitchConstraint
constrainedPTgroup)
File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.21/houdini/python2.7libs\dopsbdtoolutils.py", line 477, in generateSBDAttachmentGoalPTGroup
constrainedPTgroup):
File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.21/houdini/python2.7libs\dopsbdtoolutils.py", line 64, in selectedPointNumbers
return [ int(pt) for pt in pts.split(" ") ]
ValueError: invalid literal for int() with base 10: ''

Edit: Also just tested the Attach to Body and have the same speed processing - 19fps on the attached file.

AttachToBody.hip

Edited by tar
Link to comment
Share on other sites

Preliminary result, but moving to the new version seems to make at least one of my cloth attach constraints simulate MUCH faster. In fact, the impact of the constraint is barely noticeable now, I'm finding. Adding on the other constraints shortly.

Link to comment
Share on other sites

Looking at the bug fixes on the sidefx website, I find this:

Tuesday, November 5, 2013

Houdini 13.0.225: Fix for slowdown that sometimes occurred when the finite element solver runs out of linear solve iterations.

I'm guessing this is the culprit, as I was getting a warning to the effect of running past the linear solve limit.

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