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

make MarchingCube spheres smaller? #31

Open
charlotte12l opened this issue Dec 6, 2020 · 2 comments
Open

make MarchingCube spheres smaller? #31

charlotte12l opened this issue Dec 6, 2020 · 2 comments

Comments

@charlotte12l
Copy link

Thank you so much for your taichi-three implementations! That's really helpful.

I'm doing MPM-based snow simulation and rendering, and the rendering part is similar to your mciso_mpm.py. However, I found the rendered spheres are too large which makes my snow look too much? It's just a small snowball and after it crashed the ground, there shouldn't be so much snow in the scene... How can I make the marching cube spheres smaller? Thanks!

Here is a video of my demo: https://drive.google.com/file/d/1poawdz1oJxccJgpSnk-RjbDGKhlQawt9/view?usp=sharing

@charlotte12l
Copy link
Author

Oh, I find if I increase the N in MCISO, the spheres would become smaller but the surface is not smooth anymore.

@archibate
Copy link
Collaborator

archibate commented Dec 8, 2020

You may specify a larger radius for voxelizer to make balls larger:

vox = Voxelizer(N=xxx, radius=6)

The default radius is 2. This radius is used for gaussian blur to spread voxels out.

Also, try increase the throttle if single particle easily get disappeared / decrease if single particle becoming too large:

vox = Voxelizer(N=xxx, radius=6, throttle=xxx)

The default throttle is 18.

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