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

About simulation time #17

Open
MontaEllis opened this issue Jul 3, 2024 · 15 comments
Open

About simulation time #17

MontaEllis opened this issue Jul 3, 2024 · 15 comments

Comments

@MontaEllis
Copy link

Great job! I'm curious, how long will the code take to run? I've been running the garment simulation code for about half a day, and it's still going!

@liminchen
Copy link
Contributor

Thanks!
Most examples should finish running in one or several hours. See timing table here:
Screen Shot 2024-07-03 at 09 41 12
https://github.com/KemengHuang/GPU_IPC has an efficient GPU implementation of our simulator, and it shuold be orders-of-magnitude faster.

@MontaEllis
Copy link
Author

It appears that there is no Python version...

@MontaEllis
Copy link
Author

It seems like the 5_garments demo will take a lot of time.

@liminchen
Copy link
Contributor

Is it getting stuck at a specific frame or just generally slow? Our code is only tested on Ubuntu with MKL compiled CHOLMOD, so using different environment may also cause performance differences.

@MontaEllis
Copy link
Author

How can I tell if it's stuck or not? I'm new to this and not very familiar with simulations. Your repository is my guide. I'm still learning and trying my best.

@liminchen
Copy link
Contributor

So the simulator will output an obj file for the result of each frame, and you can take a look at the files, if the last output file was a long time ago, much longer than the adjacent time interval between earlier output files, then it means it get stuck at this frame.

You could also take screenshot of the command line output here.

If you are new to simulation, I guess you may find https://phys-sim-book.github.io/ and https://github.com/phys-sim-book/solid-sim-tutorial helpful.

@MontaEllis
Copy link
Author

Thank you! I will read the physics simulation book carefully. Can I leave this issue open to ask more questions about garment simulation later?

@MontaEllis
Copy link
Author

Actually, I'm trying to reimplement PhysAvatar, a nice project using your great C-IPC.

@liminchen
Copy link
Contributor

Great! You can feel free to email me if you have followup questions. But note that sometimes I may be slow to reply :)

@MontaEllis
Copy link
Author

Should we determine the pinned vertices ourselves in the garment demo?

@liminchen
Copy link
Contributor

Yes, seams should be part of the input file, and dirichlet BC is set via python. Please see the example.

@MontaEllis
Copy link
Author

When I run the code, the initial results seem very strange. Could you provide some advice?

input:
image

image

results:
image

@MontaEllis
Copy link
Author

Also, I'm curious why the drape and stage are vertical?

@MontaEllis
Copy link
Author

I believe I followed the same structure as the demo, but the face might be incorrect. How should the face pattern and body be combined?

image

@MontaEllis
Copy link
Author

How do you achieve seams like this? I can't load it in Blender.

image

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