Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#132 Bad transparency-based rendering

v1.6.0.0
open
Blaine Bell
rendering (1)
5
2013-04-03
2013-04-03
Jason Vertrees
No

The following script shows bad rendering:

import pymol
from pymol import *
from pymol.cgo import *

def sphere(x, y, z, r, alpha=0.5, color=[0.100, 1.000, 0.000]):
"Plots sphere at x,y,z of r radius. You can delete it with: delete sphere"
cmd.set('auto_zoom', 0)
cmd.set("cgo_sphere_quality", 4)
obj =
ALPHA, alpha,
COLOR, color[0
, color[1], color[2],
SPHERE, float(x), float(y), float(z), float(r),
]
cmd.load_cgo(obj, 'sphere')
cmd.extend('sphere', sphere)

1 Attachments

Discussion