Docs @ Psychtoolbox Wiki : SelectStereoDrawBuffer

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

Screen('SelectStereoDrawBuffer')

PsychtoolboxScreen.{mex*,dll} subfunction

Usage
currentbuffer = Screen('SelectStereoDrawBuffer', windowPtr [, bufferid] [, param1]);

Select the target buffer for drawing commands in stereo display mode and or
return the current/old buffer selection in 'currentbuffer'.
This function only applies to stereo mode, it does nothing in mono mode.
"windowPtr" is the pointer to the onscreen stereo window. "bufferid" (optional)
is either == 0 for selecting the left-eye buffer or == 1 for selecting the
right-eye buffer. You need to call this command after each Screen('Flip')
command or after drawing to an offscreen window again in order to reestablish
your selection of draw buffer, otherwise the results of drawing operations will
be undefined and most probably not what you want.
"param1" (optional) a parameter whose meaning depends on the active stereo mode:
In stereoMode 1 (frame sequential stereo) it allows to select if stimulus onset
should happen in an even video refresh interval (value 0) or in an odd interval
(value 1). Even and odd intervals correspond to either left- or right-eye view,
so this allows to choose if you want to have stimulus onset on left eye or right
eye. This feature is currently only supported on MacOS/X with some graphics
cards.
If you want to use a stereo display mode, we recommend enabling the imaging
pipeline as well. Enable it by setting the optional flag "imagingMode" of
Screen('OpenWindow', ...); to kPsychNeedFastBackingStore. The imaging pipeline
will only work with recent hardware, but it allows for more reliable stereo
operation especially when using MatlabOpenGL for real 3D drawing. It also allows
to parameterize aspects of stereo presentation, e.g., gains and other settings
of anaglyph stereo.


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