-
Notifications
You must be signed in to change notification settings - Fork 116
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
Export 3D animation to files? #36
Comments
Hi John! The array property of the Eigenstates object (an instance is returned by H.solve on line 22 of 3D_four_gaussian_wells.py) contains all of the wave function data. For 3D systems Searching around, I think the module pygltflib can help you with GLTF files, but I’ve never actually used it. Personally, at least for the initial prototype I would try Plotly first since it’s a browser-based renderer that works directly with Python. |
Thanks so much for the advice. Working on some different angle based on your suggestions. In particular I'm trying to see if perhaps I can just get Mayavi to export transparent PNGs but control the 3D angle being viewed for each state for each frame exported. I only want the 3D visualization itself, not the border box or axes labels, so just having to get to know Mayavi better to control that and even see if transparent PNGs are possible. I'd also need to try to control the colors being used. The goal is to overlay this imagery into live video edits so having the transparent PNGs is key. Also, it's been VERY difficult to get the First do... FYI, here it is running on Windows 11 natively, not in WSL2. |
Also, I added a cache so I could keep re-running examples without always computing. I had to place cache.py into the Here is the contents of cache.py
Then in any file where you want to cache, like in 3D_hydrogen_atom.py, you change the line:
To the lines:
|
Hi there,
I'm wondering if there might be a way to export the 3D Two Gaussian Wells to 3D files like STEP, STL, FBX, or GLTF. I realize it's a probability cloud so the edges of the 3D object are fuzzy, but perhaps there's a cut-off to "pick" an edge of the 3D coordinates to have that be what represents a final solid 3D output.
We're trying to import the 3D Two Gaussian Wells animation that you have so beautifully visualized here into BabylonJS so it can be easier played with inside that environment. The most native file BabylonJS supports is GLTF and those file formats can even include animation timelines now.
Thanks for the help, if any.
-John
The text was updated successfully, but these errors were encountered: