This is my first topic on the forum. I am here to ask for advice.
I wish to create a movie of particle trajectories in time, but without drawing anything to the screen. I only want to save the visualization output to disk. The reason I wish to do it this way is that I work remotely over ssh on a cluster such that drawing to the screen is very, very slow (LIBGL_ALWAYS_INDIRECT=1). For example, after I run my simulation, drawing all my trajectories to the screen with OGL takes something like an hour, whereas saving to disk with DAWNFILE takes only a few seconds.
I am able to make a simple movie using OGL and looping the printEPS function, as the documentation suggests. This works great for a single trajectory, but for multiple trajectories it slows to a crawl during the draw to screen at the end of run. I can’t figure out how to stop that from happening. If I turn off the viewer, the trajectories don’t seem to be stored.
I can imagine several potential solutions; presented here in order from most to least preferred
Preventing OGL from drawing to the screen but while still storing the trajectories
Asking DAWNFILE (or another viewer) to draw time-sliced trajectories
Write the rich trajectories to disk in plain text format and render the movie myself
Modify the cluster I work on to support local-only OGL rendering
Create a custom viewer
Install Geant4 etc on a personal machine
My workflow comes in the form of a compiled executable that interprets geant4 macro statements. I don’t believe it is possible to start the interpreter interactively, but it may be possible to modify the application source code.
Thank you in advance for your thoughts.
- Richard Lawrence
Texas A&M University