next up previous contents index
Next: Interactive Molecular Dynamics Up: Viewing Modes Previous: Stereoscopic Modes

Making Stereo Raster Images

As discussed here, VMD can create output files of the current scene in the format needed for input by various image processing packages. These formats do not always natively support the ability to draw stereo images. In principle, it is possible to write the scene to the file twice with the appropriate transformations applied to make the view correct for each eye, but then the shadows would be incorrect.

??? change to use Left/Right viewpoint

Instead, we suggest making one image of the current scene, then shift the molecules to the left (or right) to make the other image. (Note that neither the stage nor the axes will move, so they will not be in stereo.) The text commands for this are something like:

        render Raster3D left.r3d
        trans by -.1 0 0
        render Raster3D right.r3d

The two files must then be rendered to produce the rgb file. As it turns out, this method makes it easy to produce stereo images of ordinary Raster3D files. Since VMD can read the Raster3D format, all you have to do is read the file then execute the commands listed above.



Andrew Dalke
Tue May 14 16:49:45 CDT 1996