Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set param in FabricConfiguration? #14

Open
sihengz02 opened this issue Nov 8, 2022 · 2 comments
Open

How to set param in FabricConfiguration? #14

sihengz02 opened this issue Nov 8, 2022 · 2 comments

Comments

@sihengz02
Copy link

sihengz02 commented Nov 8, 2022

Hi, YIfei.

I'm tring to add a tie in this simulator and I notice that the simulation results differ greatly as I change params k_stiff_stretching, k_stiff_bending and density in FabricConfiguration (src/code/optimization/OptimizationTaskConfigurations.cpp), which are closely related to the material of cloth.

So, generally, how can I specify the value of these three params when I try to add a new type of cloth?

@omegaiota
Copy link
Owner

Hi,
My experience was that the bending stiffness is a very strong force so minimal changes will result in drastic change in the cloth's behavior and should be kept at a very small value; k_stretching and density shouldn't be as sensitive. Let me know if you have further questions. Also I actually implemented a GUI window that let's you play with different material configs interactively for forward simulation in the code but I hid the entry for it in the current released version. If you think that would be helpful I can try clean it up and release it.

@sihengz02
Copy link
Author

Thanks for your insights.

It will be helpful for me if the author can release this interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants