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

Rendering NGLView trajectories as images or movies #51

Open
cxhernandez opened this issue Sep 18, 2016 · 3 comments
Open

Rendering NGLView trajectories as images or movies #51

cxhernandez opened this issue Sep 18, 2016 · 3 comments
Labels
Milestone

Comments

@cxhernandez
Copy link
Member

cxhernandez commented Sep 18, 2016

https://github.com/arose/nglview/blob/a0814a824b13065b130044ca271ee19faad2d2aa/nglview/tests/notebooks/export_image.ipynb

This is pretty sweet. And would be useful for interactive movie-making.

@arose, @hainm: This might be a dumb question, but would it at all possible to render images independent of the notebook? Would something like a headless browser work?

@cxhernandez cxhernandez changed the title NGLView can save images in notebook Rendering NGLView trajectories as images or movies Sep 18, 2016
@hainm
Copy link

hainm commented Sep 18, 2016

@cxhernandez it's in @arose TODO list. Please check this issue. I will ping you when the feature is available.

For movie making, I made an complete example here: (for amber users but should work for others):
http://ambermd.org/tutorials/analysis/tutorial_notebooks/nglview_movie/

And if you check out the nglview dev version, you can use the GUI to save a series of images.
(I think this is shortest solution to make a movie for now):

nglview

@hainm
Copy link

hainm commented Sep 18, 2016

alternatively, you can try 'mdsrv' (which uses NGL for rendering too).

I made changes from @arose' repo to work with pytraj and NGL-dev version. But you can change a bit to use it with mdtraj: https://github.com/Amber-MD/mdsrv

@arose
Copy link

arose commented Sep 19, 2016

What @hainm is saying, and

Would something like headless browser work?

I haven't tried it yet, the crucial part is WebGL support, otherwise it should not be a problem. See also nglviewer/ngl#173.

@cxhernandez cxhernandez added this to the Wishlist milestone Feb 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants