# BitsStereoDemo

**URL:** <https://psychtoolbox.discourse.group/t/bitsstereodemo/592>\
**Category:** Uncategorized\
**Created:** [April 19, 2016, 3:45pm UTC](https://psychtoolbox.discourse.group/t/bitsstereodemo/592 "2016-04-19T15:45:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smgxjas](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@smgxjas](https://psychtoolbox.discourse.group/u/smgxjas)\
**Post date:** [April 19, 2016, 3:45pm UTC](https://psychtoolbox.discourse.group/t/bitsstereodemo/592/1 "2016-04-19T15:45:48Z")

</div>

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);

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [April 20, 2016, 7:39pm UTC](https://psychtoolbox.discourse.group/t/bitsstereodemo/592/2 "2016-04-20T19:39:59Z")

</div>

The specific error is that ...  
  
&nbsp;&nbsp;&nbsp; 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

---

<div class="post-metadata">

**Author:** ![smgxjas](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@smgxjas](https://psychtoolbox.discourse.group/u/smgxjas)\
**Post date:** [May 16, 2017, 2:07pm UTC](https://psychtoolbox.discourse.group/t/bitsstereodemo/592/3 "2017-05-16T14:07:43Z")

</div>

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/](http://www.staff.city.ac.uk/~solomon/)
