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 the 3D visualization #1

Open
liusida opened this issue Dec 15, 2019 · 15 comments
Open

About the 3D visualization #1

liusida opened this issue Dec 15, 2019 · 15 comments
Assignees

Comments

@liusida
Copy link

liusida commented Dec 15, 2019

In README, I saw the 3D visualization of diffmpm3d.py is super cool
https://raw.githubusercontent.com/yuanming-hu/public_files/master/learning/difftaichi/diffmpm3d.gif

but when I try to reproduce the result, the code only produced .bin files. I am wondering if that visualization was produced by other software?

Thank you.

@yuanming-hu
Copy link
Member

That's rendered using https://github.com/yuanming-hu/difftaichi/blob/master/examples/diffmpm_renderer.py

However, this script is currently broken due to a recent compiler backend update. I'll fix this within the next week and please have fun with other examples. Sorry about that.

@yuanming-hu yuanming-hu self-assigned this Dec 16, 2019
@liusida
Copy link
Author

liusida commented Jan 6, 2020

Hi! ✋ just a reminder, the file "diffmpm_renderer.py" still produces this error:

No module named 'renderer_utils'

@masahi
Copy link

masahi commented Feb 1, 2020

Hi I also want to see some pretty pictures. Is this something that a complete beginner to taichi can take on? I see the visualization routine itself is written in taichi :)

@yuanming-hu
Copy link
Member

Hi guys, sorry about the delay. I'm recently refactoring Taichi for more compatibility and performance. I'll fix the renderer within 3 days. (Ping me again if I don't, thanks.)

@masahi
Copy link

masahi commented Feb 7, 2020

ping? No hurry for me, of course.

@yuanming-hu
Copy link
Member

oh sorry i've got too many things to do. Will try tonight/early next week.

@yuanming-hu
Copy link
Member

For those who are eager to render the particles: the working demo is https://github.com/taichi-dev/taichi/blob/cf77f936e3c084003dc80067fbdcba9762cfa5e3/examples/renderer.py

@liusida
Copy link
Author

liusida commented Feb 15, 2020

For those who are eager to render the particles: the working demo is https://github.com/taichi-dev/taichi/blob/cf77f936e3c084003dc80067fbdcba9762cfa5e3/examples/renderer.py

Thank you~

@masahi
Copy link

masahi commented Feb 15, 2020

For those who are eager to render the particles: the working demo is https://github.com/taichi-dev/taichi/blob/cf77f936e3c084003dc80067fbdcba9762cfa5e3/examples/renderer.py

hmm I tried examples/renderer.py with the latest taichi but it seems it is not an animation? Is this the expected result?

Screenshot from 2020-02-16 07-43-57

@yuanming-hu
Copy link
Member

Yeah this is just a bunch of random particles within a cube. Particle loading is not yet implemented. (Sorry I've got too many things to do recently...the particle output of diffmpm3d.py is recently updated for performance (1e9c804), yet I haven't got a chance to update the renderer to load it)

@masahi
Copy link

masahi commented Feb 15, 2020

Sorry I've got too many things to do recently

yeah I can imagine that, no problem :)

@zlyfunction
Copy link

Hi yuanming, is the visualization part working now? Thx

@Colin-J-Smith
Copy link

Hello! I'm also trying to visualize the diffmpm3d simulation example. Has there been any progress on this issue with the renderer? Is there currently a way to visualize the output .bin files?

@KraftOreo
Copy link

Hi Yuanming, I just tried out the diffmpm3d.py demo and others. The 2d diffmpm is truly remarkable, but still I cannot visualize the results of the 3d version. It's been another three years. Is there any chance that I can get a bin file renderer or that I can find some documentation about loading and rendering the bin files by myself? Thanks in advance for all your efforts! Looking forward to your reply!

@kambielawski
Copy link

I wanna second this ^ a renderer for diffmpm3d.py would be awesome.

Also grateful for the support & effort :)

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

7 participants