next up previous contents index
Next: Tcl Text Interface Up: Viewing Modes Previous: Stereo Parameters   Contents   Index


Making Stereo Raster Images

As discussed in Chapter §, 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.

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 and then execute the commands listed above. The text commands for generating left or right views also have equivalents in the GUI under the Stereo option of the Display form.


next up previous contents index
Next: Tcl Text Interface Up: Viewing Modes Previous: Stereo Parameters   Contents   Index
vmd@ks.uiuc.edu