Docs @ Psychtoolbox Wiki : EXPImagingStereoDemo

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

EXPImagingStereoDemo

PsychtoolboxPsychGLImageProcessing

ImagingStereoDemo(stereoMode)

Demo on how to use OpenGL-Psychtoolbox to present stereoscopic stimuli
when the Psychtoolbox imaging pipeline is enabled. Use of the imaging
pipeline allows for more flexible and high quality stereo display modes,
but it requires graphics hardware with support for at least framebuffer
objects and Shadermodel 2.0. See the Psychtoolbox Wiki about gfx-hardware
recommendations. The demo also shows how to configure the pipeline to
restrict image processing to some subregion of the display, e.g., to save
some computation time on low-end hardware.

Press escape key to abort demo, space key to toggle modes of specific
algorithms.

'stereoMode' specifies the type of stereo display algorithm to use:


0 == Mono display - No stereo at all.

1 == Flip frame stereo (temporally interleaved) - You'll need shutter
glasses that are supported by the operating system, e.g., the
CrystalEyes-Shutterglasses. Psychtoolbox will automatically generate blue
sync lines at the bottom of the display.

2 == Top/bottom image stereo with lefteye=top also for use with special
CrystalEyes-hardware.

3 == Same, but with lefteye=bottom.

4 == Free fusion (lefteye=left, righteye=right): Left-eye view displayed
in left half of window, right-eye view displayed in right-half of window.
Use this for dual-display setups (binocular video goggles, haploscopes,
polarized stereo setups etc.)

5 == Cross fusion (lefteye=right ...): Like mode 4, but with views
switched.

6-9 == Different modes of anaglyph stereo for color filter glasses:


6 == Red-Green
7 == Green-Red
8 == Red-Blue
9 == Blue-Red


10 == Dual display stereo for OS/X: Each view is rendered into a
different window, one for the left screen, the other for the right
screen.

-1 == Technically stereomode 4, but with a different shader: Creates line
interleaved stereo stimuli.

If you have a different set of filter glasses, e.g., red-magenta, you can
simply select one of above modes, then use the
SetStereoAnglyphParameters() command to change color gain settings,
thereby implementing other anaglyph color combinations.

Authors:
Finnegan Calabro - fcalabro@bu.edu
Mario Kleiner - mario.kleiner at tuebingen.mpg.de




Path
Psychtoolbox/PsychGLImageProcessing/EXPImagingStereoDemo.m

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0524 seconds