difftaichi icon indicating copy to clipboard operation
difftaichi copied to clipboard

About the 3D visualization

Open liusida opened this issue 6 years ago • 16 comments

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.

liusida avatar Dec 15 '19 22:12 liusida

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 avatar Dec 16 '19 00:12 yuanming-hu

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

No module named 'renderer_utils'

liusida avatar Jan 06 '20 19:01 liusida

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 :)

masahi avatar Feb 01 '20 05:02 masahi

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.)

yuanming-hu avatar Feb 01 '20 17:02 yuanming-hu

ping? No hurry for me, of course.

masahi avatar Feb 07 '20 21:02 masahi

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

yuanming-hu avatar Feb 07 '20 21:02 yuanming-hu

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

yuanming-hu avatar Feb 15 '20 21:02 yuanming-hu

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~

liusida avatar Feb 15 '20 22:02 liusida

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

masahi avatar Feb 15 '20 22:02 masahi

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 (https://github.com/yuanming-hu/difftaichi/commit/1e9c804cf721a9c02301c7ff29d92cc8df0e14f6), yet I haven't got a chance to update the renderer to load it)

yuanming-hu avatar Feb 15 '20 22:02 yuanming-hu

Sorry I've got too many things to do recently

yeah I can imagine that, no problem :)

masahi avatar Feb 15 '20 23:02 masahi

Hi yuanming, is the visualization part working now? Thx

zlyfunction avatar Mar 24 '20 19:03 zlyfunction

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?

Colin-J-Smith avatar Aug 31 '20 19:08 Colin-J-Smith

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!

DuoZhangRobotics avatar Feb 03 '23 05:02 DuoZhangRobotics

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

Also grateful for the support & effort :)

kambielawski avatar Mar 21 '23 01:03 kambielawski