Difference between revisions of "Spheres"

From PyMOLWiki
Jump to navigation Jump to search
(Remove shader section (has been default for quite some time))
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:Spheres_ex.png|thumb|Normal Sphere Representation Example|center]]
+
[[Image:Spheres_ex.png|thumb|right|Normal Sphere Representation Example|center]]
  
 
==Representation==
 
==Representation==
Line 5: Line 5:
 
  show spheres, SEL
 
  show spheres, SEL
  
==OpenGL Shaders & Spheres==
+
==Adjusting Sphere Size==
Newer OpenGL supported cards (like the NVidia 5950 Ultra, or the 6800 GT Ultra) support '''Shaders'''.  Shaders are best used for massive numbers of molecules that are to be represented as spheres.  Typical ranges will now include 500 000 to 3 000 000 atoms!  Take a look, the following example is of a viral nucleocapsid: 261 240 atoms!  Performance and visual quality -- without rendering -- are far improved.
 
  
-- Image coming --
+
<source lang="python">
 +
alter selection, vdw=number
 +
</source>
  
 +
===Examples===
 +
Shrink the size of all Iron atoms:
 +
<source lang="python">
 +
alter elem fe, vdw=1.0
 +
rebuild
 +
</source>
  
To turn on Sphere Shaders use
+
Dramatically enlarge all spheres in an object
set sphere_mode, 5
+
<source lang="python">
as spheres, SEL
+
alter object, vdw=4.0
where '''SEL''' is the name of your selection.  Getting normal sphere mode back is easy:
+
rebuild
set sphere_mode, 4
+
</source>
as spheres, SEL
 
 
 
  
 
[[Category:Representations|Spheres]]
 
[[Category:Representations|Spheres]]
 +
[[Category:Performance]]

Latest revision as of 17:02, 25 July 2023

Normal Sphere Representation Example

Representation

To enable the spheres representation do the following for any selection SEL,

show spheres, SEL

Adjusting Sphere Size

alter selection, vdw=number

Examples

Shrink the size of all Iron atoms:

alter elem fe, vdw=1.0
rebuild

Dramatically enlarge all spheres in an object

alter object, vdw=4.0
rebuild