Professional Documents
Culture Documents
Style Description
Raster image generation
Lines Simple lines for bonds; points for atoms An interface to a number of image-rendering packages is
Bonds Lighted cylinders for bonds; no atoms provided in VMD and can be used to create input scripts for
VDW Solid, lighted van der Waals spheres for use by these programs. The generated input scripts may then
atoms; no bonds be read by the selected package, to create a raster output
CPK Scaled van der Waals spheres for atoms; image of the graphics scene displayed by VMD suitable for
cylinders for bonds publication or slides. Table 3 lists the currently supported
Dotted Dotted van der Waals spheres for atoms; no image-rendering packages.
bonds The capability to create input scripts for image-rendering
Licorice Solid spheres and cylinders with equal radii programs may be combined with the Tcl scripting language
Tube Cylindrical tube through C,~ atoms ~ available in VMD to easily create high-quality movies of a
Ribbon Flat ribbon through C,~ atoms" molecule. As an example, the following script may be used
Surf Solvent-accessible surface of selected atoms b to create a series of images showing a previously loaded
Caaoon Simplified secondary structure molecule rotating about the Y axis, by creating input scripts
representations for the Raster3D ~2 program that are processed immediately
after they are created:
For nucleic acids, the P atoms are used.
bUsing the SURF algorithm t3a developedat the Universityof North Caro-
lina. ### Tcl script to create a R a s t e r 3 D m o v i e
### of a rotating m o l e c u l e
complexed with a segment of DNA. Molecules may be for [ set i 0 ] [ $i < 360 }
displayed using either an orthographic or a perspective pro- [ set i [ expr $i + i0 ] l [
jection. ### create and process a R a s t e r 3 D s c r i p t
set scriptfile "rotate.$i.r3d"
The atom selection capabilities of VMD are quite exten-
set imagefile " r o t a t e . $ i . r g b ~
sive, and include a flexible syntax for complex selection render R a s t e r 3 D S s c r i p t f i l e
expressions. Each atom in a molecule has several charac- catch [ exec render < S s c r i p t f i l e -sgi
teristics; keywords are used to select the atoms that have $imagefile ]
values matching a specified criterion. For example, each ### rotate the current image by i0 degrees
atom has a set of character string names, an (x, y, z) position, ### about the Y axis
and other numeric values such as charge and mass. Each rot y by i0
atom also has Boolean characteristics identifying it, for ex- ]
ample, as a member of an amino acid or nucleic acid or as
part of the protein backbone. Boolean operations may be After loading a molecule, this script would be invoked sim-
used to select atoms based on multiple characteristics, and ply by typing (assuming it was in a file called movie.tcl)
parentheses may be used to select the order of evaluation.
For example, the selection
Table 2. Selected molecule-coloring styles available in
(resname ASP or resname GLY) and mass > ii
VMD
selects all atoms that are in aspartic acid or glycine residues, Style Description
and that have a mass greater than 11. Similarly, the selection
Name Color determined by atom name
Resname Color determined by residue name
backbone and within 8 of resid i00
Segname Each segment shown in a different color
Molecule Each molecule shown in a different color
selects all backbone atoms that are within 8 units (e.g., Chain Color determined by one-character chain
within 8 ,~) of residue 100. Regular expressions may be identifier
used in strings to specify quickly many different names in a Beta Color scale based on the beta values of
selection. When a selection changes during a trajectory the PDB file
(such as the atoms within some radius of another set of Occupancy Color scale based on the occupancy val-
atoms), the user can request an update of the selection each ues of the PDB file
time a new animation time step is displayed. Mass Color scale based on the atomic mass of
When displaying solid objects, VMD can make use of each atom
available hardware-accelerated lighting capabilities, a capa- Charge Color scale based on the atomic charge of
bility exploited in other molecular visualization packages each atom
such as SETOR. 5 Up to four independent, infinitely distant Pos Color scale based on the distance of each
light sources may be positioned in the scene and used to atom from the center
illuminate the displayed objects. Each light can be turned on
The stereo viewing modes may be used with standard vmd > Smy sel get [name mass x y z}
display monitors, or with external stereo display equipment. Info) [N 14.007 1.488 2.280 -0,863]
As an example, VMD is currently being used with a three- [H 1.008 0.770 1.998 -1.467]
dimensional projection system for the display and analysis [CA 12.011 1.981 3.643 --0.909}
of molecules viewed simultaneously by several users. This {CB 12.011 1.147 4.464 --1.880}
system consists of a ceiling-mounted projector, echoing [C 12.011 1.865 4.326 0.444]
onto a large (6 by 8 foot) screen the stereo images displayed {O !5.999 2.801 4.963 0.924}
on a graphics workstation monitor. The large-screen display
makes it possible for many viewers to study collaboratively Using these atom selection commands, and a set of vector
at a large magnification a biopolymer system; the stereo manipulation procedures implemented in Tcl, the function
display environment enhances the information content of to compute the center of mass of a selected set of atoms is
the scene through the addition of visual depth cues. VMD then realized as follows:
contains several options to configure the graphics display
for use with large-screen projection systems, e.g., to set the ### Tcl p r o c e d u r e to compute the center of
projection screen vertical and horizontal dimensions. ### mass of a set of a t o m s
One problem encountered when several people view the proc com {sel] [
same computer-generated stereo image is that each person set a t o m s [$sel get [mass x y z]]
sees the scene from a different perspective. To help alleviate s e t totalMass 0.0
this problem, VMD supports the use of spatial tracking s e t com [veczero]
foreach atom Satoms [
devices (such as the Polhemus Fastrak [Polhemus Inc., Col-
s e t m a s s [lindex Satom 0]
chester, VT]) that measure the 3D position and orientation
s e t pos [irange Satom 1 3]
of sensors relative to a fixed position, in order to provide a s e t totalMass [expr S t o t a l M a s s + Smass]
set of 3D pointers, VMD displays visual representations of set com [vecadd $com [vecscale Smass $pos]]
the pointers on the screen, such that all viewers perceive the ]
pointers at the same positions relative to the molecules. return [vecscale $com [expr 1.0 /
New features and user interface methods are currently StotalMass]l
being added to VMD for use with this stereo projection l