Difference between revisions of "Zalman Stereo"

From CCP4 wiki
(Invoking Zalman Stereo mode in COOT)
(Customized Menu for Zalman Monitor and Powermate Dial)
Line 69: Line 69:
 
  (set-go-to-atom-window-position 1847 67)
 
  (set-go-to-atom-window-position 1847 67)
 
   
 
   
=== Customized Menu for Zalman Monitor and Powermate Dial ===
+
=== Customized Menu for Zalman Monitor ===
 
<pre>
 
<pre>
 
;; Customize menu bar for PowerMate Dial and Zalman monitor
 
;; Customize menu bar for PowerMate Dial and Zalman monitor
 
(let ((menu (coot-menubar-menu "Custom")))
 
(let ((menu (coot-menubar-menu "Custom")))
  (add-simple-coot-menu-menuitem
 
  menu "PowerMate"
 
  (lambda ()
 
(load (append-dir-file (getenv "HOME") ".cootrc_powermate_and_keybindings.scm"))))
 
 
   (add-simple-coot-menu-menuitem
 
   (add-simple-coot-menu-menuitem
 
   menu "Zalman Stereo ON"
 
   menu "Zalman Stereo ON"
Line 94: Line 90:
  
 
Which, in turn, requires [http://code.google.com/p/zsh-templates-osx/source/browse/trunk/Library/init/zsh/zshrc.d/local-functions/etc/dotfiles/cootrc_powermate_and_keybindings.scm a file called ~/.cootrc_powermate_and_keybindings.scm]
 
Which, in turn, requires [http://code.google.com/p/zsh-templates-osx/source/browse/trunk/Library/init/zsh/zshrc.d/local-functions/etc/dotfiles/cootrc_powermate_and_keybindings.scm a file called ~/.cootrc_powermate_and_keybindings.scm]
 
 
  
 
===Inverted Stereo?===
 
===Inverted Stereo?===

Revision as of 18:06, 20 August 2009

3d lcd

Zalman LCD Stereo for COOT

The first viable LCD monitor for stereographics display is made by Zalman and costs about $300: Zalman ZM-M220W

The attributes for this monitor have been tested and described rather extensively by Warren DeLano on the PyMOL site. Please read it for important details and suggested purchasing sources.


The following describes specifically how to get this to work with coot on Mac OS X, but the instructions should be generalizable to linux and Windoze. The beauty of this is that it is platform-independent and apparently works with pretty much any hardware (PC, mac, etc) and operating system.

Setting it up

The monitor comes with both a VGA and a DVI cable. If at all possible, use the DVI cable. Apple users will need to purchase an adaptor like the one pictured below:

31nBUURNRYL. SL500 AA280 .jpg

Plug in all the cables and verify the monitor is working. To get the stereo display to work, it is imperative that you turn display mirroring off. I placed the monitor to the left of my laptop, which required moving things around in the Display System Preferences. I also dragged the menu bar over to the external monitor to make in the primary monitor. This isn't so important for coot, whose menu is attached to the X11 window, but OS X pymol will drive you nuts if you have the menu on a separate monitor.

Invoking Zalman Stereo mode in COOT

Make sure "Hardware Stereo" is turned off.

As of now, there is no button for Zalman stereo mode. Instead, open up a scripting window, and issue the scheme command

(zalman-stereo-mode)

or else the python command

zalman_stereo_mode()

and you should then see a double image that looks like this:

Double.png

When you put on the glasses, you should see a single image, in 3D stereo.

If things look weird, the image might be backwards, in which case, try moving the Coot window down one pixel (just move it around a bit until it looks right).

To get back to mono mode, try

(mono-mode)

or

mono_mode()

Some Potentially Useful Scripts and Tweaks

Crank Up Font Size

;; The font needs to be cranked up to be visible in stereo
(set-font-size 3)

For Zalman to the left of main display

If your monitor is to the right, you will have to adjust X values appropriately

;; Specific for Zalman monitor set to the left of eg MacBook Air
;;
;; These should be even numbers to keep the stereo
;; the right way around
(set-graphics-window-position 0 0)
(set-graphics-window-size 1680 1050)
;; Make these subsidiary windows appear on the right-hand monitor
(set-model-fit-refine-dialog-position 1900 0)
(set-delete-dialog-position 1700 50)
(set-go-to-atom-window-position 1847 67)

Customized Menu for Zalman Monitor

;; Customize menu bar for PowerMate Dial and Zalman monitor
(let ((menu (coot-menubar-menu "Custom")))
  (add-simple-coot-menu-menuitem
   menu "Zalman Stereo ON"
   (lambda ()
 (zalman-stereo-mode)))
  (add-simple-coot-menu-menuitem
   menu "Zalman Stereo OFF"
   (lambda ()
 (mono-mode)))
  (add-simple-coot-menu-menuitem
   menu "Zalman Full-Screen"
   (lambda ()
 (set-graphics-window-position 0 0)(set-graphics-window-size 1680 1050))))


Which, in turn, requires a file called ~/.cootrc_powermate_and_keybindings.scm

Inverted Stereo?

In general, if the image is inverted, just move the window up or down 1 pixel.