I have some particles that I draw in 3D using GLViewer. Their movement have a time evolution. I would like to make an animation (or “movie”) of these moving 3D graphics objects (using GLViewer, but also EVE is an option).
Could you please give a simple example how to do that? I.e. how to refresh and save each “frame” or “snapshots” after redrawing? Or if more advanced animation features exist.
Ok, I figured it out using TGLViewer::SavePicture and redrawing
the top geom for each timestep, saving the ogl output to animated gif
and converting it to avi with ffmpeg.
Also with TGLSAViewer one can change the camera view
so that is also an option.