|
Molecular GraphicsWe're interested in visualization software appropriate to molecular simulation research. This falls into two main categories:
High-quality Molecular GraphicsThere are, in general, two ways of generating a picture of a snapshot of a molecular simulation. The first is using a rastering algorithm, which is the basis of the widely-available molecular visualization programs Rasmol and Raster3D, as well as the commercial renderer RenderMan from Pixar (used to make the "Toy Story" movies, among others). The quality of the output from rastering programs varies with the sophistication of the lighting and shading algorithms; the main advantage of this approach is that it is very fast. The Rasmol and Raster3D programs can each read several "standard" molecular configuration file formats, and output in various image formats. These codes are very heavily oriented towards biomolecular systems, and are not particularly suited to solid-state or condensed-matter simulations. (In fact, the vast bulk of molecular visualization software available today is oriented towards biomolecular systems.) The second approach is to use ray-tracing, which is the source of most "photorealistic" computer-generated images nowadays. This method is computationally expensive. We have largely used the freely-available POV-Ray for this purpose. In order to use a general-purpose rendering tool (POV-Ray, RenderMan, etc.) for molecular graphics one must convert the molecular configuration data into the description of a "scene". For old-fashioned ray-tracers such as POV-Ray, this means constructing a "scene file" in which the picture is described as a collection of primitive objects, light sources, and a camera with certain focal properties. RenderMan, along with others, adhere to something called the "RenderMan Interface", which is a sort of procedural language for describing and rendering a scene, much as "postscript" is a procedural language for putting words and pictures on a page and printing it. We have not extensively worked with this specification, but hope to in the future.
Molecular graphics with POV-RayPOV-Ray scene files are plain-text descriptions of the picture to be drawn. To cast a molecular simulation in this form, what generally needs to be done is that:
PovChem is the best developed freely-available tool for converting your simulation data into POV-Ray scene files. Also with a biomolecular bent, this one reads PDB files, generates scene files, and automatically renders them. It is available for Windows, Macintosh, and various Unix platforms. If you really want to go for it, though, I recommend writing your own translator, as it is relatively simple and allows for unlimited flexibility. There are two programs in use here:
Gratuitous computer graphics
Making moviesThere are lots of possible software solutions for making short movies of molecular simulations, or for animating rotating molecules, etc. While it is possible to write (or obtain) programs that can generate computer video "on-the-fly", the best movies are made by:
While the frames can be generated using free software like POV-Ray, converting them to high-quality video generally requires the purchase of some heavy software (and hardware, for analog-video output). You can use the free "mpeg_encode" program to make MPEG-1 videos, but the results aren't really very good. I have used Macintosh-based programs for this in the past, specifically software from Media 100, and "Media Cleaner Pro" from Terran. I am currently investigating the use of Apple's Final Cut Pro for this purpose. The best export format that I have found so far for generally-playable animation of this type is the QuickTime "animation" codec, which is basically uncompressed. You get about 4 minutes of video into 300 Mb disk space at a frame size of 320x240; the data rate for playing this is too fast for a CDROM so it has to be on your hard drive. It is likely that DVD-format encoding (that is, MPEG-2) will be a better solution in the long term. We do not yet have the necessary software for encoding DVD-video at this time, and the hardware necessary to master a single DVD-ROM is very expensive at the moment. For some great movies made by Andrea Delapaz, an undergraduate in our laboratory, check out her visualizations of gases and other phases and visualizations of liquid-vapor phase separations. Graphical Representation of Simulation Data3D data setsAlthough a great deal of effort has recently gone into the visualization and manipulation of 3D data sets, relatively little of this is directly applicable to molecular simulation work, unless one wants to view either electrostatic potential data (as output by programs like DelPhi) or one is using ab initio potentials and has 3D electron-density or wavefunction data.More on other stuff later! |
|
|
Department of Chemistry and
Center for Materials Innovation Washington University in St. Louis |
Last modification:
Fri Aug 17 18:46:16 2007 gelb@wustl.edu |