BitsStereoDemo

can anyone get this to work?
with the latest PTB, on my latest Mac, running the latest version of OS X, i get:

>> BitsStereoDemo
PTB-INFO: Retina display. Enabling panel fitter for scaled Retina compatibility mode.


PTB-INFO: This is Psychtoolbox-3 for Apple OS X, under Matlab 64-Bit (Version 3.0.12 - Build date: Feb 19 2016).
PTB-INFO: Support status on this operating system release: OSX 10.11 Supported.
PTB-INFO: Type 'PsychtoolboxVersion' for more detailed version information.
PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under terms of the MIT License, with
PTB-INFO: some restrictions. See file 'License.txt' in the Psychtoolbox root folder for the exact licensing conditions.

PTB-INFO: Installation of the PsychtoolboxKernelDriver is strongly recommended if you care about precise visual
PTB-INFO: onset timestamping or timing. See 'help PsychtoolboxKernelDriver' for installation instructions.
PTB-INFO: Fixed point precision integer framebuffer enabled.


PTB-INFO: OpenGL-Renderer is NVIDIA Corporation :: NVIDIA GeForce GT 650M OpenGL Engine :: 2.1 NVIDIA-10.10.5.2 310.42.25f01
PTB-INFO: Renderer has 1024 MB of VRAM and a maximum 1024 MB of texture memory.
PTB-INFO: VBL startline = 1800 , VBL Endline = -1
PTB-INFO: Beamposition queries unsupported or defective on this system. Using basic timestamping as fallback: Timestamps returned by Screen('Flip') will be less robust and accurate.
PTB-INFO: Measured monitor refresh interval from VBLsync = 0.000000 ms [inf Hz]. (0 valid samples taken, stddev=0.000000 ms.)
PTB-INFO: Small deviations between reported values are normal and no reason to worry.
PTB-INFO: All display tests and calibrations disabled. Assuming a refresh interval of 60.000000 Hz. Timing will be inaccurate!
PTB-INFO: Psychtoolbox imaging pipeline starting up for window with requested imagingmode 33793 ...
PTB-INFO: Will use 8 bits per color component framebuffer for stimulus drawing.
PTB-INFO: Enabling panel fitter. Providing virtual framebuffer of 1440 x 900 pixels size.
PTB-INFO: Will use 8 bits per color component framebuffer for stimulus post-processing (if any).
Calculating angle 1

Error in function MakeTexture: Invalid Window (or Texture) Index provided: It doesn't correspond to an open window or texture.
Did you close it accidentally via Screen('Close') or Screen('CloseAll') ?


WARNING: This session of your experiment was run by you with the setting Screen('Preference', 'SkipSyncTests', 2).
WARNING: This means that some internal self-tests and calibrations were skipped. Your stimulus presentation timing
WARNING: may have been wrong. This is fine for development and debugging of your experiment, but for running the real
WARNING: study, please make sure to set Screen('Preference', 'SkipSyncTests', 0) for maximum accuracy and reliability.
Error using Screen
Usage:

textureIndex=Screen('MakeTexture', WindowIndex, imageMatrix [, optimizeForDrawAngle=0] [, specialFlags=0] [, floatprecision=0] [,
textureOrientation=0] [, textureShader=0]);

Error in BitsStereoDemo (line 96)
left(orient)= Screen('MakeTexture',whichScreen,image);
The specific error is that ...

    left(orient)= Screen('MakeTexture',whichScreen,image);

... passes in 'whichScreen' instead of 'window' as it should. If that demo ever worked, then only in very early PTB-3 versions and due to a bug in the toolbox.

But the whole demo is a huge pile of wrong comments, wrong practices and inefficiency and would need a complete rewrite. It actually shouldn't even exist nowadays and our own standard stereo support code should take care of this.

-mario
Greetings All.

(For the first time in a decade or so) I tried the PTB function BitsStereoDemo. (I'm using a mac. Latest OS, 2017 PTB, Bits++ and FE1 goggles.) I get the following error messages:

Error using bitsGoggles
Too many output arguments.

Error in BitsPlusPlus (line 1739)
Tlockdata = bitsGoggles(1, 0);

Error in BitsStereoDemo (line 35)
BitsPlusPlus('UseFE1StereoGoggles', window, 1);

Any ideas? Thanks

--
Joshua A. Solomon

http://www.staff.city.ac.uk/~solomon/