GRASP/rings/blobview and misc. examples

readsurf curv "interface_surface.surf" using curvature;
set mapradius 5.5, maptype 1, transparency 0.3;
set surfrange -60.0 0.0 25.0;
set colourramp rgb, mapramp from yellow to green through white;
drawsurf curv covering in from 1 to 300;
Note: POVScript+ v. 1.65 and up now use the mesh2 output syntax (thereby supporting color-per-vertex), which requires POVRay 3.5.


MSMS output:

read mol "molecule.pdb";
readsurf surf "msms_out" using potential;
! (msms_out.vert and msms_out.face must exist)
set mapradius 5.5, maptype 1, transparency 0.3;
set colourramp rgb, mapramp from blue to red through white;
drawsurf surf molecule mol;


Rings output:

set colourparts on;
set linecolour grey 0.6;
set atomcolour atom C* grey 0.8;
nucleorings nucleotides;
bonds in nucleotides;


Blobview vs. original output:
set bsurf 2, baxes 1, btransp 0.6;
ball-and-stick require in residue 1012, loc A and not $backb;
set bsurf 0, transparency 0.6, blobview on;
cpk require in residue 1012, loc A and not $backb;

Only the blobiew command was changed in the two images
Original view Blobview output

How does it work?
A simple slip of the povray commandline:
Original view Blobview output
sphere { <0.62, -0.79, -0.25>, 1.70, 1.0  texture { CAM3_2 } }
sphere { <-0.40, -0.08, 0.70>, 1.70, 1.0  texture { CAM3_4 } }
sphere { <-0.43, 1.44, 0.52>, 1.70, 1.0  texture { CAM3_6 } }
sphere { <0.76, 2.15, 0.65>, 1.70, 1.0  texture { CAM3_8 } }
sphere { <-1.54, 2.12, 0.18>, 1.70, 1.0  texture { CAM3_10 } }
sphere { <0.80, 3.51, 0.45>, 1.70, 1.0  texture { CAM3_12 } }
sphere { <-1.54, 3.50, 0.05>, 1.70, 1.0  texture { CAM3_14 } }
sphere { <-0.36, 4.18, 0.15>, 1.70, 1.0  texture { CAM3_16 } }
blob {
  sphere { <0.62, -0.79, -0.25>, 1.70, 1.0  texture { CAM3_2 } }
  sphere { <-0.40, -0.08, 0.70>, 1.70, 1.0  texture { CAM3_4 } }
  sphere { <-0.43, 1.44, 0.52>, 1.70, 1.0  texture { CAM3_6 } }
  sphere { <0.76, 2.15, 0.65>, 1.70, 1.0  texture { CAM3_8 } }
  sphere { <-1.54, 2.12, 0.18>, 1.70, 1.0  texture { CAM3_10 } }
  sphere { <0.80, 3.51, 0.45>, 1.70, 1.0  texture { CAM3_12 } }
  sphere { <-1.54, 3.50, 0.05>, 1.70, 1.0  texture { CAM3_14 } }
  sphere { <-0.36, 4.18, 0.15>, 1.70, 1.0  texture { CAM3_16 } }
  threshold 0.05
}

Blobs, in a simple explanation, are a union of flexible components that attract or repel each other to form an organic shape. The components' surfaces actually stretch out smoothly and connect. PovRay handles the whole thing for us - we just tell it where the CPK spheres are. Feel free to fiddle with the threshold and strength values, just consult the povray user guide for information on how the two affect the rendering.



Go back to the povscript+ home page