Skip to content

Commit

Permalink
Merge branch 'master' of github.com:chemlab/chemlab
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielelanaro committed Aug 10, 2015
2 parents cb4a2a9 + 7a67bae commit 9a72fc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/graphics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ save method to store it as a png::
Once we've got the sample molecule up and running it's very easy to
automatize the process to produce images of different molecules. In
the following code we prepare the QtViewer with the effects, and for
the following code we prepare the QtViewer with the effects,
we call ``v.widget.initializeGL()`` in place of ``v.show()`` and for
each molecule we add an AtomRenderer and adjust the camera::

from chemlab.db import CirDB
Expand All @@ -299,6 +300,7 @@ each molecule we add an AtomRenderer and adjust the camera::
# Prepare the viewer
v = QtViewer()
v.widget.initalizeGL() # Needed if you don't call show()
v.add_post_processing(SSAOEffect, kernel_size=128, kernel_radius=1.0)
v.add_post_processing(FXAAEffect)
Expand Down

0 comments on commit 9a72fc1

Please sign in to comment.