#132 Bad transparency-based rendering

v1.6.0.0
open
rendering (1)
5
2013-04-03
2013-04-03
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


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks