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 generate textured mesh videos? #3

Open
hbell99 opened this issue Jun 17, 2024 · 3 comments
Open

How to generate textured mesh videos? #3

hbell99 opened this issue Jun 17, 2024 · 3 comments

Comments

@hbell99
Copy link

hbell99 commented Jun 17, 2024

Hi, I reproduced the code and found that only videos of predicted particles are saved.
I wonder how to generate the textured mesh videos given the predicted particles?

@PingchuanMa
Copy link
Owner

This is a good question. MPM is a semi-particle-based method and thus there is not an underlying mesh. There are a few ways to simulate the effect though:

  1. Reconstruct the mesh and advect the mesh with the particles.
  2. A hacky but easy way is to simply add the original vertices in the msh into the particle set of MPM. The textured mesh will be automatically advect along with the particles.

In NCLaw paper, we used 2.

@ReFantasy
Copy link

We have a small confusion, we noticed that the volume of each particle is obtained by dividing the mesh volume by the number of particles. One issue is that volume sampling is not uniform, is this approach just an approximation?

@qlin72
Copy link

qlin72 commented Jan 26, 2025

Is there any specific code to generate the textured videos? Just confused because not able to find method 2. in the code.

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

4 participants