towards interactive 3d graphics in chemistry publications

39
Towards Towards Interactive 3D Interactive 3D Graphics in Graphics in Chemistry Chemistry Publications Publications Vladislav Vasilyev Vladislav Vasilyev Supercomputer Facility Supercomputer Facility Australian National University, Canberra, Australia Australian National University, Canberra, Australia

Upload: vladislav-vasilyev-vassiliev

Post on 02-Jun-2015

767 views

Category:

Education


2 download

TRANSCRIPT

Page 1: Towards Interactive 3D Graphics in Chemistry Publications

Towards Towards Interactive 3D Graphics Interactive 3D Graphics in in Chemistry PublicationsChemistry Publications

Vladislav VasilyevVladislav Vasilyev

Supercomputer FacilitySupercomputer Facility

Australian National University, Canberra, AustraliaAustralian National University, Canberra, Australia

Page 2: Towards Interactive 3D Graphics in Chemistry Publications

Computational Chemistry is Dealing Computational Chemistry is Dealing with Intristically 3-Dimensional Datawith Intristically 3-Dimensional Data

• There are plenty of molecular-visualization programs, both freeware and commercial ones, which can provide interactive representations of molecular geometry and 3D properties

Page 3: Towards Interactive 3D Graphics in Chemistry Publications

Publication of Calculated Results is Limited Publication of Calculated Results is Limited to the Static 2-Dimensional (2D) Imagesto the Static 2-Dimensional (2D) Images

• Although many scientific publishers allow linking of supplementary materials to the original articles, it could require readers to have dedicated visualization software, (format conversion) tools, etc.

• Thus the effective communication between the authors and Thus the effective communication between the authors and readers is limited.readers is limited.

Page 4: Towards Interactive 3D Graphics in Chemistry Publications

Possible Solution?Possible Solution?

• The use of publishing technology which embeds the 3D information into the original paper

• 3D information should be accessed by all readers interactively without the need for any additional software

Page 5: Towards Interactive 3D Graphics in Chemistry Publications

PDF PDF is Current Gold Standard of is Current Gold Standard of Electronic PublishingElectronic Publishing

Page 6: Towards Interactive 3D Graphics in Chemistry Publications

Dealing with 3D Data in PDFDealing with 3D Data in PDFTraditional ApproachTraditional Approach

• Showing 3D Data as 2-Dimensional Pictures

• Linking suplementary material from published papers

→ need for specialized visualization software, tools, etc.

Page 7: Towards Interactive 3D Graphics in Chemistry Publications

Dealing with 3D Data in PDFDealing with 3D Data in PDF3d Approach3d Approach

• Starting from the Adobe Acrobat 7.0 family in 2005 it has became possible to embed, view, and navigate 3D content in PDF files.

• The embedded 3D content can be viewed and fully interacted with the free Adobe Acrobat Reader on any computer, with no additional visualization software required

Page 8: Towards Interactive 3D Graphics in Chemistry Publications

How to Embed 3D Data into PDFHow to Embed 3D Data into PDF

Only Acrobat 9 Pro Extended can be used for creating 3D PDF Documents

Page 9: Towards Interactive 3D Graphics in Chemistry Publications

For the LaTeX Geeks…For the LaTeX Geeks…

• movie15movie15

http://www.ctan.org/tex-archive/macros/latex/contrib/movie15/

• movie15 package provides an interface to embed movies, sounds and 3D objects into PDF documents for use with LaTeX as well as pdfLaTeX.

Page 10: Towards Interactive 3D Graphics in Chemistry Publications

Inserting 3D Object in Acrobat 9 Pro Inserting 3D Object in Acrobat 9 Pro ExtendedExtended

Page 11: Towards Interactive 3D Graphics in Chemistry Publications

1) Inserting 3D Object in Acrobat 9 1) Inserting 3D Object in Acrobat 9 Pro Extended: Pro Extended: Loading CADLoading CAD** File File

* CAD – Computer-Aided Design* CAD – Computer-Aided Design

Page 12: Towards Interactive 3D Graphics in Chemistry Publications

