My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads

Overview

Stereowrap is an emulation layer implementing stereoscopic OpenGL visuals on top of non stereo capable OpenGL implementations. To do that it overrides, using LD_PRELOAD, the GLX visual selection functions (glXChooseVisual and glXChooseFBConfig), glDrawBuffer, and glXSwapBuffers to capture and composite the two stereo images rendered by the application, in a number of ways.

Presentation Methods

Currently stereowrap supports presenting the stereo pair in the following ways:

  • parallel side-by-side (-m parallel)
  • side-by-side (-m cross)
  • color anaglyph
    • red-cyan (-m redcyan)
    • red-blue (-m redblue)
    • green-magenta (-m greenmagenta)
    • colorcode3d, aka amber-blue (-m colorcode)
  • sequential left/right sync-ed to vblank (-m sequential)

Notes

The sequential mode is there to support circuits that drive shutter glasses from the VGA vsync signal, like this one.

The ColorCode3D anaglyph method is patented (US Patent #6687003). I live in the EU so I don't give a shit, but if you care you may compile stereowrap with colorcode disabled. Just modify the Makefile and add -DNOCOLORCODE at the end of the CFLAGS line to do that.

Usage

Example:

$ stereowrap -m redcyan glxgears -stereo
Powered by Google Project Hosting