mattoverby / admm-elastic

ADMM ⊇ Projective Dynamics: Fast Simulation of Hyperelastic Models with Dynamic Constraints
Other
87 stars 20 forks source link

PDTriangleStrain not working? #1

Closed dukecyto closed 7 years ago

dukecyto commented 8 years ago

Hi,

Thanks for making all this public.

I am trying to use your code in a cloth-sim-like scenario, and PDTriangleStrain does not seem to do anything (did not move vertices at all). I switched to LimitedTriangleStrain, and now I am getting the expected result. Could this be a bug?

mattoverby commented 8 years ago

Thanks for your interest :). Are you trying to set it through the xml configuration file or manually adding the PDTriangleStrain forces? If it's the former, take a look at the "pdstyle" force in the windy flag sample. The interface unintuitive, sorry about that. If it's the latter, I'm not sure. I just tested it and the windy flag sample with PDTriangleStrain still works.

dukecyto commented 8 years ago

Thanks Matt, and sorry for not being so specific about my current set-up. I wanted to quickly check if this is a known limitation or not. I am manually setting the *TriangleStrain forces in my program (Maya plug-in). For this prototype I am just hard coding the mass to 1.0 for all nodes, stiffness to 1000 for all triangles. The stiffness might be too high compared to your flag example, but the same parameters worked fine for LimitedTriangleStrain. Let me email you a bit more in depth about my project.

dukecyto commented 7 years ago

Now I have a better understanding of what limit_min and limit_max does under the hood - I set both of them to 1, and I got the expected result. Thank you for your help! Please close this issue.