create and save snapshots of the simulation without displaying on screen

Asked by José Mercado

hello everyone!

i need to generate and save snapshots of the simulation that i'm doing without displaying the image on screen.

the thing that i always do is show the image with yade.qt.view() (this display the image onscreen) and then use a snapshotengine or a savesnapshot, what other choice do I have?

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jérôme Duriez (jduriez) said :
#1
Revision history for this message
José Mercado (josem-mercadoa) said :
#2

but i need to display the GLView first to save it with that engine.

Revision history for this message
Jan Stránský (honzik) said :
#3

Hi José,

please be more specific why you need to save snapshots without displaying
images.

A workaround (the applicability depends on the reason why not to display
images) is to export everything to vtk files and then use paraview [1,2]
(or some other software [3]) to create the pictures in "offscreen mode".
cheers
Jan

[1]
http://stackoverflow.com/questions/32228442/offline-rendering-of-animation-on-server-with-paraview-python-script-fails
[2] http://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D
[3] http://docs.enthought.com/mayavi/mayavi/tips.html

2015-11-12 16:02 GMT+01:00 José Mercado <
<email address hidden>>:

> New question #274088 on Yade:
> https://answers.launchpad.net/yade/+question/274088
>
> hello everyone!
>
> i need to generate and save snapshots of the simulation that i'm doing
> without displaying the image on screen.
>
> the thing that i always do is show the image with yade.qt.view() (this
> display the image onscreen) and then use a snapshotengine or a
> savesnapshot, what other choice do I have?
>
>
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
José Mercado (josem-mercadoa) said :
#4

i need to save snapshots to generate a video simulation, I will review what you sent me, thank you!

Revision history for this message
Jan Stránský (honzik) said :
#5

Hi José,
why you need snapshots is clear :-) I wanted to make clear why you need
snapshots without displaying images (is it anoying? Do you you run the
simulations on cluster without GUI? ....?)
Thanks for the information
Jan

2015-11-12 19:08 GMT+01:00 José Mercado <
<email address hidden>>:

> Question #274088 on Yade changed:
> https://answers.launchpad.net/yade/+question/274088
>
> José Mercado posted a new comment:
> i need to save snapshots to generate a video simulation, I will review
> what you sent me, thank you!
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
José Mercado (josem-mercadoa) said :
#6

yes, because i will use a cluster without GUI.

thanks you for your help as always!

Revision history for this message
Jan Stránský (honzik) said :
#7

Or you can just save the vtk files on the cluster, then copy them and
create video "manually" using standard paraview...

2015-11-12 20:12 GMT+01:00 José Mercado <
<email address hidden>>:

> Question #274088 on Yade changed:
> https://answers.launchpad.net/yade/+question/274088
>
> José Mercado posted a new comment:
> yes, because i will use a cluster without GUI.
>
> thanks you for your help as always!
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
José Mercado (josem-mercadoa) said :
#8

Ok, thanks i will try that!

Can you help with this problem?

Provide an answer of your own, or ask José Mercado for more information if necessary.

To post a message you must log in.