I don't intend to provide a POV user guide. You will have to learn the POV syntax by yourself if you want to add fancy textures on your molecules. However, I will explain a typical POV scene generated by the Swiss-PdbViewer. Usually, the image generated by POV will be very close to the one you can see with the OpenGL preview. The only thing you will probably have to adjust is the distance between the camera and the model.
Note:First of all, a syntax definition: // at the beginning of a line
means that it will be ignored by POV. To comment a block of lines, put
a /* before the first caracter to ignores and a */ after the last caracter
to ignore.
Now, let's look step by step at the scene description:
Includes colors, shapes and textures definitions.
Defines the finish (aspect) of atoms. This is "Shiny", but you could change these values to get something metallic.
Define rgb colors for GRASP surfaces, atoms and H-bond. Note that the "filter" value present for some colors defines the transparency from 0 (solid) to 1 (completely transparent).
All these numbers are in Angstroms. By default, atom radius is equals to bond radius. It allows to generate smooth "sticks" models. Note that all these radii can be modified directly from within Swiss-PdbViewer.
The previous section assign radii for "space filled" atoms.
Note that atoms are rendered as "Spacefilled" only when the column "dot surface" of the control Panel is checked.
It allows you to render very easily models in "mixed mode".
The previous section assigns the radii for the atoms (spheres) that will be joined by the bonds. Obviously, in the case demonstrated here, you won't see them. However, you could modify these values to obtain a "balls & sticks" model.
The previous section defines some parameters (such as label placement and color) that will be used to place "solid 3D text" that will be rendered along with your image (available only with POV3).
The first include get the atoms colors definitions. You can edit this file to change the default atoms colors, H-bond colors and so on.
This file must reside either in the same folder as the .pov and .inc files you want to render, or in the folder
where all other includes files (colors.inc, textures.inc and so on...) reside.
The next line calls the molecule atoms and bonds definitions. The next bunch of lines call each groups If you want to remove just one amino-acid
from the final rendering, you will just have to put // in front of the object you want to remove.
As you may notice, the three lines slightly decaled onto the right define "solid 3D text" that will be rendered
along with your image (available only with POV3). You will probably need to modify the position of some labels to insure they are visible.
This section defines the camera position and direction. You may have to change the last term of the "location" part. Increasing it will put the camera closer to the model, and so it will appear enlarged.
The "right" term difines the width/height ratio. Its default value is 1, meaning that you will have to render squared images in order to observe no distortion. If you change the image size to 640 by 480 pixels, do not forget to modify the first term by 640/480 = 1.333333
Note: if you want to render the left or right part of a stereo view, simply uncomment the appropriate "rotate" command. Only one of the two "rotate" should be uncommented at the same time.
Note that you can specify which image has to be calculated directly from within Swiss-PdbViewer, as the parameters set in the QuickDraw3D preference dialog will be taken into account.
Obviously, here are the light sources. You may have to move their locations to get nice results, but it usually works like that. The more light sources you put, the longer it takes to render the scene.
Note that you can modify the position and intensity of the light sources directly from within Swiss-PdbViewer.