3D PDF and Microsoft Office products 3D PDF and Microsoft Office products

Word, PowerPoint, and ExcelWord, PowerPoint, and Excel

In Microsoft Office applications, user can adjust the placement, background color, and other properties of inserted 3D models (hide or isolate parts, create new views, and set model perspective). The resulted Office document with the embedded 3D model(s) can be converted into the 3D PDF.

Page 13: Towards Interactive 3D Graphics in Chemistry Publications

3D PDF Object in PowerPoint

Page 14: Towards Interactive 3D Graphics in Chemistry Publications

2) Inserting 3D Object in Acrobat 9 2) Inserting 3D Object in Acrobat 9 Pro Extended: Pro Extended: Capturing 3D SceneCapturing 3D Scene

•Acrobat captures a 3D model from any 3D CAD application that supports OpenGL.

•The 3D capture is not that straightforward and requires specific settings for different applications in order to work.

Page 15: Towards Interactive 3D Graphics in Chemistry Publications

Custom Views in 3D PDFCustom Views in 3D PDF

Custom Views help readers to navigate quickly the 3D content (such as top, bottom, left, right, inside, outside, etc.).

Page 16: Towards Interactive 3D Graphics in Chemistry Publications

Custom Views in 3D PDFCustom Views in 3D PDF

Custom Views help readers to navigate quickly the 3D content: molecule, molecule+ESP, molecule+HOMO, molecule+LUMO

Page 17: Towards Interactive 3D Graphics in Chemistry Publications

Poster Image in 3D PDFPoster Image in 3D PDF

2D image that is not part of the 3D content which is displayed when the interactive content is not activated.

Poster Image

3D Content

Page 18: Towards Interactive 3D Graphics in Chemistry Publications

Embedding the Dynamic 3D Content Embedding the Dynamic 3D Content into Adobe PDF Using JavaScriptinto Adobe PDF Using JavaScript

• Adobe Acrobat can provide far more capabilities than a simple document viewer

• PDF document can contain elements of the Graphical User Interface (GUI) such as buttons, checkboxes, combo boxes, etc. to initiate user actions

• This can be achieved using the Acrobat JavaScript

Page 19: Towards Interactive 3D Graphics in Chemistry Publications

The Dynamic 3D Content: Using The Dynamic 3D Content: Using Check BoxesCheck Boxes

Show/Hide Displacement Vectors

Show/Hide Displacement Vectors

Execute JavaScript to show/hide particular graphics nodes

Page 20: Towards Interactive 3D Graphics in Chemistry Publications

The Dynamic 3D Content: Using The Dynamic 3D Content: Using Radio BoxesRadio Boxes

Execute JavaScript to show/hide particular graphics nodes

Page 21: Towards Interactive 3D Graphics in Chemistry Publications

The Dynamic 3D Content: Creating The Dynamic 3D Content: Creating AnimationsAnimations

Execute JavaScript to show/hide particular graphics nodes (frames)

Page 22: Towards Interactive 3D Graphics in Chemistry Publications

How to Embed Molecules and 3D How to Embed Molecules and 3D Molecular Properties into 3D PDF?Molecular Properties into 3D PDF?

1) 27 Computer-Aided Design formats

2) Screen capture

• VMD → Screen Capture

• PyMol → VRML file

• Jamberoo (former Jamberoo (former JMolEditor) → VRMLJMolEditor) → VRML

Page 23: Towards Interactive 3D Graphics in Chemistry Publications

General Workflow Using VRMLGeneral Workflow Using VRML

3D Scene

Virtual Reality Modeling Language (VRML) File•VRML is an ASCII (text) file format

• It can be visualized by VRML viewers and can be edited in text or VRML editors

• Thus, the VRML format gives more control over the 3D scene for advanced users.

3D PDF

Page 24: Towards Interactive 3D Graphics in Chemistry Publications

On-Line Tutorial for Creating 3D On-Line Tutorial for Creating 3D PDFPDF

http://sf.anu.edu.au/~vvv900/cct/appl/jmoleditor/manual/tutorials/3d-pdf/

