polyscope icon indicating copy to clipboard operation
polyscope copied to clipboard

How to obtain a high-quality png screenshot?

Open zhangfq-chemistry opened this issue 4 years ago • 3 comments

How to obtain a high-quality png screenshot? Thanks a lot.

zhangfq-chemistry avatar Jun 03 '21 12:06 zhangfq-chemistry

Hi! What exactly do you mean?

There is a "Screenshot" button in the upper left corner of the GUI you can click, and in code there is a screenshot() function in both C++ and Python as described in the docs. To make the images look a little higher-resolution, you can adjust the anti-aliasing settings via the GUI or for example as polyscope::ssaaFactor=2.

nmwsharp avatar Jul 06 '21 16:07 nmwsharp

Hello.

I am working with the python Polyscope. I am following the instructions here, however, I face the following error while trying to initialise camera location,

<ipython-input-8-6d6b03c8f958> in screenshot_ps(m, rot_mat, cmap)
     14     ps_mesh = ps.register_surface_mesh('tempsc', m.vertices, m.faces)
     15     ps_mesh.add_scalar_quantity('cmap', get_dist(m), enabled=True, cmap='rainbow')
---> 16     ps.look_at((0., 0., 5.), (1., 1., 1.))
     17     # Adjust some screenshot default settings if you'd like
     18     ps.set_screenshot_extension(".jpg");

AttributeError: module 'polyscope' has no attribute 'look_at'

Can you please let me know what could be wrong? The same code works for rendering individually.

Sentient07 avatar Sep 20 '21 08:09 Sentient07

Hello sorry about my previous message, the issue is fixed by updating polyscope

Sentient07 avatar Sep 20 '21 16:09 Sentient07