<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Ray_Tracing</id>
	<title>Ray Tracing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Ray_Tracing"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Ray_Tracing&amp;action=history"/>
	<updated>2026-11-05T12:21:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Ray_Tracing&amp;diff=9991&amp;oldid=prev</id>
		<title>Bell: 6 revisions</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Ray_Tracing&amp;diff=9991&amp;oldid=prev"/>
		<updated>2014-03-28T03:53:14Z</updated>

		<summary type="html">&lt;p&gt;6 revisions&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Adjusting ray trace-image size==&lt;br /&gt;
&lt;br /&gt;
Much, much more at [[Ray]].&lt;br /&gt;
&lt;br /&gt;
The pymol ray tracer can generate an image of any size.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
ray height,width&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
ray 3000,2400&lt;br /&gt;
png filename.png&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ray tracing maps==&lt;br /&gt;
For better quality maps with a white background.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set ray_trace_fog,0&lt;br /&gt;
set ray_shadows,0&lt;br /&gt;
set antialias,1&lt;br /&gt;
ray 1600,1200&lt;br /&gt;
png img.png&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
(This will take quite a while...)&lt;br /&gt;
&lt;br /&gt;
==CGO label orientation==&lt;br /&gt;
You could use the cmd.rotate and cmd.translate to position the labels, but it is likely to be somewhat painful. If I&amp;#039;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.&lt;br /&gt;
&lt;br /&gt;
Thus if you have your label in an object called &amp;#039;text&amp;#039;, you could do,&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
  cmd.rotate(axis=&amp;#039;x&amp;#039;,angle=20.,object=&amp;#039;text&amp;#039;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and repeat this with different angles, until you get the orientation correct. Then use:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
  cmd.translate(vector=&amp;#039;[1.,2.,3.]&amp;#039;,object=&amp;#039;text&amp;#039;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
(using the appropriate vector, of course!) to position the label.&lt;br /&gt;
Not ideal, but if it is sufficiently important, it can be done!&lt;br /&gt;
&lt;br /&gt;
[[Category:Using_Pymol|Ray Tracing]]&lt;/div&gt;</summary>
		<author><name>Bell</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Ray_Tracing&amp;diff=9989&amp;oldid=prev</id>
		<title>Spencer: /* Adjusting ray trace-image size */</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Ray_Tracing&amp;diff=9989&amp;oldid=prev"/>
		<updated>2007-11-13T21:32:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Adjusting ray trace-image size&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Adjusting ray trace-image size==&lt;br /&gt;
&lt;br /&gt;
More at [[Ray]].&lt;br /&gt;
&lt;br /&gt;
The pymol ray tracer can generate an image of any size.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
ray height,width&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
ray 3000,2400&lt;br /&gt;
png filename.png&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ray tracing maps==&lt;br /&gt;
For better quality maps with a white background.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set ray_trace_fog,0&lt;br /&gt;
set ray_shadows,0&lt;br /&gt;
set antialias,1&lt;br /&gt;
ray 1600,1200&lt;br /&gt;
png img.png&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
(This will take quite a while...)&lt;br /&gt;
&lt;br /&gt;
==CGO label orientation==&lt;br /&gt;
You could use the cmd.rotate and cmd.translate to position the labels, but it is likely to be somewhat painful. If I&amp;#039;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.&lt;br /&gt;
&lt;br /&gt;
Thus if you have your label in an object called &amp;#039;text&amp;#039;, you could do,&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
  cmd.rotate(axis=&amp;#039;x&amp;#039;,angle=20.,object=&amp;#039;text&amp;#039;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and repeat this with different angles, until you get the orientation correct. Then use:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
  cmd.translate(vector=&amp;#039;[1.,2.,3.]&amp;#039;,object=&amp;#039;text&amp;#039;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
(using the appropriate vector, of course!) to position the label.&lt;br /&gt;
Not ideal, but if it is sufficiently important, it can be done!&lt;br /&gt;
&lt;br /&gt;
[[Category:Using_Pymol|Ray Tracing]]&lt;/div&gt;</summary>
		<author><name>Spencer</name></author>
	</entry>
</feed>