Page 25: Towards Interactive 3D Graphics in Chemistry Publications

On-Line Tutorial for Creating 3D PDFOn-Line Tutorial for Creating 3D PDF

Step by step instructions, samples of JavaScript

http://sf.anu.edu.au/~vvv900/cct/appl/jmoleditor/manual/tutorials/3d-pdf/

Page 26: Towards Interactive 3D Graphics in Chemistry Publications

JamberooJamberoo – Molecular Editor/Builder – Molecular Editor/Builder

On the web: http://sf.anu.edu.au/~vvv900/cct/appl/jmoleditor/index.html

~8100 downloads from 77 countries for two years

Page 27: Towards Interactive 3D Graphics in Chemistry Publications

Jamberoo Jamberoo Supports Many Popular Supports Many Popular Computational Chemistry FormatsComputational Chemistry Formats

Gaussian

GAMESS

Mopac

PDB

Tripos Mol2

Amber

Gromacs

etc.

Page 28: Towards Interactive 3D Graphics in Chemistry Publications

Molecular Builder/EditorMolecular Builder/Editor

Adding/deleting Atoms

Adding Fragments

Adding Molecules

Modifying atoms, bonds, angles, dihedral angles

Automatic filling of empty valences with hydrogens

Page 29: Towards Interactive 3D Graphics in Chemistry Publications

Building Molecule Using Fragment LibraryBuilding Molecule Using Fragment Library

Page 30: Towards Interactive 3D Graphics in Chemistry Publications

Working with System ClipboardWorking with System Clipboard

Selection in Text Editor

Gaussian Output File

Page 31: Towards Interactive 3D Graphics in Chemistry Publications

Visualizing Volumetric Data (Gaussian cubes)Visualizing Volumetric Data (Gaussian cubes)

Page 32: Towards Interactive 3D Graphics in Chemistry Publications

High quality graphics for publishing: Image CaptureHigh quality graphics for publishing: Image Capture

Page 33: Towards Interactive 3D Graphics in Chemistry Publications

HHigh quality graphics for publishing: POV-Rayigh quality graphics for publishing: POV-Ray

Generated by POV-Ray (The Persistence of Vision Raytracer)

Page 34: Towards Interactive 3D Graphics in Chemistry Publications

Easy access to files on remote computersEasy access to files on remote computers

Page 35: Towards Interactive 3D Graphics in Chemistry Publications

Interactive Charts (MD, Optimization)Interactive Charts (MD, Optimization)

ADF (output files)ADF (output files)

Gaussian (output files)Gaussian (output files)

VASP (vasprun.xml)VASP (vasprun.xml)

Page 36: Towards Interactive 3D Graphics in Chemistry Publications

Displaying Vibrational SpectraDisplaying Vibrational Spectra

Use combobox to select spectrum Use combobox to select spectrum to plot and press “Show to plot and press “Show Spectrum” button to plot selected Spectrum” button to plot selected spectrumspectrum

Implemented for Gaussian Implemented for Gaussian output filesoutput files

Page 37: Towards Interactive 3D Graphics in Chemistry Publications

Displaying Vibrational ModesDisplaying Vibrational Modes

Shows Animation of Shows Animation of Vibrations and Vibrations and Displacement VectorsDisplacement Vectors

Implemented for Gaussian & Implemented for Gaussian & ADF output filesADF output files

Page 38: Towards Interactive 3D Graphics in Chemistry Publications

ConclusionsConclusions

PDF documents with integrated 3D models provide new ways of visualizing complex molecular properties in an instructive and interactive manner which is ideally suited for the research and educational purposes

Page 39: Towards Interactive 3D Graphics in Chemistry Publications

AcknowledgmentsAcknowledgments

• Prof. Feng WangProf. Feng Wang and Dr. David G. Barnes (Swinburne University of Technology, Melbourne) for bringing 3D PDF capabilities to my attention and useful discussions

• Dr. Kevin PuloDr. Kevin Pulo – Supercomputer Facility, ANU