Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielelanaro committed Aug 10, 2015
1 parent cc10e09 commit 1841758
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/offline_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@

# Prepare the viewer
v = QtViewer()
v.widget.initializeGL()
v.add_post_processing(SSAOEffect, kernel_size=128, kernel_radius=1.0)
v.add_post_processing(FXAAEffect)

for compound in compounds:
mol = db.get("molecule", compound)
rend = v.add_renderer(AtomRenderer, mol.r_array, mol.type_array)

v.widget.camera.autozoom(mol.r_array)
# Give some extra zoom
v.widget.camera.mouse_zoom(1.0)

v.widget.toimage(300, 300).save(compound + '.png')

# Cleanup
v.remove_renderer(rend)

0 comments on commit 1841758

Please sign in to comment.