From: Josh Vermaas (
Date: Thu Aug 28 2014 - 11:48:42 CDT

Hi Philippe,

To be honest, this actually seems perfectly normal. You ran VMD with
-dispdev text, which means that there won't be a OpenGL window. Snapshot
works by literally saving the contents of that window to a file, so if
the window doesn't exist, I'm not surprised it didn't do what you
wanted. I'm not sure how the postscript renderer works, but if it only
cared about the VMD internal state, rather than the OpenGL window, it
would work just fine. If you want a TGA, try running without -dispdev
text. Using a different render like Tachyon *might* also work (but I've
never tried doing it this way).
-Josh Vermaas

On 08/28/2014 10:57 AM, Philippe Bopp wrote:
> Hi all
> attached two files, a saved state (carfiles.vmd) and a tcl file
> (input.tcl ,
> copied from log).
> If I run VMD 'interactively' (vmd , load save state ... , source
> input.tcl in Tk console)
> everthing works fine (i.e. I get a .ps and a .tga file)
> If I run it from the command line like so:
> vmd -dispdev text -eofexit -e carfiles.vmd < input.tcl > output.log
> The Postscrip file is there, but the .tga file is virtually empty (18
> bytes) (see attached)
> Output.log sais in this case
> Info) Rendering complete.
> Info) Rendering current scene to 'test5.tga' ...
> Info) Rendering complete
> If I change the order of the render commands (i.e. tga first,
> PostScript second)
> nothing changes
> I'm puzzled
> Philippe
> -----------------
> Philippe A. Bopp
> professor of chemistry
> philippebopp AT (ONLY!)
> -----------------
> ------------------------------------------------------------------------