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

Elementary questions for decomposing nonconvex shape models in V-HACD #127

Open
miyukin73 opened this issue Sep 27, 2022 · 3 comments
Open

Comments

@miyukin73
Copy link

Hello,

I would like to use Mujoco to simulate pouring a cup with a sphere inside it using a file of my own cup.

Cup0927.zip

However, I learned that since the cup is a non-convex model, the sphere will not fit inside the cup as it is due to a wrong collision determination as shown in the image below, and I have to discompose the cup into convex models.
image

So I saw this V-HACD here, but is it possible to deal with the above problem?
Also, I am very sorry to trouble you, but I am a beginner and do not know how to use it well, so I would very much appreciate it if you could tell me how to write a program to solve this problem.

Thank you in advance!

@jratcliff63367
Copy link
Collaborator

I just ran V-HACD on your cup model and it produces reasonable results. Realize it won't be perfectly smooth since V-HACD is inherently an approximation. That said, it should likely be sufficient for your needs.

cup

@miyukin73
Copy link
Author

Hello, @jratcliff63367

Thank you very much for taking the time to check my model.

May I ask what kind of program you wrote to run V-HACD?

I would appreciate it if you could tell us as I could not understand it well even after reading the README and other documents.

Also, I got the impression from the attached photo that the image is very finely divided, but I wonder if it could be smoothed out a bit if it were set coarser...?

I would appreciate it if you could also tell me how to set the settings.

Thank you very much for your time.

@jratcliff63367
Copy link
Collaborator

V-HACD is a library that needs to be integrated into your toolchain. It is integrated into NVIDIA Omniverse and Unreal Engine. Whatever simulation tool you are using would need an engineer to integrate V-HACD into it.

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