Difference between revisions of "How to make images for publication using VMD"

From Computational Biophysics and Materials Science Group
Jump to: navigation, search
m
m
Line 2: Line 2:
  
 
==Publication Figure Rendering With Tachyon==
 
==Publication Figure Rendering With Tachyon==
[http://www.ks.uiuc.edu/Research/vmd/minitutorials/tachyonao/ <Click me> '''Please first read this single-slide webpage''' <Click me>]
+
[http://www.ks.uiuc.edu/Research/vmd/minitutorials/tachyonao/ <Click me!> '''Please first read this single-slide webpage''' <Click me!>]
  
 
I am also attending the journey of learning to render good images. So currently I could only provide you some useful links and my way of rendering. Please feel free to come to discuss with me or edit this page if you have a better way out. --[[User:Kevin|Kevin]] ([[User talk:Kevin|talk]]) 19:41, 14 May 2014 (HKT)
 
I am also attending the journey of learning to render good images. So currently I could only provide you some useful links and my way of rendering. Please feel free to come to discuss with me or edit this page if you have a better way out. --[[User:Kevin|Kevin]] ([[User talk:Kevin|talk]]) 19:41, 14 May 2014 (HKT)
Line 13: Line 13:
 
* Use "tmp.dat" for '''Filename''' in the render window
 
* Use "tmp.dat" for '''Filename''' in the render window
 
* Modify '''Render Command''' in the render window as follows:  
 
* Modify '''Render Command''' in the render window as follows:  
<code>"C:\Program Files (x86)\University of Illinois\VMD\\tachyon_WIN32.exe"  -mediumshade -trans_max_surfaces 1 tmp.dat -res 4096 2048 -format BMP -o path/to/your/image.bmp </code>
+
Windows: <code>"C:\Program Files (x86)\University of Illinois\VMD\\tachyon_WIN32.exe"  -mediumshade -trans_max_surfaces 1 tmp.dat -res 2048 1024 -format BMP -o path/to/your/image.bmp </code>
 +
 
 +
Mac: <code>"/Applications/VMD 1.9.1.app/Contents/vmd/tachyon_MACOSXX86" -aasamples 12 -mediumshade -trans_max_surfaces 1 tmp.dat -res 2048 1024 -format BMP -o path/to/your/image.bmp </code>
 
* '''Start Rendering'''
 
* '''Start Rendering'''
  
You should able to understand what has been done by VMD from the steps. Generally the VMD first renders the current scene to "test.dat" as a data file, then it uses the implemented program - "tachyon_WIN32.exe" to read the data file and convert into a bmp with desirable resolution (-res 4096 2048). This is the trick from which we could make good images. Usually I use 4096x2048 which takes a little bit long time of rendering but provides more than enough resolution you need.
+
You should able to understand what has been done by VMD from the steps. Generally the VMD first renders the current scene to "test.dat" as a data file, then it uses the implemented program - "tachyon_WIN32.exe" to read the data file and convert into a bmp with desirable resolution (-res 2048 1024). This is the trick from which we could make good images. Usually I use 2048x1024 which takes a little bit long time of rendering but provides more than enough resolution you need.
  
 
If you have transparent surface, add this option:  -trans_max_surfaces [1 to 5], it seems 1 work better. [http://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/17145.html Source refers to here]
 
If you have transparent surface, add this option:  -trans_max_surfaces [1 to 5], it seems 1 work better. [http://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/17145.html Source refers to here]

Revision as of 16:15, 19 August 2014

Probably the most obvious reason that we use VMD is that it could make very nice images for publication or visual appreciation(?). Creating images with high resolution is of the most importance.

Publication Figure Rendering With Tachyon

<Click me!> Please first read this single-slide webpage <Click me!>

I am also attending the journey of learning to render good images. So currently I could only provide you some useful links and my way of rendering. Please feel free to come to discuss with me or edit this page if you have a better way out. --Kevin (talk) 19:41, 14 May 2014 (HKT)

A general and highly recommended mini-tutorial on VMD images and videos is provided here as a web-book. Also I found a very clarifying message with replies from one of the authors of the mini-tutorial in the VMD Mailing List.

Following is my step of rendering:

  • Load VMD state of the Molecule.
  • Go to File -> Render -> Tachyon
  • Use "tmp.dat" for Filename in the render window
  • Modify Render Command in the render window as follows:

Windows: "C:\Program Files (x86)\University of Illinois\VMD\\tachyon_WIN32.exe" -mediumshade -trans_max_surfaces 1 tmp.dat -res 2048 1024 -format BMP -o path/to/your/image.bmp

Mac: "/Applications/VMD 1.9.1.app/Contents/vmd/tachyon_MACOSXX86" -aasamples 12 -mediumshade -trans_max_surfaces 1 tmp.dat -res 2048 1024 -format BMP -o path/to/your/image.bmp

  • Start Rendering

You should able to understand what has been done by VMD from the steps. Generally the VMD first renders the current scene to "test.dat" as a data file, then it uses the implemented program - "tachyon_WIN32.exe" to read the data file and convert into a bmp with desirable resolution (-res 2048 1024). This is the trick from which we could make good images. Usually I use 2048x1024 which takes a little bit long time of rendering but provides more than enough resolution you need.

If you have transparent surface, add this option: -trans_max_surfaces [1 to 5], it seems 1 work better. Source refers to here

Detailed options for tachyon here

User's Guide for tachyon here

But BMP is in fact not a convenient format communicating with LaTex or MediaWiki so we have to further convert it into PNG or JPG or GIF using external graphical software. It remains much to explore. PhotoShop is expected to involve in the future.