This is a read-only mirror of pymolwiki.org

Difference between revisions of "Ray Tracing"

From PyMOL Wiki
Jump to navigation Jump to search
 
m (6 revisions)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
==Adjusting ray trace-image size==
 
==Adjusting ray trace-image size==
  
More at [[Ray]].
+
Much, much more at [[Ray]].
  
 
The pymol ray tracer can generate an image of any size.
 
The pymol ray tracer can generate an image of any size.

Latest revision as of 03:53, 28 March 2014

Adjusting ray trace-image size

Much, much more at Ray.

The pymol ray tracer can generate an image of any size.

ray height,width

Example:

ray 3000,2400
png filename.png

Ray tracing maps

For better quality maps with a white background.

set ray_trace_fog,0
set ray_shadows,0
set antialias,1
ray 1600,1200
png img.png

(This will take quite a while...)

CGO label orientation

You could use the cmd.rotate and cmd.translate to position the labels, but it is likely to be somewhat painful. If I'm not mistaken, the rotation will always be about and axis through the origin and so you may need to translate the label into the correct position.

Thus if you have your label in an object called 'text', you could do,

  cmd.rotate(axis='x',angle=20.,object='text')

and repeat this with different angles, until you get the orientation correct. Then use:

  cmd.translate(vector='[1.,2.,3.]',object='text')

(using the appropriate vector, of course!) to position the label. Not ideal, but if it is sufficiently important, it can be done!