This is a read-only mirror of pymolwiki.org

Difference between revisions of "Draw"

From PyMOL Wiki
Jump to navigation Jump to search
m
 
m (1 revision)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:Draw_ex.png|thumb|Showing Draw in Action|center]]
+
[[Image:Draw_ex.png|thumb|right|Showing Draw in Action]]
===DESCRIPTION===
+
 
'''Draw''' is new for PyMol 0.99beta07.  '''Draw''' creates an oversized
+
'''Draw''' creates an oversized and antialiased
 
OpenGL image using the current window.  It's like [[Ray]] but not ray traced.  Also, as now with [[Ray]] the oversized images are scaled and shown in the viewer window. As Draw doesn't ray trace the shadows of the scene, it is '''far''' faster than ray.
 
OpenGL image using the current window.  It's like [[Ray]] but not ray traced.  Also, as now with [[Ray]] the oversized images are scaled and shown in the viewer window. As Draw doesn't ray trace the shadows of the scene, it is '''far''' faster than ray.
  
===USAGE===
+
== Usage ==
<source lang="python">
+
 
draw [width, height, antialiasing-level]
+
draw [ width [, height [, antialias ]]]
</source>
+
 
 +
== Examples ==
  
===EXAMPLES===
 
 
  draw 1600
 
  draw 1600
 
will create an 1600-pixel wide image with an aspect ratio equal to that of
 
will create an 1600-pixel wide image with an aspect ratio equal to that of
Line 20: Line 20:
 
will create a 600 by 500 pixel image with maximum (16X) antialiasing
 
will create a 600 by 500 pixel image with maximum (16X) antialiasing
  
===NOTES===
+
== Match ray tracing appearance ==
 +
 
 +
Since PyMOL 1.6, all "line"-type representations can be rendered as cylinders if [[use_shaders|shaders]] are available and all '''*_as_cylinders''' settings are set. Example:
 +
 
 +
set line_as_cylinders
 +
set nonbonded_as_cylinders
 +
set ribbon_as_cylinders
 +
set mesh_as_cylinders
 +
set dash_as_cylinders
 +
set render_as_cylinders
 +
draw 3000, 2000
 +
 
 +
== Notes ==
 +
 
 
This is a quick alternative to ray tracing with antialiasing enabled by default.
 
This is a quick alternative to ray tracing with antialiasing enabled by default.
  
Line 27: Line 40:
 
and NVidia cards max out at 4096 x 4096.
 
and NVidia cards max out at 4096 x 4096.
  
Also note that ray can now also be called with a single width argument.
+
== See Also ==
ray 1600
 
  
====Secondary Structure Determination====
+
* [[ray]]
 +
* [[png]]
  
 
[[Category:Commands|Draw]]
 
[[Category:Commands|Draw]]
 +
[[Category:Publication_Quality|Draw]]

Latest revision as of 02:19, 19 September 2016

Showing Draw in Action

Draw creates an oversized and antialiased OpenGL image using the current window. It's like Ray but not ray traced. Also, as now with Ray the oversized images are scaled and shown in the viewer window. As Draw doesn't ray trace the shadows of the scene, it is far faster than ray.

Usage

draw [ width [, height [, antialias ]]]

Examples

draw 1600

will create an 1600-pixel wide image with an aspect ratio equal to that of the current screen.

draw 2000, 1500, 0

will create a 2000 by 1500 pixel image with antialiasing disabled

draw 600, 400, 2

will create a 600 by 500 pixel image with maximum (16X) antialiasing

Match ray tracing appearance

Since PyMOL 1.6, all "line"-type representations can be rendered as cylinders if shaders are available and all *_as_cylinders settings are set. Example:

set line_as_cylinders
set nonbonded_as_cylinders
set ribbon_as_cylinders
set mesh_as_cylinders
set dash_as_cylinders
set render_as_cylinders
draw 3000, 2000

Notes

This is a quick alternative to ray tracing with antialiasing enabled by default.

Note that image size and antialiasing may be limited in some cases due to OpenGL hardware limits, such as screen size. For example, high-end ATI and NVidia cards max out at 4096 x 4096.

See Also