glvis icon indicating copy to clipboard operation
glvis copied to clipboard

Movies

Open salomole opened this issue 3 years ago • 2 comments

Hello,

I would like to make a movie by taking several snapshot, but I don't know which command to write in the code for that ?

Best wishes,

salomole avatar Jul 25 '22 07:07 salomole

Hi @salomole,

If it is a spinning movie, you can press S while the visualization is rotating (Shift + Left Mouse) which will generate a sequence of screenshots: GLVis_m00*.png.

For more general movies, you can use a GLVis script. See this section for a simple example.

Hope this helps, Tzanio

tzanio avatar Jul 25 '22 15:07 tzanio

Hello ! Thank you for your answer, but I would like to know the screenshot command to insert in my code (using MFEM). Do you know it ? At each time step, I would like a screenshot (in a 2D plane) of a Gridfunction.

salomole avatar Aug 15 '22 17:08 salomole

Both the stream and the script commands use the format screenshot filename.png. The stream command is processed here: https://github.com/GLVis/glvis/blob/c092dc8f62a8ce37aa1d738d0d4f5db71f6856fb/lib/threads.cpp#L835

v-dobrev avatar Sep 09 '22 01:09 v-dobrev